The Rabbit Hole / AI / Model architectures
NVIDIA · Architecture map Nemotron Labs Dory 1.0 4B A normalised transformer that reuses a shared 20-block stack, with the input state reinjected on every pass.
NVIDIA-Nemotron-Labs-Dory1.0-4B-BF16, 16 October 2026 · NVIDIA release timeline
Architecture map What to notice Component articles Compare with another model Sources Inside Nemotron Labs Dory 1.0 4B
Parameters 4B
Layers 36 blocks · 56 block evaluations at 2 loops
Width 2,560
Mixer Grouped-query Select a component to explore it. Layer colours match the execution-order strip. Inside grouped-query attention · Local attention · Input 4 query heads per group × 4 K/V groups. Earlier context dimmed · current token bright · dashed regions contain cached entries.
Nemotron Labs Dory 1.0 4B: Local attention · Input · grouped-query attention 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Per-loop caching stores separate keys and values for each recurrent pass. Last-loop caching instead overwrites one cache per recurrent attention layer, retaining the final pass for earlier tokens. Local layers keep at most 1024 tokens. The default diagram and cache sizes use two loops with separate caches. 4 KV groups; the front face shows one representative. 4 KV groups 4 heads / group; the front face shows one representative. 4 heads / group Attention input. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Attention input 2,560 CL Wq. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wq 2,560 256 Wk. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wk 2,560 256 Wv. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wv 2,560 256 RoPE. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. RoPE L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm Query scale. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Query scale RoPE. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. RoPE L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm K cache. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. K cache 256 ≤ 1024 V cache. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. V cache 256 ≤ 1024 Q context. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Q context 256 CL Scaled query–key scores, masking and softmax. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Window 1,024 CL CL ×. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. × Wg. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wg 2,560 256 σ. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. σ ×. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. × Joined heads. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. 16 L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm 4,096 Wo. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wo 4,096 2,560 Attention output. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Attention output 2,560 CL Inside grouped-query attention · Full attention · Input 4 query heads per group × 4 K/V groups. Earlier context dimmed · current token bright · dashed regions contain cached entries.
Nemotron Labs Dory 1.0 4B: Full attention · Input · grouped-query attention 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Per-loop caching stores separate keys and values for each recurrent pass. Last-loop caching instead overwrites one cache per recurrent attention layer, retaining the final pass for earlier tokens. Local layers keep at most 1024 tokens. The default diagram and cache sizes use two loops with separate caches. 4 KV groups; the front face shows one representative. 4 KV groups 4 heads / group; the front face shows one representative. 4 heads / group Attention input. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Attention input 2,560 CL Wq. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wq 2,560 256 Wk. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wk 2,560 256 Wv. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wv 2,560 256 RoPE. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. RoPE L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm Query scale. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Query scale RoPE. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. RoPE L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm K cache. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. K cache 256 CL V cache. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. V cache 256 CL Q context. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Q context 256 CL Scaled query–key scores, masking and softmax. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. CL CL ×. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. × Wg. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wg 2,560 256 σ. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. σ ×. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. × Joined heads. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. 16 L2-norm. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. L2-norm 4,096 Wo. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Wo 4,096 2,560 Attention output. 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Earlier context is dimmed; outlined columns are current. Current token computation. Attention output 2,560 CL Model-specific details Local attention · Input · 6 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Full attention · Input · 2 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Local attention · Shared recurrent block · 15 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Full attention · Shared recurrent block · 5 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Local attention · Output · 6 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Full attention · Output · 2 repetitions nGPT normalises vectors and combines the residual and branch with learned per-coordinate interpolation, followed by L2 normalisation. SwiGLU intermediate width 7168. Attention and positions 16 query heads share 4 key/value heads, each 256 wide. Three sliding-window blocks (1024 tokens) alternate with one full-attention block. RoPE covers the whole head; Q/K L2 normalisation follows RoPE, with learned coordinate scaling on Q. A coordinate-wise sigmoid gate acts before the output projection. Memory Per-loop caching stores separate keys and values for each recurrent pass. Last-loop caching instead overwrites one cache per recurrent attention layer, retaining the final pass for earlier tokens. Local layers keep at most 1024 tokens. The default diagram and cache sizes use two loops with separate caches. More depth from the same weights
Eight input blocks run once, twenty shared blocks repeat, then eight output blocks run once. Two loops give 56 block evaluations; four give 96, without adding parameters.
Each pass starts with the previous state plus the saved input-block output, then normalises the result.
The checkpoint counts attention and MLP separately: 72 sublayers form the 36 blocks shown here. Loop count and cache mode can change at inference.
Explore the components Sources for this map