fancyzhx/ag_news
Viewer • Updated • 128k • 140k • 190
How to use feelwoo/roberta-base_ag_news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="feelwoo/roberta-base_ag_news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("feelwoo/roberta-base_ag_news")
model = AutoModelForSequenceClassification.from_pretrained("feelwoo/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 |
|---|---|---|---|
| 0.1879 | 1.0 | 3750 | 0.2106 |
| 0.1556 | 2.0 | 7500 | 0.1951 |
| 0.126 | 3.0 | 11250 | 0.1897 |
| 0.0576 | 4.0 | 15000 | 0.1921 |
| 0.0386 | 5.0 | 18750 | 0.2283 |
Base model
FacebookAI/roberta-base