Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Google DeepMind · Architecture map

DiffusionGemma 26B-A4B

A Gemma 4 mixture of experts that writes text by denoising a block of 256 random tokens in parallel, instead of one token at a time.

DiffusionGemma 26B-A4B (it), June 2026 · Gemma release timeline

Inside DiffusionGemma 26B-A4B

Parameters
25.2B · 3.8B active
Layers
30
Width
2,816
Mixer
Grouped-query
Select a component to explore it. Layer colours match the execution-order strip.
The complete DiffusionGemma 26B-A4B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1. The cache holds the prompt and the committed blocks, written by the causal encoder pass. It is read-only while the canvas is being denoised; the canvas keys and values are recomputed at every step and thrown away. Final normalisation and output weights produce vocabulary scores and probabilities at every canvas position.256-token canvasPrompt + noisy canvasprompt…noisycanvasEmbedding lookup262,1442,816Input token vectorsCL2,81627-layer vision transformer (width 1152, patch 16, 3×3 pooling), 280 tokens per image by default; also takes video frames, no audioVision / videoencoderExecution order · 30 layersLayer 1: Local layers (all except every 6th)Layer 2: Local layers (all except every 6th)Layer 3: Local layers (all except every 6th)Layer 4: Local layers (all except every 6th)Layer 5: Local layers (all except every 6th)Layer 6: Global layers (6, 12, 18, 24, 30)Layer 7: Local layers (all except every 6th)Layer 8: Local layers (all except every 6th)Layer 9: Local layers (all except every 6th)Layer 10: Local layers (all except every 6th)Layer 11: Local layers (all except every 6th)Layer 12: Global layers (6, 12, 18, 24, 30)Layer 13: Local layers (all except every 6th)Layer 14: Local layers (all except every 6th)Layer 15: Local layers (all except every 6th)Layer 16: Local layers (all except every 6th)Layer 17: Local layers (all except every 6th)Layer 18: Global layers (6, 12, 18, 24, 30)Layer 19: Local layers (all except every 6th)Layer 20: Local layers (all except every 6th)Layer 21: Local layers (all except every 6th)Layer 22: Local layers (all except every 6th)Layer 23: Local layers (all except every 6th)Layer 24: Global layers (6, 12, 18, 24, 30)Layer 25: Local layers (all except every 6th)Layer 26: Local layers (all except every 6th)Layer 27: Local layers (all except every 6th)Layer 28: Local layers (all except every 6th)Layer 29: Local layers (all except every 6th)Layer 30: Global layers (6, 12, 18, 24, 30)Local layers (all except every 6th) · matches this colour in the execution-order barLocal layers (all except every 6th)Local layers (all except every 6th) · 25 repetitions25 layers · one layer shown25RMSNorm before this operation.RMSNormGrouped-query attention: Sliding-window attention over the cached prompt (last 1,024 tokens) plus the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Sliding-window attention over the cached prompt (last 1,024 tokens) plus the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.RoPENormalise queries and keys before attention scores. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.QK-normSliding-window attention over 1,024 tokens.1,024The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Value normThe decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.BidirectionalNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Sliding-window attention over the cached prompt (last 1,024 tokens) plus the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.MoE8 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +8 of 128 experts +always-on denseLayer type · execution order aboveGlobal layers (6, 12, 18, 24, 30) · matches this colour in the execution-order barGlobal layers (6, 12, 18, 24, 30)Global layers (6, 12, 18, 24, 30) · 5 repetitions5 layers · one layer shown5RMSNorm before this operation.RMSNormGrouped-query attention: Full attention over the cached prompt and the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Full attention over the cached prompt and the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.Partial RoPENormalise queries and keys before attention scores. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.QK-normThe decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Value normThe decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.BidirectionalNormalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Full attention over the cached prompt and the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.MoE8 of 128 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Normalise the branch output before the residual update.RMSNormAdd the branch output to the original stream. +8 of 128 experts +always-on denseLayer type · execution order aboveAfter all 30 layer executionsResidual streamCL2,816Final RMSNormReuses the embedding table, transposed.Tied output weights2,816262,144Vocabulary scoresSoftmax262,144CLProbabilities at each canvas positiondenoise: up to 48 steps · keep the confident tokens, re-noise the restDenoising loop · denoise: up to 48 steps
Inside grouped-query attention · Local layers (all except every 6th)
2 query heads per group × 8 K/V groups.

Earlier prompt dimmed · active canvas bright · dashed regions contain cached entries.

DiffusionGemma 26B-A4B: Local layers (all except every 6th) · grouped-query attentionThe decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1. The cache holds the prompt and the committed blocks, written by the causal encoder pass. It is read-only while the canvas is being denoised; the canvas keys and values are recomputed at every step and thrown away.8 KV groups; the front face shows one representative.8 KV groups2 heads / group; the front face shows one representative.2 heads / groupAttention input. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,816CLWq. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wq2,816256Wk. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wk2,816256Wv. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wv2,816256RMSNorm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RMSNormRoPE. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RoPERMSNorm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RMSNormRoPE. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RoPEValue norm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Value normK cache. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache256≤ 1024V cache. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache256≤ 1024Q context. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLScaled query–key scores, masking and softmax. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Window 1,024CLCL×. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.×Joined heads. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.16Wo. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wo4,0962,816Attention output. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,816CL
Inside grouped-query attention · Global layers (6, 12, 18, 24, 30)
8 query heads per group × 2 K/V groups.

Earlier prompt dimmed · active canvas bright · dashed regions contain cached entries.

DiffusionGemma 26B-A4B: Global layers (6, 12, 18, 24, 30) · grouped-query attentionThe decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1. The cache holds the prompt and the committed blocks, written by the causal encoder pass. It is read-only while the canvas is being denoised; the canvas keys and values are recomputed at every step and thrown away.2 KV groups; the front face shows one representative.2 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,816CLWq. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wq2,816512Wkv. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wkv2,816512RMSNorm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RMSNormRoPE 128. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RoPE 128RMSNorm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RMSNormRoPE 128. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.RoPE 128Value norm. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Value normK cache. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache512CLV cache. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache512CLQ context. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Q context512CLScaled query–key scores, masking and softmax. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.CLCL×. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.×Joined heads. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.16Wo. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Wo8,1922,816Attention output. The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,816CL
Model-specific details
Local layers (all except every 6th) · 25 repetitions
Sliding-window attention over the cached prompt (last 1,024 tokens) plus the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.
reads the prompt cache
During denoising the decoder never writes the cache. It holds the prompt and the blocks already committed, and is read-only.
Global layers (6, 12, 18, 24, 30) · 5 repetitions
Full attention over the cached prompt and the whole canvas, then a dense feed-forward network (2,112 wide) beside 128 routed experts of 704 wide, 8 chosen per token. The two outputs are summed.
reads the prompt cache
During denoising the decoder never writes the cache. It holds the prompt and the blocks already committed, and is read-only.
Attention and positions
The decoder attends bidirectionally: every canvas token sees every other canvas token and the whole cached prompt. The encoder pass that writes the cache uses ordinary causal masks. Local layers see the last 1,024 cached tokens; global layers see all of it. There are 16 query heads. Local layers have 8 key/value heads of 256 values. Global layers have 2 key/value heads of 512 values and no separate value projection: the value comes from the key projection. Queries and keys are RMS-normalised, values are normalised without a learned scale, and the attention scale is 1.
Memory
The cache holds the prompt and the committed blocks, written by the causal encoder pass. It is read-only while the canvas is being denoised; the canvas keys and values are recomputed at every step and thrown away.
How a block is writtenHow a block is written. Steps: 1. The canvas, 2. Add self-conditioning, 3. The network, 4. Predict every position, 5. Sample and accept, 6. Re-noise the rest. denoise: up to 48 steps Canvas settled: the causal encoder pass adds it to the cache, and the next canvas starts as random tokens.How a block is written1. The canvas256 random vocabulary tokens (later steps: thecurrent noisy block).2. Add self-conditioningLast step's probabilities, turned into vectorsthrough the embedding table and a small gatednetwork, are added to the canvas embeddings.3. The networkThe same layers as above. Every canvas tokensees every other and the whole cached prompt.4. Predict every positionA probability over the vocabulary at all 256positions at once.5. Sample and acceptDraw a token at each position, then acceptpositions from the lowest entropy upward whilethe combined entropy stays small.6. Re-noise the restEvery position not accepted gets a freshrandom token. Acceptance is recomputed eachstep.denoise: up to 48 stepsCanvas settled: the causal encoder pass addsit to the cache, and the next canvas startsas random tokens.
What to notice: the network is the same stack of layers drawn above. What makes this diffusion is the loop around it: the whole block is predicted, the confident tokens are kept, and the rest go round again.

How it writes a block

The backbone

The Gemma 4 26B-A4B stack has 30 layers: 25 local and 5 global. Each layer combines a dense network with 128 experts. The released instruction-tuned checkpoint has 25.2B parameters, 3.8B active, and supports up to 262,144 tokens.

How it scores

AA Intelligence Index

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

Checkpoint / sizeResultEvaluation
DiffusionGemma 26B A4B10AA Index 4.3.2Best evaluated setting
AA Index distributionBest checkpoint per model variant among 97 scored variants in this atlas. DiffusionGemma 26B A4B scores 10; 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 →
DiffusionGemma 26B A4B: 10. Distribution of 97 scored variants in this atlas, using each variant’s best checkpoint. Known estimates excluded.

Explore the components

Sources for this map