The Rabbit Hole / AI / Model architectures
Technology Innovation Institute · Architecture mapFalcon-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
Inside grouped-query attention · Hybrid layers 1–44
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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
- 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
- Parallel layers: does feed-forward have to wait?
- Grouped-query attention (GQA): sharing keys and values in groups
- RoPE: position as a rotation
- Scaling multipliers: fixed constants on embeddings, branches and logitscoming soonFixed constants multiplying embeddings, branches and outputs, chosen so training settings carry over between sizes.
- Gated RMSNorm: controlling the layer's output
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- Transformer layers: attention is only half of what you need