dair-ai/emotion
Viewer • Updated • 437k • 30.4k • 449
How to use bhadresh-savani/distilbert-base-uncased-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="bhadresh-savani/distilbert-base-uncased-finetuned-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/distilbert-base-uncased-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("bhadresh-savani/distilbert-base-uncased-finetuned-emotion", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/distilbert-base-uncased-finetuned-emotion")
model = AutoModelForSequenceClassification.from_pretrained("bhadresh-savani/distilbert-base-uncased-finetuned-emotion", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the None 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.475 | 1.0 | 503 | 0.2171 | 0.928 | 0.9292 |
| 0.1235 | 2.0 | 1006 | 0.1764 | 0.9365 | 0.9372 |
| 0.0802 | 3.0 | 1509 | 0.1788 | 0.938 | 0.9388 |
| 0.0531 | 4.0 | 2012 | 0.2005 | 0.938 | 0.9388 |
| 0.0367 | 5.0 | 2515 | 0.1995 | 0.9365 | 0.9371 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="bhadresh-savani/distilbert-base-uncased-finetuned-emotion")