cardiffnlp/tweet_eval
Viewer • Updated • 201k • 23.6k • 152
How to use Ido-shraga/mmbert-base-sentiment-adapted with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Ido-shraga/mmbert-base-sentiment-adapted") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Ido-shraga/mmbert-base-sentiment-adapted")
model = AutoModelForSequenceClassification.from_pretrained("Ido-shraga/mmbert-base-sentiment-adapted", device_map="auto")Full fine-tune of jhu-clsp/mmbert-base (multilingual ModernBERT, 22 layers, 256K-token Gemma-2 tokenizer) for 3-class tweet sentiment (negative / neutral / positive), mirroring a tweet task-adapted checkpoint before per-language LoRA specialization (stage 2: mmbert-sentiment-lora).
| Dataset | Config | Train rows | Label handling |
|---|---|---|---|
cardiffnlp/tweet_eval |
sentiment |
45,615 | 3-class as-is |
cardiffnlp/super_tweeteval |
tweet_sentiment |
26,632 | 5-point ABSA scale folded: {strongly negative, negative}→negative, {negative or neutral}→neutral, {positive, strongly positive}→positive |
cardiffnlp/tweet_sentiment_multilingual |
all |
14,712 | 3-class as-is (8 languages) |
| Split | macro-F1 | Accuracy |
|---|---|---|
| Combined validation | 0.7005 | 0.7044 |
| tweet_eval sentiment test | 0.7089 | 0.7116 |
| super_tweeteval tweet_sentiment test (folded to 3-class) | 0.6596 | 0.6682 |
| tweet_sentiment_multilingual test | 0.6908 | 0.6902 |
Note: the super_tweeteval test score is on labels folded to 3 classes and is not comparable to the official SuperTweetEval leaderboard metric (1 − MAE^M on the 5-point scale).
from transformers import pipeline
clf = pipeline("text-classification", model="Ido-shraga/mmbert-base-sentiment-adapted")
clf("Absolutely loving the new update, great work!")