dair-ai/emotion
Viewer • Updated • 437k • 32.5k • 467
How to use 24bean/xlm-roberta-base-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="24bean/xlm-roberta-base-finetuned-emotion") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("24bean/xlm-roberta-base-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("24bean/xlm-roberta-base-finetuned-emotion", device_map="auto")This model is a fine-tuned version of xlm-roberta-base on the emotion 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 |
|---|---|---|---|---|---|
| 1.2299 | 1.0 | 250 | 0.6646 | 0.7735 | 0.7537 |
| 0.4722 | 2.0 | 500 | 0.2553 | 0.9105 | 0.9112 |
| 0.2207 | 3.0 | 750 | 0.1990 | 0.9215 | 0.9221 |
| 0.1559 | 4.0 | 1000 | 0.1537 | 0.931 | 0.9312 |
| 0.129 | 5.0 | 1250 | 0.1597 | 0.93 | 0.9306 |