fancyzhx/ag_news
Viewer • Updated • 128k • 119k • 190
How to use arman1o1/roberta_ag_news_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="arman1o1/roberta_ag_news_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("arman1o1/roberta_ag_news_model")
model = AutoModelForSequenceClassification.from_pretrained("arman1o1/roberta_ag_news_model", device_map="auto")This model is a fine-tuned version of FacebookAI/roberta-base on fancyzhx/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 |
|---|---|---|---|---|---|
| 0.2148 | 1.0 | 7500 | 0.1850 | 0.9426 | 0.9425 |
| 0.1646 | 2.0 | 15000 | 0.1778 | 0.9501 | 0.9501 |
| 0.1072 | 3.0 | 22500 | 0.2021 | 0.9541 | 0.9541 |
Base model
FacebookAI/roberta-base