Text Classification
Transformers
Safetensors
roberta
emotion
emotion-classification
distilroberta
text-embeddings-inference
Instructions to use olafuraron/emotion-english-distilroberta-base-safetensors with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use olafuraron/emotion-english-distilroberta-base-safetensors with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="olafuraron/emotion-english-distilroberta-base-safetensors")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("olafuraron/emotion-english-distilroberta-base-safetensors") model = AutoModelForSequenceClassification.from_pretrained("olafuraron/emotion-english-distilroberta-base-safetensors", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Emotion English DistilRoBERTa (safetensors)
This repository contains a safetensors-only conversion of the model:
j-hartmann/emotion-english-distilroberta-base
The model performs multi-class emotion classification on English text and predicts the following labels:
- anger
- disgust
- fear
- joy
- neutral
- sadness
- surprise
No architectural changes or retraining have been performed. The only modification is the conversion of model weights to the safetensors format.
Original Model
- Author: Jochen Hartmann
- Original Repository: https://huggingface.co/j-hartmann/emotion-english-distilroberta-base
- Year: 2022
If you use this model in academic work, please cite the original author.
Modifications
- Converted PyTorch weights to
safetensors - Tokenizer and configuration preserved
- No changes to model behavior, labels, or performance
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="YOUR_USERNAME/YOUR_REPO_NAME",
return_all_scores=True
)
classifier("I love this!")
- Downloads last month
- 521