The Rabbit Hole / AI / Model architectures
NVIDIA · Architecture mapNemotron-H 8B
A hybrid of Mamba-2 layers, plain feed-forward layers and just four attention layers, each as its own layer.
Nemotron-H 8B Base 8K, 2025 · NVIDIA release timeline
Inside Nemotron-H 8B
Inside grouped-query attention · Attention layers
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Mamba-2 layers · 24 repetitions
- State-space mixer only. These layers have no feed-forward network of their own.
- Feed-forward layers · 24 repetitions
- A layer that is just a feed-forward network (hidden size 21504, squared ReLU), with no attention or Mamba.
- Attention layers · 4 repetitions
- Layers 8, 19, 30 and 41 of 52. Attention only, with no feed-forward network in the same layer.
- Attention and positions
- Attention in 4 of 52 layers (32 query heads, 8 key/value heads, head size 128). 24 layers are Mamba-2 and 24 are feed-forward only. No softmax attention in those 48.
- Memory
- Keys and values for 8 heads of size 128 in the 4 attention layers. The 24 Mamba-2 layers keep a fixed-size state (128 state values), which does not grow with context.
Alternating Mamba and feed-forward layers
The 52-layer sequence mostly alternates Mamba-2 and dense squared-ReLU blocks. Attention appears only at layers 8, 19, 30 and 41.
Mamba uses 128 heads of width 64, state size 128 and eight groups. The base checkpoint trained on 8,192-token sequences; the later 128K reasoning checkpoint is separate.
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
- Mamba: letting each token control what the state keeps
- Hybrid attention and SSM models: different kinds of memory
- Grouped-query attention (GQA): sharing keys and values in groups
- NoPE: attention with no position information at all
- Neural network layers: more inputs, more neurons
- Attention, from scratch
- The KV cache: why LLMs remember every key and value