emotions-entailment/zero-shot-emotions
Viewer • Updated • 279k • 93
How to use emotions-entailment/distilbert-raw with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="emotions-entailment/distilbert-raw") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("emotions-entailment/distilbert-raw")
model = AutoModelForSequenceClassification.from_pretrained("emotions-entailment/distilbert-raw")This model is a fine-tuned version of distilbert/distilbert-base-uncased. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Precision Micro | Recall Micro |
|---|---|---|---|---|---|---|---|
| 1.1966 | 1.0 | 10479 | 0.3998 | 0.8137 | 0.7466 | 0.8524 | 0.7784 |
| 1.1978 | 2.0 | 20958 | 0.3976 | 0.8309 | 0.7848 | 0.8462 | 0.8161 |
| 1.1855 | 3.0 | 31437 | 0.3970 | 0.8361 | 0.7916 | 0.8599 | 0.8135 |
Base model
distilbert/distilbert-base-uncased