emotions-entailment/zero-shot-emotions
Viewer โข Updated โข 279k โข 27
Run emotions-entailment/roberta-raw on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/emotions-entailment/roberta-raw. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/emotions-entailment/roberta-raw on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use emotions-entailment/roberta-raw with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="emotions-entailment/roberta-raw") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("emotions-entailment/roberta-raw")
model = AutoModelForSequenceClassification.from_pretrained("emotions-entailment/roberta-raw", device_map="auto")This model is a fine-tuned version of FacebookAI/roberta-base. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | F1 Macro | F1 Micro | Precision Micro | Recall Micro | Validation Loss |
|---|---|---|---|---|---|---|---|
| 1.1898 | 1.0 | 10479 | 0.7956 | 0.8419 | 0.8473 | 0.8367 | 0.3967 |
| 1.1891 | 2.0 | 20958 | 0.8115 | 0.8554 | 0.8658 | 0.8454 | 0.3942 |
Base model
FacebookAI/roberta-base