dair-ai/emotion
Viewer โข Updated โข 437k โข 34.2k โข 443
How to use Rahmat82/DistilBERT-finetuned-on-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Rahmat82/DistilBERT-finetuned-on-emotion") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Rahmat82/DistilBERT-finetuned-on-emotion")
model = AutoModelForSequenceClassification.from_pretrained("Rahmat82/DistilBERT-finetuned-on-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:
DiestilBERT is fine-tuned on emotions dataset. Click the following link to see how the model works: https://huggingface.co/spaces/Rahmat82/emotions_classifier
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.8046 | 1.0 | 250 | 0.3115 | 0.9085 | 0.9081 |
| 0.2405 | 2.0 | 500 | 0.2180 | 0.9235 | 0.9235 |
Base model
distilbert/distilbert-base-uncased