fancyzhx/ag_news
Viewer • Updated • 128k • 122k • 189
How to use gaioNL/roberta-base_ag_news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gaioNL/roberta-base_ag_news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gaioNL/roberta-base_ag_news")
model = AutoModelForSequenceClassification.from_pretrained("gaioNL/roberta-base_ag_news")This model is a fine-tuned version of roberta-base 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 |
|---|---|---|---|
| 1.4306 | 1.0 | 15000 | 1.3696 |
| 1.0725 | 2.0 | 30000 | 0.9407 |
| 0.8715 | 3.0 | 45000 | 0.7991 |