The Rabbit Hole / AI / Model architectures
Allen Institute for AI · Architecture mapOLMo 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
Inside multi-head attention · Transformer layers 1–32
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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 / size | Result | Evaluation |
|---|---|---|
| OLMo 2 7B | 6 | AA Index 4.3.2Published checkpoint |
Explore the components
- Embeddings: giving every token a meaning
- Residual connections: when more layers made things worse
- A whole LLM, layer by layer
- RMSNorm: keeping a token's scale under control
- Pre-norm and post-norm: follow the residual path
- QK normalisation (QK-Norm) and soft-capping
- RoPE: position as a rotation
- Transformer layers: attention is only half of what you need
- Attention, from scratch
- The KV cache: why LLMs remember every key and value