dair-ai/emotion
Viewer • Updated • 437k • 35.9k • 484
How to use DeekshithaKumariPrabhakar/finetuning-emotion-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="DeekshithaKumariPrabhakar/finetuning-emotion-model") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DeekshithaKumariPrabhakar/finetuning-emotion-model")
model = AutoModelForSequenceClassification.from_pretrained("DeekshithaKumariPrabhakar/finetuning-emotion-model", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased 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 |
|---|---|---|---|---|---|
| No log | 1.0 | 250 | 0.2690 | 0.916 | 0.9163 |
| 0.5073 | 2.0 | 500 | 0.1674 | 0.927 | 0.9268 |
| 0.5073 | 3.0 | 750 | 0.1478 | 0.939 | 0.9399 |
| 0.1212 | 4.0 | 1000 | 0.1471 | 0.94 | 0.9402 |
| 0.1212 | 5.0 | 1250 | 0.1472 | 0.938 | 0.9376 |
| 0.0776 | 6.0 | 1500 | 0.1502 | 0.9385 | 0.9388 |
| 0.0776 | 7.0 | 1750 | 0.1620 | 0.935 | 0.9348 |
| 0.053 | 8.0 | 2000 | 0.1697 | 0.9375 | 0.9376 |
| 0.053 | 9.0 | 2250 | 0.1712 | 0.939 | 0.9392 |
| 0.0381 | 10.0 | 2500 | 0.1719 | 0.943 | 0.9430 |
Base model
distilbert/distilbert-base-uncased