The Rabbit Hole / AI / Model architectures
Zhipu AI (Z.ai) · Architecture mapGLM-4.5
Grouped-query attention with partial rotary positions and a few dense layers before the experts.
GLM-4.5, August 2025 · GLM release timeline
Inside GLM-4.5
Inside grouped-query attention · Transformer layers 1–3
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Transformer layers 1–3 · 3 repetitions
- Dense feed-forward networks (intermediate size 12288).
- Transformer layers 4–92 · 89 repetitions
- 160 routed experts (size 1536), 8 chosen per token, plus 1 shared expert. Sigmoid-style top-k with normalised weights, scaling factor 2.5.
- Attention and positions
- 96 query heads share 8 key/value heads of size 128. Biases on the query, key and value projections (not the output), query/key normalisation, and rotary applied to half of each head.
- Memory
- Keys and values for 8 heads of size 128 per token per layer.
Inside grouped-query attention · Transformer layer 1
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Transformer layer 1 · 1 repetitions
- One dense feed-forward network (intermediate size 10944).
- Transformer layers 2–46 · 45 repetitions
- 128 routed experts (size 1408), 8 chosen per token, plus 1 shared expert.
- Attention and positions
- 96 query heads share 8 key/value heads of size 128. Biases on the query, key and value projections (not the output) and rotary applied to half of each head. No query/key normalisation (GLM-4.5 has it).
- Memory
- Keys and values for 8 heads of size 128 per token per layer.
Full and Air
The 355B-A32B stack has 92 layers, with 96 query heads sharing eight 128-wide key/value heads. The picker also includes Air 106B-A12B.
- The full model applies QK-norm before RoPE; rotary positions cover half of each head.
- Query, key and value projections include biases.
- Expert layers use 160 routed experts in the full size.
- The config lists one auxiliary prediction layer.
Both sizes support a 131,072-token context and share thinking/non-thinking modes within the same layout.
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 |
|---|---|---|
| GLM-4.5355B-A32B | 13 | AA Index 4.3.2Published checkpoint |
| GLM-4.5-AirAir 106B-A12B | 11 | 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
- Grouped-query attention (GQA): sharing keys and values in groups
- QK normalisation (QK-Norm) and soft-capping
- Bias terms in attention: a small constant on every projectioncoming soonA small learned constant added to the query, key and value projections.
- Partial RoPE: rotating only part of each head
- Mixture of experts (MoE): a big model that uses only part of itself
- Multi-token prediction (MTP): learning to look further ahead
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation
- Neural network layers: more inputs, more neurons
- Routing: selecting experts and weighting their work