Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

NVIDIA · Architecture map

Nemotron-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

Parameters
8B
Layers
52
Width
4,096
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete Nemotron-H 8B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 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. 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. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup131,0724,096Input token vectorsCL4,096Execution order · 52 layersLayer 1: Mamba-2 layersLayer 2: Feed-forward layersLayer 3: Mamba-2 layersLayer 4: Feed-forward layersLayer 5: Mamba-2 layersLayer 6: Feed-forward layersLayer 7: Mamba-2 layersLayer 8: Attention layersLayer 9: Feed-forward layersLayer 10: Mamba-2 layersLayer 11: Feed-forward layersLayer 12: Mamba-2 layersLayer 13: Feed-forward layersLayer 14: Mamba-2 layersLayer 15: Feed-forward layersLayer 16: Mamba-2 layersLayer 17: Feed-forward layersLayer 18: Mamba-2 layersLayer 19: Attention layersLayer 20: Feed-forward layersLayer 21: Mamba-2 layersLayer 22: Feed-forward layersLayer 23: Mamba-2 layersLayer 24: Feed-forward layersLayer 25: Mamba-2 layersLayer 26: Feed-forward layersLayer 27: Mamba-2 layersLayer 28: Feed-forward layersLayer 29: Mamba-2 layersLayer 30: Attention layersLayer 31: Feed-forward layersLayer 32: Mamba-2 layersLayer 33: Feed-forward layersLayer 34: Mamba-2 layersLayer 35: Feed-forward layersLayer 36: Mamba-2 layersLayer 37: Feed-forward layersLayer 38: Mamba-2 layersLayer 39: Feed-forward layersLayer 40: Mamba-2 layersLayer 41: Attention layersLayer 42: Feed-forward layersLayer 43: Mamba-2 layersLayer 44: Feed-forward layersLayer 45: Mamba-2 layersLayer 46: Feed-forward layersLayer 47: Mamba-2 layersLayer 48: Feed-forward layersLayer 49: Mamba-2 layersLayer 50: Feed-forward layersLayer 51: Mamba-2 layersLayer 52: Feed-forward layersMamba-2 layers · matches this colour in the execution-order barMamba-2 layersMamba-2 layers · 24 repetitions24 layers · one layer shown24RMSNorm before this operation.RMSNormMamba-2: State-space mixer only. These layers have no feed-forward network of their own.Mamba-2Add the branch output to the original stream. +Layer type · execution order aboveFeed-forward layers · matches this colour in the execution-order barFeed-forward layersFeed-forward layers · 24 repetitions24 layers · one layer shown24RMSNorm before this operation.RMSNormSquared-ReLU: A layer that is just a feed-forward network (hidden size 21504, squared ReLU), with no attention or Mamba.Squared-ReLUAdd the branch output to the original stream. +Layer type · execution order aboveAttention layers · matches this colour in the execution-order barAttention layersAttention layers · 4 repetitions4 layers · one layer shown4RMSNorm before this operation.RMSNormSoftmax attention: Layers 8, 19, 30 and 41 of 52. Attention only, with no feed-forward network in the same layer.Softmax attentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +Layer type · execution order aboveAfter all 52 layer executionsResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096131,072Vocabulary scoresSoftmax131,072Next-token probabilities
Inside grouped-query attention · Attention layers
4 query heads per group × 8 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Nemotron-H 8B: Attention layers · grouped-query attentionAttention 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. 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.8 KV groups; the front face shows one representative.8 KV groups4 heads / group; the front face shows one representative.4 heads / groupAttention input. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 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.Wq4,096128Wk. 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.Wk4,096128Wv. 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.Wv4,096128K cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 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.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 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.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.NoPECLCL×. 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.×Joined heads. 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.32Wo. 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.Wo4,0964,096Attention output. 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.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
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

Sources for this map