fancyzhx/ag_news
Viewer • Updated • 128k • 107k • 190
How to use RamAnanth1/distilroberta-base-finetuned-topic-news with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="RamAnanth1/distilroberta-base-finetuned-topic-news") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("RamAnanth1/distilroberta-base-finetuned-topic-news")
model = AutoModelForSequenceClassification.from_pretrained("RamAnanth1/distilroberta-base-finetuned-topic-news")This model is a fine-tuned version of distilroberta-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 | Accuracy |
|---|---|---|---|---|
| 0.2661 | 1.0 | 15000 | 0.2656 | 0.9372 |
| 0.2032 | 2.0 | 30000 | 0.2439 | 0.9411 |
| 0.1516 | 3.0 | 45000 | 0.2682 | 0.9426 |
| 0.108 | 4.0 | 60000 | 0.2729 | 0.9432 |
Base model
distilbert/distilroberta-base