Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Technology Innovation Institute · Architecture map

Falcon-H1 7B

Attention heads and Mamba-2 heads run in parallel inside every layer, and their outputs are combined.

Falcon-H1-7B-Base, 2025 (technical report July 2025) · Falcon release timeline

Inside Falcon-H1 7B

Parameters
7B
Layers
44
Width
3,072
Mixer
Hybrid
Select a component to explore it.
The complete Falcon-H1 7B architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network. Keys and values for 2 heads of size 128 in every layer, plus a fixed-size Mamba-2 state per layer (state size 256) that 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 lookup130,0483,072Input token vectorsCL3,072Hybrid layers 1–44Hybrid layers 1–44 · 44 repetitions44 layers · one layer shown44RMSNorm before this operation.RMSNormAttention + state-space: Attention and a Mamba-2 mixer in parallel (24 Mamba heads of size 128), followed by a dense SwiGLU network (hidden size 12288).Attention +state-spaceRotate query and key position components before attention scores; values are unchanged. Attention and a Mamba-2 mixer in parallel (24 Mamba heads of size 128), followed by a dense SwiGLU network (hidden size 12288).RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Attention and a Mamba-2 mixer in parallel (24 Mamba heads of size 128), followed by a dense SwiGLU network (hidden size 12288).SwiGLUAdd the branch output to the original stream. +Residual streamLast columnCL3,072Final RMSNormA separate learned vocabulary projection.Output weights3,072130,048Vocabulary scoresSoftmax130,048Next-token probabilities
Inside grouped-query attention · Hybrid layers 1–44
6 query heads per group × 2 K/V groups.

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

Falcon-H1 7B: Hybrid layers 1–44 · grouped-query attentionEvery one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network. Keys and values for 2 heads of size 128 in every layer, plus a fixed-size Mamba-2 state per layer (state size 256) that does not grow with context.2 KV groups; the front face shows one representative.2 KV groups6 heads / group; the front face shows one representative.6 heads / groupAttention input. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input3,072CLWq. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Wq3,072128Wk. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Wk3,072128Wv. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Wv3,072128RoPE. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.RoPERoPE. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.RoPEK cache. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.CLCL×. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.×Joined heads. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.12Wo. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Wo1,5363,072Attention output. Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output3,072CL
Model-specific details
Hybrid layers 1–44 · 44 repetitions
Attention and a Mamba-2 mixer in parallel (24 Mamba heads of size 128), followed by a dense SwiGLU network (hidden size 12288).
Attention and positions
Every one of 44 layers has softmax attention (12 query heads, 2 key/value heads, head size 128) and a Mamba-2 mixer side by side, then a feed-forward network.
Memory
Keys and values for 2 heads of size 128 in every layer, plus a fixed-size Mamba-2 state per layer (state size 256) that does not grow with context.

Two mixers in each layer

Each layer runs attention and Mamba-2 in parallel, rather than alternating them across layers. The attention branch uses two key/value heads of width 128; the Mamba branch has its own recurrent state.

The checkpoint uses untied embeddings and fixed scaling multipliers on embeddings, branches and logits. The RoPE base is 100 billion. The 7B model’s final long-context training stage reaches 262,144 tokens.

Explore the components

Sources for this map