dair-ai/emotion
Viewer • Updated • 437k • 41.9k • 449
How to use EulerianKnight/distilbert-base-uncased-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="EulerianKnight/distilbert-base-uncased-finetuned-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("EulerianKnight/distilbert-base-uncased-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("EulerianKnight/distilbert-base-uncased-finetuned-emotion", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("EulerianKnight/distilbert-base-uncased-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("EulerianKnight/distilbert-base-uncased-finetuned-emotion", 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 |
|---|---|---|---|---|---|
| 0.7636 | 1.0 | 250 | 0.2512 | 0.915 | 0.9134 |
| 0.1965 | 2.0 | 500 | 0.1725 | 0.93 | 0.9300 |
| 0.1375 | 3.0 | 750 | 0.1475 | 0.935 | 0.9353 |
| 0.1061 | 4.0 | 1000 | 0.1499 | 0.936 | 0.9355 |
| 0.0892 | 5.0 | 1250 | 0.1423 | 0.936 | 0.9363 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="EulerianKnight/distilbert-base-uncased-finetuned-emotion")