PolyAI/banking77
Updated • 20.9k • 77
How to use Ahmed167/modernbert-banking77 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Ahmed167/modernbert-banking77") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Ahmed167/modernbert-banking77")
model = AutoModelForSequenceClassification.from_pretrained("Ahmed167/modernbert-banking77")Fine-tune of answerdotai/ModernBERT-base for 77-class customer-intent classification.
from transformers import pipeline
clf = pipeline("text-classification", model="Ahmed167/modernbert-banking77", top_k=5)
clf("My card hasn't arrived yet, what should I do?")
answerdotai/ModernBERT-base (149M params, encoder-only, 8k context)Logits are saved as-is. To get calibrated probabilities, divide logits by the
fitted temperature (reported in eval_results.json in the source repo) before
softmax. The fitted T value is typically slightly > 1, meaning the raw model is
mildly overconfident.
GitHub: AhmedMostafa167/Projects/04-Deep-Learning/text-classification-modernbert
Base model
answerdotai/ModernBERT-base