Downloads · 30 days
613
86% of all-time downloads
alphaedge-ai/ModernBERT-base-32768
ModernBERT-base-32768 is a fill-mask model from alphaedge-ai. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
This model is a 9.04% smaller version of answerdotai/ModernBERT-base optimized for English language via vocabulary size reduction using the trimming method. This trimmed model should perform similarly to the original…
Downloads · 30 days
613
86% of all-time downloads
All-time downloads
713
Public
Parameters
136M
544 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors544 MB · 100%
From the Hugging Face model README
This model is a 9.04% smaller version of answerdotai/ModernBERT-base optimized for English language via vocabulary size reduction using the trimming method.
This trimmed model should perform similarly to the original model with only 32,768 tokens and a much smaller memory footprint.
| Metric | Original | Trimmed | Reduction |
|---|---|---|---|
| Vocabulary size | 50,368 | 32,768 | 34.94% |
| Model size | 149,655,232 params | 136,120,832 params | 9.04% |

from transformers import AutoModel, AutoTokenizer
model_name = "alphaedge-ai/ModernBERT-base-32768"
model = AutoModel.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
@misc{modernbert,
title={Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference},
author={Benjamin Warner and Antoine Chaffin and Benjamin Clavié and Orion Weller and Oskar Hallström and Said Taghadouini and Alexis Gallagher and Raja Biswas and Faisal Ladhak and Tom Aarsen and Nathan Cooper and Griffin Adams and Jeremy Howard and Iacopo Poli},
year={2024},
eprint={2412.13663},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2412.13663},
}
@misc{hf_blogpost_trimming,
title={Introduction to Trimming},
author={Loïck BOURDOIS and Tom AARSEN and Bram VANROY and Christopher AKIKI and Woojun JUNG and Manuel ROMERO and Prithiv SAKTHI},
year={2026},
url={https://huggingface.co/blog/lbourdois/introduction-to-trimming},
}