Pick the recipe a 2026 frontier open weight LLM block actually ships
The 2026 frontier recipe is pre-norm + RMSNorm + SwiGLU + GQA + RoPE + untied embeddings. Every other option mixes at least one obsolete or unstable choice that no production lab still ships.
Imagine six dials on the back of a transformer block. Over eight years the field has nudged each dial one click in the same direction. Norm went from after to before the sublayer. The norm itself dropped its mean-subtraction step to become RMSNorm. The activation gained a gating partner and became SwiGLU. Attention started sharing keys and values across heads to become GQA. Positional information moved from input addition into the attention dot product itself, becoming RoPE. And the output projection became its own table instead of borrowing the input word to numbers phone book. Every modern open-weight frontier LLM ships the exact same combination of dial settings. The wrong answers leave at least one dial in its 2017 or 2018 position, which is enough to disqualify a 2026 production block.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
If you have to pick which transformer block recipe a 2026 frontier open-weight model ships, you are really being asked whether you can read a config file. The convergence across labs is so tight that one set of six choices appears in essentially every Llama, Mistral, Qwen, and DeepSeek config you will encounter in production.
This card walks the six axes, gives each modern choice its history in two paragraphs, names a 2026 model that ships it, and explains specifically why the three wrong options each fail at least one axis hard enough to disqualify the recipe.
Axis 1-2: norm placement and norm type
Pre-norm placement. The original 2017 architecture used post-norm: x = LayerNorm(x + Sublayer(x)). The norm sits AFTER the residual sum. This was the Vaswani default and worked for the 6-layer encoder-decoder of the original Attention Is All You Need. It does not scale.
Around 2019-2020 (On Layer Normalization in the Transformer Architecture, Xiong et al.), the field discovered that swapping to pre-norm (x = x + Sublayer(LayerNorm(x)), with the norm on the sublayer's INPUT) produces gradient flow that does not require heavy warmup and trains 30-100 layer stacks stably. Every modern frontier LLM uses pre-norm. The cost is that the residual stream grows un-normalized through the stack, which is why pre-norm models add a final RMSNorm before the LM head.
RMSNorm. LayerNorm: subtract the mean across d_model, divide by the sqrt of variance, scale by a learned per-channel gamma, add a learned per-channel beta. RMSNorm: just divide by sqrt of mean-square along d_model, scale by gamma. Two operations dropped (mean subtraction, beta bias) and the kernel is faster.
The Llama lineage popularized RMSNorm in 2023. Ablations show it matches LayerNorm in final quality and saves ~10-20% on the norm kernel cost. Llama 3, Mistral, Qwen, DeepSeek all use RMSNorm everywhere LayerNorm would have gone. This is one of the cheapest wins in the modern recipe: a strict Pareto improvement.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
| Axis | 2017 paper (Option B) | 2019 transition (Option C) | 2026 consensus (Option A) |
|---|---|---|---|
| Norm placement | Post-norm | Pre-norm | Pre-norm |
| Norm type | LayerNorm | LayerNorm | RMSNorm |
| FFN activation | ReLU | GELU | SwiGLU |
| Attention variant | Full MHA | Full MHA | GQA (or MLA) |
| Positional encoding | Sinusoidal | Learned absolute | RoPE |
| Embedding tying | Tied | Tied | Untied |
Real products, models, and research that use this idea.
- Llama 3 70B (Meta, 2024): pre-norm + RMSNorm + SwiGLU + GQA (64 query heads, 8 KV heads) + RoPE + untied 128k-vocab embeddings.
- Mistral Large 3 (Mistral, 2025): same six axes; GQA with sliding-window attention as an additional axis on top.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy did the field converge on this exact six-axis recipe across so many independent labs?
Each swap was validated by a paper with strong ablations (pre-norm: 2019; RMSNorm: 2019; SwiGLU: 2020 GLU Variants; GQA: 2023; RoPE: 2021 RoFormer). Once Llama 1/2 shipped the combined recipe and trained well, subsequent labs copied because the cost of deviating without a clear quality story is high. Empirical convergence under competitive pressure, not coordination.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Picking Option D because it has RMSNorm and GQA. The post-norm placement disqualifies it immediately; no 2026 frontier LLM ships post-norm at the depths these models reach.
60 second bullets to scan on the way to the call.
Six axes of a modern transformer block and the canonical choice on each
Pre-norm vs post-norm: which one trains 80-layer stacks stably
Primary sources. Browse if you want the original framing.
- Touvron et al., Llama 2: Open Foundation and Fine-Tuned Chat Models
- Su et al., RoFormer: Enhanced Transformer with Rotary Position Embedding
- Shazeer, GLU Variants Improve Transformer
- Ainslie et al., GQA: Training Generalized Multi-Query Transformer Models
- Zhang and Sennrich, Root Mean Square Layer Normalization
Same topic, related formats. Practice these next.