Downloads · 30 days
21
7% of all-time downloads
bclavie/ModernBERT-base-fineweb-edu-example
ModernBERT-base-fineweb-edu-example is a text classification model from bclavie. 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.
One-off run using a modified version of the original Fineweb-Edu quality filter regression training code, simply replacing the original model (snowflake-embed-m, a model fine-tuned on BERT-base) with ModernBERT-base.
Downloads · 30 days
21
7% of all-time downloads
All-time downloads
307
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
One-off run using a modified version of the original Fineweb-Edu quality filter regression training code, simply replacing the original model (snowflake-embed-m, a model fine-tuned on BERT-base) with ModernBERT-base.
w/o extensive tuning, the model trains considerably faster than BERT-base, and gets +5 Weighted F1:
Weighted F1: 0.76
Detailed:
Validation Report:
precision recall f1-score support
0 0.80 0.55 0.65 5694
1 0.82 0.86 0.84 26512
2 0.64 0.71 0.67 10322
3 0.65 0.60 0.63 3407
4 0.80 0.37 0.51 807
5 0.00 0.00 0.00 1
accuracy 0.76 46743
macro avg 0.62 0.51 0.55 46743
weighted avg 0.76 0.76 0.76 46743
Weighted F1: 0.71
Detailed:
precision recall f1-score support
0 0.75 0.49 0.59 5694
1 0.78 0.84 0.81 26512
2 0.57 0.61 0.59 10322
3 0.56 0.50 0.53 3407
4 0.58 0.35 0.44 807
5 0.33 0.01 0.02 125
accuracy 0.71 46867
macro avg 0.60 0.47 0.50 46867
weighted avg 0.71 0.71 0.71 46867
(for some reason, the currently available annotated dataset is identical, except that it's missing 124 of the 125 5-rated examples. These are so anecdotal they have no real impact on the weighted metrics.)
Most parameters detailed in the script. Key hparams: