Views
No views yet
answerdotai/ModernBERT-base
for 77-way English banking-intent classification, trained on
PolyAI/banking77.answerdotai/ModernBERT-base (149M params, Apache-2.0)test split (3,080 queries, 40/intent), disjoint from trainingcard_arrival, lost_or_stolen_card, exchange_rate) for task-oriented
dialog and triage.max_length=64 on short single-sentence queries.| Model | Accuracy | Macro-F1 | Weighted-F1 |
|---|---|---|---|
| Majority class | 0.0130 | 0.0003 | 0.0003 |
| Frozen ModernBERT + linear probe | 0.8945 | 0.8948 | 0.8948 |
| This model (fine-tuned) | 0.9399 | 0.9401 | 0.9401 |
results/classification_report.txt;
77×77 confusion matrix:
results/confusion_matrix.png.1from transformers import pipeline
2
3clf = pipeline("text-classification", model="sukhrobnurali/modernbert-base-banking77")
4clf("My card still hasn't arrived, when will I get it?")
5# -> [{'label': 'card_arrival', 'score': 0.99}]PolyAI/banking77 (Casanueva
et al. 2020, arXiv:2003.04807): 10,003 train / 3,080 test online-banking queries
over 77 intents. License CC-BY-4.0. A stratified 10% of train was held out as
a validation set for early stopping; the official test split was used only for the
final numbers above.seed=42. Fine-tuned with the HF Trainer, lr=5e-5, up to 4 epochs with
early stopping (patience 2) on validation macro-F1, max_length=64, batch size 32,
warmup ratio 0.1, weight decay 0.01. Pinned versions in requirements.txt
(transformers 5.10.1). eval.py reproduces the test numbers from the published
model.answerdotai/ModernBERT-base. Training
data PolyAI/banking77 is CC-BY-4.0 (attribution: Casanueva et al. 2020).1@misc{nurali_modernbert_banking77_2026,
2 author = {Sukhrob Nurali},
3 title = {modernbert-base-banking77: a ModernBERT intent classifier for Banking77},
4 year = {2026},
5 howpublished = {\url{https://huggingface.co/sukhrobnurali/modernbert-base-banking77}}
6}