Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Allen Institute for AI · Architecture map

Olmo 3 7B

Three layers of sliding-window attention for every layer of full attention, plus YaRN to stretch the context.

Olmo 3 7B base (Olmo-3-1025-7B), October 2025 · OLMo release timeline

Inside Olmo 3 7B

Parameters
7B
Layers
32
Width
4,096
Mixer
Multi-head
Select a component to explore it. Layer colours match the execution-order strip.
The complete Olmo 3 7B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix. Keys and values for 32 heads. Sliding-window layers need only the last 4096 tokens; full-attention layers keep everything. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup100,2784,096Input token vectorsCL4,096Execution order · 32 layersLayer 1: Sliding-window layersLayer 2: Sliding-window layersLayer 3: Sliding-window layersLayer 4: Full-attention layersLayer 5: Sliding-window layersLayer 6: Sliding-window layersLayer 7: Sliding-window layersLayer 8: Full-attention layersLayer 9: Sliding-window layersLayer 10: Sliding-window layersLayer 11: Sliding-window layersLayer 12: Full-attention layersLayer 13: Sliding-window layersLayer 14: Sliding-window layersLayer 15: Sliding-window layersLayer 16: Full-attention layersLayer 17: Sliding-window layersLayer 18: Sliding-window layersLayer 19: Sliding-window layersLayer 20: Full-attention layersLayer 21: Sliding-window layersLayer 22: Sliding-window layersLayer 23: Sliding-window layersLayer 24: Full-attention layersLayer 25: Sliding-window layersLayer 26: Sliding-window layersLayer 27: Sliding-window layersLayer 28: Full-attention layersLayer 29: Sliding-window layersLayer 30: Sliding-window layersLayer 31: Sliding-window layersLayer 32: Full-attention layersSliding-window layers · matches this colour in the execution-order barSliding-window layersSliding-window layers · 24 repetitions24 layers · one layer shown24Multi-head attention: Attention over the last 4096 tokens. Three of every four layers, in a repeating pattern. Plain RoPE (theta 500,000), no scaling.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. Attention over the last 4096 tokens. Three of every four layers, in a repeating pattern. Plain RoPE (theta 500,000), no scaling.RoPENormalise queries and keys before attention scores. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.QK-normSliding-window attention over 4,096 tokens.4,096Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +SwiGLU: Attention over the last 4096 tokens. Three of every four layers, in a repeating pattern. Plain RoPE (theta 500,000), no scaling.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveFull-attention layers · matches this colour in the execution-order barFull-attention layersFull-attention layers · 8 repetitions8 layers · one layer shown8Multi-head attention: Attention over the whole context. Every fourth layer (8 of 32). The last layer is always full attention. RoPE with YaRN scaling.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. Attention over the whole context. Every fourth layer (8 of 32). The last layer is always full attention. RoPE with YaRN scaling.RoPE + YaRNNormalise queries and keys before attention scores. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.QK-normNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +SwiGLU: Attention over the whole context. Every fourth layer (8 of 32). The last layer is always full attention. RoPE with YaRN scaling.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Layer type · execution order aboveAfter all 32 layer executionsResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096100,278Vocabulary scoresSoftmax100,278Next-token probabilities
Inside multi-head attention · Sliding-window layers
32 heads.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Olmo 3 7B: Sliding-window layers · multi-head attention32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix. Keys and values for 32 heads. Sliding-window layers need only the last 4096 tokens; full-attention layers keep everything.32 heads; the front face shows one representative.32 headsAttention input. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wq4,0964,096Wk. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wk4,0964,096Wv. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wv4,0964,096RMSNorm. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RoPERMSNorm. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RoPEK cache. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 4096V cache. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 4096Q context. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Window 4,096CLCL×. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.×Joined heads. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.32Wo. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wo4,0964,096Attention output. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Inside multi-head attention · Full-attention layers
32 heads.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Olmo 3 7B: Full-attention layers · multi-head attention32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix. Keys and values for 32 heads. Sliding-window layers need only the last 4096 tokens; full-attention layers keep everything.32 heads; the front face shows one representative.32 headsAttention input. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wq4,0964,096Wk. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wk4,0964,096Wv. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wv4,0964,096RMSNorm. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RoPERMSNorm. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.RoPEK cache. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.CLCL×. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.×Joined heads. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.32Wo. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Wo4,0964,096Attention output. 32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Model-specific details
Sliding-window layers · 24 repetitions
Attention over the last 4096 tokens. Three of every four layers, in a repeating pattern. Plain RoPE (theta 500,000), no scaling.
Full-attention layers · 8 repetitions
Attention over the whole context. Every fourth layer (8 of 32). The last layer is always full attention. RoPE with YaRN scaling.
Attention and positions
32 query heads and 32 key/value heads. Three out of every four layers only look back 4096 tokens. Every fourth layer attends to the whole prefix.
Memory
Keys and values for 32 heads. Sliding-window layers need only the last 4096 tokens; full-attention layers keep everything.

A local/global OLMo

The 32 layers repeat three 4,096-token sliding-window layers followed by one global layer. All 32 query heads have separate key/value heads.

As in OLMo 2, RMSNorm acts on sublayer outputs before residual addition and QK-norm covers whole projected vectors. Global layers add YaRN scaling; local layers retain ordinary RoPE at base 500,000.

The long-context training stage reaches 65,536 tokens.

How it scores

AA Intelligence Index

Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.

Checkpoint / sizeResultEvaluation
Olmo 3 7B Think6AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. Olmo 3 7B Think scores 6; its bin is highlighted. Known estimates are excluded.Model variants0.0–3.0: 0 variants3.0–6.0: 15 variants6.0–9.0: 21 variants9.0–12.0: 13 variants12.0–15.0: 9 variants15.0–18.0: 5 variants18.0–21.0: 5 variants21.0–24.0: 6 variants24.0–27.0: 4 variants27.0–30.0: 2 variants30.0–33.0: 2 variants33.0–36.0: 2 variants36.0–39.0: 2 variants39.0–42.0: 3 variants42.0–45.0: 4 variants45.0–48.0: 3 variants48.0–51.0: 0 variants51.0–54.0: 0 variants54.0–57.0: 1 variants57.0–60.0: 0 variants21003060AA Index 4.3.2 →
Olmo 3 7B Think: 6. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map