fancyzhx/ag_news
Viewer • Updated • 128k • 83k • 194
How to use Alesteba/clasificador-news-2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Alesteba/clasificador-news-2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Alesteba/clasificador-news-2")
model = AutoModelForSequenceClassification.from_pretrained("Alesteba/clasificador-news-2", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased 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.4388 | 1.0 | 715 | 0.3439 | 0.9006 |
| 0.2943 | 2.0 | 1430 | 0.3346 | 0.9171 |
| 0.1404 | 3.0 | 2145 | 0.3299 | 0.9199 |