The Rabbit Hole / AI / Model architectures
Zhipu AI (Z.ai) · Architecture map GLM-4.7-Flash A 30B-A3B GLM that uses DeepSeek-style latent attention and one dense layer before 46 expert layers, where the larger GLM-4.7 keeps grouped-query attention.
GLM-4.7-Flash, January 2026 · GLM release timeline
Architecture map What to notice How it scores Component articles Compare with another model Sources Inside GLM-4.7-Flash
Parameters 30B · 3B active
Layers 47
Width 2,048
Mixer Latent Select a component to explore it. Inside latent attention · Transformer layer 1 20 heads · 512 cached latent values + 64 rotary values. Earlier context dimmed · current token bright · dashed regions contain cached entries.
GLM-4.7-Flash: Transformer layer 1 · latent attention 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. A 512-value KV latent plus a 64-value rotary key per token per layer. 1 shared latent cache; the front face shows one representative. 1 shared latent cache 20 attention heads; the front face shows one representative. 20 attention heads Attention input. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Earlier context is dimmed; outlined columns are current. Current token computation. Attention input 2,048 CL Wq↓. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wq↓ 2,048 768 RMSNorm. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. RMSNorm Wq↑. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wq↑ 768 256 RoPE 64. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. RoPE 64 Wkv↓. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wkv↓ 2,048 512 RMSNorm. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. RMSNorm 512 Wkᴿ. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wkᴿ 2,048 64 RoPE 64. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. RoPE 64 cᴷⱽ ⊕ kᴿ. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. cᴷⱽ ⊕ kᴿ Latent cache. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. Latent cache 576 CL Wk↑. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wk↑ 512 192 Wv↑. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wv↑ 512 256 kᶜ ⊕ kᴿ. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. kᶜ ⊕ kᴿ 256 Q context. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Earlier context is dimmed; outlined columns are current. Current token computation. Q context 256 CL Scaled query–key scores, masking and softmax. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. CL CL ×. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. × Joined heads. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. 20 Wo. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Wo 5,120 2,048 Attention output. 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Earlier context is dimmed; outlined columns are current. Current token computation. Attention output 2,048 CL Model-specific details Transformer layer 1 · 1 repetitions Dense feed-forward network (intermediate size 10240). Transformer layers 2–47 · 46 repetitions 64 routed experts (size 1536), 4 chosen per token, plus 1 shared expert. Sigmoid scores with a selection bias, weights renormalised, scaling factor 1.8, one group. Attention and positions 20 heads; query rank 768, KV latent 512, key 192 content plus 64 rotary, value size 256. Keys and values are expanded from the latent for each of the 20 heads. Memory A 512-value KV latent plus a 64-value rotary key per token per layer. Latent attention in the smaller GLM
Forty-seven layers at width 2,048, with 20 attention heads.
Query latent width 768; KV latent width 512, plus 64 position coordinates.
One dense opening layer, then 46 expert layers selecting four of 64 routed experts plus one shared expert.
One auxiliary prediction layer; config context 202,752 tokens.
This is the January 2026 30B-A3B Flash checkpoint.
How it scores AA Intelligence Index Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.
AA Index distribution Best checkpoint per model variant among 97 scored variants in this atlas. GLM-4.7-Flash scores 15; its bin is highlighted. Known estimates are excluded. Model variants 0.0–3.0: 0 variants 3.0–6.0: 15 variants 6.0–9.0: 21 variants 9.0–12.0: 13 variants 12.0–15.0: 9 variants 15.0–18.0: 5 variants 18.0–21.0: 5 variants 21.0–24.0: 6 variants 24.0–27.0: 4 variants 27.0–30.0: 2 variants 30.0–33.0: 2 variants 33.0–36.0: 2 variants 36.0–39.0: 2 variants 39.0–42.0: 3 variants 42.0–45.0: 4 variants 45.0–48.0: 3 variants 48.0–51.0: 0 variants 51.0–54.0: 0 variants 54.0–57.0: 1 variants 57.0–60.0: 0 variants 21 0 0 30 60 AA Index 4.3.2 → GLM-4.7-Flash: 15 . Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded. Explore the components Sources for this map