Instructions to use tmnam20/gpt1_n-layer-2_xnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tmnam20/gpt1_n-layer-2_xnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tmnam20/gpt1_n-layer-2_xnli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tmnam20/gpt1_n-layer-2_xnli") model = AutoModelForSequenceClassification.from_pretrained("tmnam20/gpt1_n-layer-2_xnli", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "best_metric": 1.1083118915557861, | |
| "best_model_checkpoint": "/kaggle/output/checkpoint-1000", | |
| "epoch": 0.04074315514993481, | |
| "eval_steps": 1000, | |
| "global_step": 1000, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.0, | |
| "learning_rate": 2.7777777777777777e-11, | |
| "loss": 1.1078, | |
| "step": 1 | |
| }, | |
| { | |
| "epoch": 0.04, | |
| "learning_rate": 2.7750000000000004e-08, | |
| "loss": 1.128, | |
| "step": 1000 | |
| }, | |
| { | |
| "epoch": 0.04, | |
| "eval_accuracy": 0.330938123752495, | |
| "eval_loss": 1.1083118915557861, | |
| "eval_runtime": 12.3979, | |
| "eval_samples_per_second": 404.1, | |
| "eval_steps_per_second": 50.573, | |
| "step": 1000 | |
| } | |
| ], | |
| "logging_steps": 1000, | |
| "max_steps": 10000000, | |
| "num_train_epochs": 408, | |
| "save_steps": 1000, | |
| "total_flos": 348439707648000.0, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |