Text Classification
Transformers
Safetensors
English
switch_transformers
Generated from Trainer
Eval Results (legacy)
Instructions to use glamprou/switch-base-8-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use glamprou/switch-base-8-sst2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="glamprou/switch-base-8-sst2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("glamprou/switch-base-8-sst2") model = AutoModelForSequenceClassification.from_pretrained("glamprou/switch-base-8-sst2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.9461009174311926, | |
| "eval_loss": 0.1892605870962143, | |
| "eval_runtime": 6.4622, | |
| "eval_samples": 872, | |
| "eval_samples_per_second": 134.938, | |
| "eval_steps_per_second": 16.867, | |
| "train_loss": 0.24820531837243603, | |
| "train_runtime": 1181.836, | |
| "train_samples": 67349, | |
| "train_samples_per_second": 170.96, | |
| "train_steps_per_second": 2.673 | |
| } |