
mmBERT-base
Language1,110 ops149.7M params
Ettin, a paired text encoder and decoder built on the ModernBERT and Llama architectures.
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()
This model is the Ettin encoder, which uses the ModernBERT architecture, a modernized version of BERT.
Ettin is a pair of text models: an encoder that uses the ModernBERT architecture, a modernized version of BERT, and a decoder that uses the Llama architecture, which is based on the GPT architecture. ModernBERT's changes to the original BERT architecture 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.
The Llama design uses pre-normalization to improve training stability, replaces ReLU with SwiGLU, and replaces absolute positional embeddings with rotary positional embeddings (RoPE) to better handle longer sequence lengths.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.