The Rabbit Hole / AI / Model architectures
Liquid AI · Architecture mapLFM2.5 MoE (24B-A2B and 8B-A1B)
Three of every four layers are a gated short convolution with a fixed-size state, not attention, and the feed-forward blocks are sparse experts.
LFM2.5-24B-A2B, October 2026 (LFM2.5-8B-A1B, May 2026) · LFM release timeline
Inside LFM2.5 MoE (24B-A2B and 8B-A1B)
Inside grouped-query attention · Attention layers 3, 7, 11, 15, 19, 23, 27, 31, 35 and 39
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Convolution layers 1 and 2 · 2 repetitions
- A gated short convolution, then a dense SwiGLU feed-forward network (hidden size 11776).
- Convolution layers (the other 28) · 28 repetitions
- A gated short convolution, then 64 routed experts (size 1536), 4 chosen per token. No shared expert.
- Attention layers 3, 7, 11, 15, 19, 23, 27, 31, 35 and 39 · 10 repetitions
- Grouped-query attention, then the same expert block.
- Attention and positions
- 10 of 40 layers are softmax attention with 32 query heads sharing 8 key/value heads of size 64, with a per-head RMSNorm on queries and keys before rotary positions (theta 10,000,000). The other 30 layers are gated short convolutions, not attention.
- Memory
- Attention layers store keys and values for 8 heads of size 64 per token. The 30 convolution layers keep only a fixed-size buffer for their width-3 convolution, which does not grow with context.
Inside grouped-query attention · Attention layers 3, 7, 11, 15, 19 and 22
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Convolution layers 1 and 2 · 2 repetitions
- A gated short convolution, then a dense SwiGLU feed-forward network (hidden size 7168).
- Convolution layers (the other 16) · 16 repetitions
- A gated short convolution, then 32 routed experts (size 1792), 4 chosen per token. No shared expert.
- Attention layers 3, 7, 11, 15, 19 and 22 · 6 repetitions
- Grouped-query attention, then the same expert block.
- Attention and positions
- 6 of 24 layers are softmax attention with 32 query heads sharing 8 key/value heads of size 64, with a per-head RMSNorm on queries and keys before rotary positions (theta 5,000,000). The other 18 layers are gated short convolutions.
- Memory
- Attention layers store keys and values for 8 heads of size 64 per token. The 18 convolution layers keep only a fixed-size buffer.
What changes between sizes
- 24B-A2B: 30 short-convolution layers and ten attention layers; 64 routed experts of width 1,536, four selected per token.
- 8B-A1B: six attention layers in 24; 32 routed experts of width 1,792, four selected.
The first two layers are dense. Later layers have no shared expert. Attention applies QK-norm and RoPE; embeddings are tied.
The 24B card specifies 131,072 tokens; the 8B card specifies 128,000. The dense LFM2.5 checkpoints have a separate page.
How it scores
AA Intelligence Index
Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.
| Checkpoint / size | Result | Evaluation |
|---|---|---|
| LFM2.5-8B-A1B8B-A1B | 7 | AA Index 4.3.2Published checkpoint |
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
- Short convolution: what if a layer only mixed nearby tokens?
- Hybrid attention and SSM models: different kinds of memory
- Grouped-query attention (GQA): sharing keys and values in groups
- QK normalisation (QK-Norm) and soft-capping
- RoPE: position as a rotation
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work
- Transformer layers: attention is only half of what you need
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
Sources for this map
- Liquid AI — release announcement, 13 October 2026
- LFM2.5-24B-A2B config.json
- LFM2.5-24B-A2B model card
- LFM2.5-8B-A1B config.json
- LFM2.5-8B-A1B model card
- LFM2-8B-A1B model card (the earlier generation)
- transformers modeling_lfm2_moe.py (decoder layer, short convolution, router)
- Context length: 131,072 tokens (24B model card); 128,000 (8B model card)