emotions-entailment/zero-shot-emotions
Viewer • Updated • 279k • 79
How to use emotions-entailment/distilroberta-raw with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="emotions-entailment/distilroberta-raw") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("emotions-entailment/distilroberta-raw")
model = AutoModelForSequenceClassification.from_pretrained("emotions-entailment/distilroberta-raw")This model is a fine-tuned version of distilbert/distilroberta-base. It achieves the following results on the evaluation set:
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Precision Micro | Recall Micro |
|---|---|---|---|---|---|---|---|
| 1.1942 | 1.0 | 10479 | 0.3989 | 0.8204 | 0.7646 | 0.8498 | 0.7930 |
| 1.1966 | 2.0 | 20958 | 0.3965 | 0.8396 | 0.7979 | 0.8553 | 0.8245 |
| 1.1872 | 3.0 | 31437 | 0.3959 | 0.8458 | 0.8043 | 0.8720 | 0.8211 |
Base model
distilbert/distilroberta-base