← all repositories

AnswerDotAI/ModernBERT

Research repository for ModernBERT, a scaled and modernized BERT-style encoder model with modular FlexBERT architecture.

1.7k stars Python Language ModelsML Frameworks
ModernBERT
Velocity · 7d
+2.2
★ / day
Trend
steady
star history

This repository contains the code for training and evaluating ModernBERT, an encoder-only transformer model that updates the classic BERT architecture with modern improvements like Flash Attention 2. The project provides modular FlexBERT building blocks defined via YAML configuration files, and includes pre-training and GLUE benchmark evaluation code. Model checkpoints are available on HuggingFace.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.