fancyzhx/ag_news
Viewer • Updated • 128k • 127k • 190
How to use achimoraites/roberta-base_ag_news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="achimoraites/roberta-base_ag_news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("achimoraites/roberta-base_ag_news")
model = AutoModelForSequenceClassification.from_pretrained("achimoraites/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.3692 | 1.0 | 7500 | 0.4305 |
| 1.6035 | 2.0 | 15000 | 1.8071 |
| 0.6766 | 3.0 | 22500 | 0.4494 |
| 0.3733 | 4.0 | 30000 | 0.3943 |
| 0.2483 | 5.0 | 37500 | 0.3583 |
Base model
FacebookAI/roberta-base