dair-ai/emotion
Viewer โข Updated โข 437k โข 33.4k โข 493
How to use KodySimpson/emotion-classifier-demo with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="KodySimpson/emotion-classifier-demo") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("KodySimpson/emotion-classifier-demo")
model = AutoModelForSequenceClassification.from_pretrained("KodySimpson/emotion-classifier-demo", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("KodySimpson/emotion-classifier-demo")
model = AutoModelForSequenceClassification.from_pretrained("KodySimpson/emotion-classifier-demo", device_map="auto")This model is a fine-tuned version of prajjwal1/bert-tiny on an unknown 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 |
|---|---|---|---|---|---|
| 1.0102 | 1.0 | 1000 | 0.7880 | 0.7795 | 0.7662 |
| 0.5796 | 2.0 | 2000 | 0.4849 | 0.868 | 0.8676 |
| 0.4245 | 3.0 | 3000 | 0.3851 | 0.8865 | 0.8866 |
| 0.3527 | 4.0 | 4000 | 0.3508 | 0.889 | 0.8889 |
| 0.3237 | 5.0 | 5000 | 0.3399 | 0.8915 | 0.8918 |
Base model
prajjwal1/bert-tiny
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KodySimpson/emotion-classifier-demo")