All models

Ettin-encoder-1b

Ettin, a paired text encoder and decoder built on the ModernBERT and Llama architectures.

Language · 1,110 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (9 KB)

Open in a new tab

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.

At a glance

Parameters
149.7M
Operations
1,110
Framework
PyTorch
Recurrent
No
Published
2025
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m921
Graph hash
c7aa1d8f29ab0f1fe678b14703cc98d5abfcc6d4aeee5e671e7d4fe215c6b3a3
Skeleton hash
70103b06735b6d5e2a9934082f436271ad9524f6cc88e86998bb93009cfd324c
Architecture hash
e3c8802abca5ccd077da92645df8c5afdfbf108d91134a53d8f16b4199ad5388
Diagram SHA-256
85a48f7a1700b7d4f22e849bfa8aa833e92cc732a573fe28ef245173671299d1
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForMaskedLM.from_config()

What it is

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.

  • ettin
  • ettin encoder
  • ettin decoder
  • masked language model
  • causal language model
  • text encoder
  • text decoder
  • fill-mask
  • text generation

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.