Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Allen Institute for AI · Architecture map

OLMo 2 7B

A dense transformer with RMSNorm on sublayer outputs and whole-vector query/key normalisation.

OLMo 2 7B base (OLMo-2-1124-7B), November 2024 · OLMo release timeline

Inside OLMo 2 7B

Parameters
7B
Layers
32
Width
4,096
Mixer
Multi-head
Select a component to explore it.
The complete OLMo 2 7B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores. Keys and values for all 32 heads, per token per layer. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup100,3524,096Input token vectorsCL4,096Transformer layers 1–32Transformer layers 1–32 · 32 repetitions32 layers · one layer shown32Multi-head attention: One dense SwiGLU network per layer (hidden size 11008), with RMSNorm applied to the outputs of attention and the feed-forward network.Multi-headattentionRotate query and key position components before attention scores; values are unchanged. One dense SwiGLU network per layer (hidden size 11008), with RMSNorm applied to the outputs of attention and the feed-forward network.RoPENormalise queries and keys before attention scores. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.QK-normNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +SwiGLU: One dense SwiGLU network per layer (hidden size 11008), with RMSNorm applied to the outputs of attention and the feed-forward network.SwiGLUNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +Residual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096100,352Vocabulary scoresSoftmax100,352Next-token probabilities
Inside multi-head attention · Transformer layers 1–32
32 heads.

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

OLMo 2 7B: Transformer layers 1–32 · multi-head attention32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores. Keys and values for all 32 heads, per token per layer.32 heads; the front face shows one representative.32 headsAttention input. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Wq4,0964,096Wk. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Wk4,0964,096Wv. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Wv4,0964,096RMSNorm. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.RoPERMSNorm. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.RMSNorm4,096RoPE. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.RoPEK cache. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.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, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.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, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.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, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.CLCL×. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.×Joined heads. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.32Wo. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Wo4,0964,096Attention output. 32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Model-specific details
Transformer layers 1–32 · 32 repetitions
One dense SwiGLU network per layer (hidden size 11008), with RMSNorm applied to the outputs of attention and the feed-forward network.
Attention and positions
32 query heads and 32 key/value heads, so no sharing. Rotary positions with theta 500,000. Queries and keys are normalised over their full projected width (4096 each) before the attention scores.
Memory
Keys and values for all 32 heads, per token per layer.

Output norms rather than input norms

Each attention and feed-forward output receives RMSNorm before residual addition. QK-norm covers the full 4,096-coordinate projections before splitting into heads.

All 32 attention heads retain separate keys and values. RoPE base is 500,000, projections have no biases and embeddings are untied.

The November 2024 base model trained at 4,096 tokens. The 32B sibling adds grouped-query sharing.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
OLMo 2 7B6AA Index 4.3.2Published checkpoint
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. OLMo 2 7B 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 2 7B: 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