Downloads · 30 days
40
22% of all-time downloads
AnkitAI/Sensible-ModernBERT-Sentiment-Analysis
Sensible-ModernBERT-Sentiment-Analysis is a text classification model from AnkitAI. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
<picture <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ankit-aglawe/parable-assets/main/sensibleheaderdark.png" <img alt="Sensible" src="https://raw.githubusercontent.com/ankit…
Downloads · 30 days
40
22% of all-time downloads
All-time downloads
179
Public
Parameters
150M
598 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors598 MB · 99%
From the Hugging Face model README
pipeline() line.from transformers import pipeline
clf = pipeline("text-classification", model="AnkitAI/Sensible-ModernBERT-Sentiment-Analysis")
clf("This movie was absolutely wonderful!")
# [{'label': 'positive', 'score': 0.99}]
positive / negative for reviews, comments, feedback, social text. Built on ModernBERT-base — Flash-Attention-fast, 149M params, CPU-friendly.
SST-2 official validation set (872 examples) — the same split every SST-2 model reports on:
| Model | Accuracy |
|---|---|
| 💬 This model | 0.9461 |
| distilbert-base-uncased-finetuned-sst-2-english (the 3.9M-downloads/month default) | 0.9130 |
+3.3 points over the model most pipelines still default to — from an encoder released five years later. Training script and raw eval outputs ship in this repo; the reported split was never used for training or checkpoint selection.
| id | label |
|---|---|
| 0 | negative |
| 1 | positive |
Batch scoring:
texts = ["Best purchase I've made all year.",
"Waited 40 minutes and the order was still wrong."]
for t, r in zip(texts, clf(texts, batch_size=64)):
print(f"{r['label']:<9} {r['score']:.2f} {t}")
Full fine-tune of ModernBERT-base on SST-2 (GLUE, 67k sentences): 2 epochs, lr 2e-5, batch 32, fp32, best checkpoint by held-back 5% of train — the official validation set stayed untouched until final reporting.
If this model is useful in your work, you can support independent research:
<p align="left"> <a href="https://www.buymeacoffee.com/AnkitAI" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me a Coffee" height="60" width="217" /></a> </p>@misc{sensiblesentiment2026,
author = {Aglawe, Ankit},
title = {Sensible: ModernBERT Sentiment Analysis},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/AnkitAI/Sensible-ModernBERT-Sentiment-Analysis}
}
Apache-2.0 (ModernBERT-base, Answer.AI). Trained on SST-2 (Socher et al., 2013 / GLUE).
| Model | Task | Score |
|---|---|---|
| FinSense ModernBERT | financial news sentiment (3-class) | 0.8675 |
| FinSense distilbert v2 | financial news sentiment, tiny | 0.8447 |
| Parable | local agent LLMs (GGUF) | — |
More on the Sensible models: ankitaglawe.com/sensible