Downloads · 30 days
32
49% of all-time downloads
kurcontko/modernbert-news-classifier
modernbert-news-classifier is a text classification model from kurcontko. 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.
Fine-tuned ModernBERT for classifying news text into multiple categories.
Downloads · 30 days
32
49% of all-time downloads
All-time downloads
65
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
Fine-tuned ModernBERT for classifying news text into multiple categories.
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="kurcontko/modernbert-news-classifier",
top_k=3
)
print(classifier("Apple unveils new AI models on latest iPhone"))
| Metric | Score |
|---|---|
| Accuracy | 0.72 |
| Macro F1 | 0.63 |
Evaluated on the validation split of the HuffPost News Category dataset.
Max sequence length: 512
Batch size: 32
Epochs: 3
Early stopping enabled
Input was constructed as headline + short_description.