huggingface.co2024-12-19authorityHN front pageabout the modernbert familyHN 348 pts · 75 comments4,564 words
ModernBERT is a family of encoder-only models representing improvements over older generation encoders across the board, with a 8192 sequence length, better downstream performance and much faster processing. The series includes a base model with 149M params and a large model with 395M params, available as a slot-in replacement for BERT-like models. Users can install the required transformers library from main or wait for inclusion in v4.48.0, and should use Flash Attention 2 if their GPU supports it to reach the highest efficiency.written, reviewed, cited
- ModernBERT is the first encoder-only model that includes a large amount of code in its training data.
- ModernBERT does not use token type IDs, unlike some earlier BERT models.
- ModernBERT uses less than 1/5th of Deberta's memory while beating it on GLUE benchmarks.