
Ettin-encoder-1b
Language1,110 ops149.7M params
ModernGBERT-1B, a masked language model built with the ModernBERT architecture.
Language · 1,110 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
ModernGBERT-1B is built with the ModernBERT architecture, a modernized version of BERT. As a masked language model it predicts the [MASK] token in a sentence.
The architecture's changes to the original BERT design include rotary positional embeddings to support sequences of up to 8192 tokens, unpadding to avoid wasting compute on padding tokens, GeGLU layers, and alternating attention. ModernBERT models also support padding-free inference and training, which requires FlashAttention2 as the attention implementation.
Key idea. The ModernBERT architecture used by this model updates BERT with rotary positional embeddings for sequences of up to 8192 tokens, unpadding, GeGLU layers and alternating attention.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.