dair-ai/emotion
Viewer • Updated • 437k • 33.8k • 439
How to use marcelcastrobr/sagemaker-distilbert-emotion-2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="marcelcastrobr/sagemaker-distilbert-emotion-2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("marcelcastrobr/sagemaker-distilbert-emotion-2")
model = AutoModelForSequenceClassification.from_pretrained("marcelcastrobr/sagemaker-distilbert-emotion-2")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.9316 | 1.0 | 500 | 0.2384 | 0.918 |
| 0.1849 | 2.0 | 1000 | 0.1599 | 0.9265 |
| 0.1047 | 3.0 | 1500 | 0.1442 | 0.9315 |