AnswerDotAI/ModernBERT
Bringing BERT into modernity via both architecture changes and scaling observed · 2026-08-28
Health v2 · maintenance only
56/100
- Activity 70
- Release rhythm 35
- Longevity 60
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 842
- days_rel: n/a
- days_push: 185
- n_releases_24m: 0
Adoption not part of the score
1713 stars · 144 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ModernBERT is the research repository for a modernized BERT-family bidirectional encoder trained on 2 trillion tokens with an 8192-token context, featuring FlexBERT modular encoder building blocks and Flash Attention. It contains pre-training and GLUE evaluation code built on MosaicBERT and the Composer framework, with model checkpoints released on HuggingFace.
Use cases
- pretrain a modern BERT-style encoder from scratch
- fine-tune an encoder for text classification
- build single or multi-vector retrieval embeddings
- reproduce ModernBERT GLUE benchmark results
- experiment with modular encoder architecture blocks via YAML configs
- run long-context (8192 token) encoder inference on consumer GPUs
When to choose
- you need a fast, memory-efficient encoder for classification or retrieval
- you want to pre-train or fine-tune a BERT-style model with modern optimizations like Flash Attention
- you need long-context encoder support up to 8192 tokens
- you want reproducible research training code for encoder models
When to avoid
- you just want to use ModernBERT checkpoints in a pipeline - use the HuggingFace integration instead
- you need decoder-only generative LLMs rather than encoder models
- you lack a GPU or cannot install Flash Attention dependencies
- you need a production-hardened, well-documented training framework
Facets
library · maturity active
machine-learning nlp llm-training deep-learning machine-learning deep-learning python bert encoder embeddings transformer flash-attention pretraining research-code natural-language-processing gpu linux
6 sources
- readme: https://github.com/AnswerDotAI/ModernBERT · fetched 2026-08-28 · 1555aa66469e
- homepage: https://arxiv.org/abs/2412.13663 · fetched 2026-08-29 · c0de962bbd82
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| AnswerDotAI/ModernBERT | main | 56 |
For agents
markdown · JSON · MCP: product_card(name="AnswerDotAI/ModernBERT")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem