Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

OpenBMB · Architecture map

MiniCPM5

Dense on-device models: the same full-context grouped-query attention at 1B and 2B, with separate output weights.

MiniCPM5, 2026-09-07 · MiniCPM release timeline

Inside MiniCPM5

Size
Parameters
2.517B
Layers
42
Width
2,048
Mixer
Grouped-query
Select a component to explore it.
The complete MiniCPM5 architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 16 query heads share 2 KV heads, each 128 wide. Keys and values for 2 heads per layer. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup130,5602,048Input token vectorsCL2,048Transformer layersTransformer layers · 42 repetitions42 layers · one layer shown42RMSNorm before this operation.RMSNormGrouped-query attention: Transformer layers.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Transformer layers.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Transformer layers.SwiGLUAdd the branch output to the original stream. +Residual streamLast columnCL2,048Final RMSNormA separate learned vocabulary projection.Output weights2,048130,560Vocabulary scoresSoftmax130,560Next-token probabilities
Inside grouped-query attention · Transformer layers
8 query heads per group × 2 K/V groups.

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

MiniCPM5: Transformer layers · grouped-query attention16 query heads share 2 KV heads, each 128 wide. Keys and values for 2 heads per layer.2 KV groups; the front face shows one representative.2 KV groups8 heads / group; the front face shows one representative.8 heads / groupAttention input. 16 query heads share 2 KV heads, each 128 wide.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 16 query heads share 2 KV heads, each 128 wide.Wq2,048128Wk. 16 query heads share 2 KV heads, each 128 wide.Wk2,048128Wv. 16 query heads share 2 KV heads, each 128 wide.Wv2,048128RoPE. 16 query heads share 2 KV heads, each 128 wide.RoPERoPE. 16 query heads share 2 KV heads, each 128 wide.RoPEK cache. 16 query heads share 2 KV heads, each 128 wide.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 16 query heads share 2 KV heads, each 128 wide.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 16 query heads share 2 KV heads, each 128 wide.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 16 query heads share 2 KV heads, each 128 wide.CLCL×. 16 query heads share 2 KV heads, each 128 wide.×Joined heads. 16 query heads share 2 KV heads, each 128 wide.16Wo. 16 query heads share 2 KV heads, each 128 wide.Wo2,0482,048Attention output. 16 query heads share 2 KV heads, each 128 wide.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Model-specific details
Transformer layers · 42 repetitions
Transformer layers.
Attention and positions
16 query heads share 2 KV heads, each 128 wide.
Memory
Keys and values for 2 heads per layer.

Two sizes, one decoder design

The 2B release is dated 7 September; the 1B release is dated 19 May in the official changelog. Both use a 131,072-token configuration.

How it scores

Developer reported

Checkpoint / sizeResultEvaluation
MiniCPM5-2B2B65.15%GPQA Diamond Liquid LFM3 launch runLiquid AI BF16 run; temperature 0.6, top_p 0.95; full model context
MiniCPM5-2B2B34.8%SWE-bench Verified Liquid LFM3 launch · OpenCodeLiquid AI OpenCode run; up to 250 turns
MiniCPM5-2B2B62.65%BFCL 4 · Liquid LFM3 launchLiquid AI BF16 run; greedy, up to 32768 output tokens

Explore the components

Sources for this map