dair-ai/emotion
Viewer • Updated • 437k • 32.2k • 465
How to use Chris2me/distilbert-base-uncased_emotion_ft_0416 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Chris2me/distilbert-base-uncased_emotion_ft_0416") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Chris2me/distilbert-base-uncased_emotion_ft_0416")
model = AutoModelForSequenceClassification.from_pretrained("Chris2me/distilbert-base-uncased_emotion_ft_0416", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Chris2me/distilbert-base-uncased_emotion_ft_0416")
model = AutoModelForSequenceClassification.from_pretrained("Chris2me/distilbert-base-uncased_emotion_ft_0416", 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 | Precision |
|---|---|---|---|---|---|---|
| 0.2093 | 1.0 | 250 | 0.1715 | 0.9345 | 0.9349 | 0.9042 |
| 0.1325 | 2.0 | 500 | 0.1523 | 0.9335 | 0.9340 | 0.8994 |
| 0.1017 | 3.0 | 750 | 0.1437 | 0.9365 | 0.9369 | 0.9029 |
| 0.08 | 4.0 | 1000 | 0.1420 | 0.9375 | 0.9376 | 0.9077 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Chris2me/distilbert-base-uncased_emotion_ft_0416")