fancyzhx/ag_news
Viewer • Updated • 128k • 129k • 190
How to use osanseviero/trainer-chapter3 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="osanseviero/trainer-chapter3") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("osanseviero/trainer-chapter3")
model = AutoModelForSequenceClassification.from_pretrained("osanseviero/trainer-chapter3")This model is a fine-tuned version of distilbert-base-uncased on the ag_news dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| No log | 1.0 | 313 | 0.2526 | 0.9149 | 0.9151 |
| 0.2985 | 2.0 | 626 | 0.2418 | 0.9172 | 0.9171 |
Base model
distilbert/distilbert-base-uncased