dair-ai/emotion
Viewer • Updated • 437k • 34.3k • 444
How to use Meet04/DistilBERT_trainer_emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Meet04/DistilBERT_trainer_emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Meet04/DistilBERT_trainer_emotion")
model = AutoModelForSequenceClassification.from_pretrained("Meet04/DistilBERT_trainer_emotion")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Meet04/DistilBERT_trainer_emotion")
model = AutoModelForSequenceClassification.from_pretrained("Meet04/DistilBERT_trainer_emotion")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 |
|---|---|---|---|---|
| 0.0736 | 1.0 | 1000 | 0.2746 | 0.9325 |
| 0.0594 | 2.0 | 2000 | 0.2493 | 0.939 |
| 0.0459 | 3.0 | 3000 | 0.2769 | 0.941 |
| 0.035 | 4.0 | 4000 | 0.3125 | 0.943 |
| 0.0261 | 5.0 | 5000 | 0.3295 | 0.9405 |
| 0.0163 | 6.0 | 6000 | 0.3190 | 0.9435 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Meet04/DistilBERT_trainer_emotion")