bdstar/twitter-sentiment-analysis
Viewer • Updated • 4.77M • 108
How to use Nonovogo/emotionbert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Nonovogo/emotionbert") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Nonovogo/emotionbert")
model = AutoModelForSequenceClassification.from_pretrained("Nonovogo/emotionbert", device_map="auto")This modernbert model was trained 2x faster with Unsloth
Base model
unsloth/ModernBERT-base