Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

OpenBMB · Architecture map

MiniCPM-V 4.7

A compact vision path feeds Qwen3.5-style DeltaNet and attention layers; choose a dense 1B or MoE 35B-A3B backbone.

MiniCPM-V 4.7, 2026-10-12 · MiniCPM release timeline

Inside MiniCPM-V 4.7

Size
Parameters
35B · 3B active
Layers
40
Width
2,048
Mixer
Hybrid
Select a component to explore it. Layer colours match the execution-order strip.
The complete MiniCPM-V 4.7 architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution. Only the full-attention layers store token KV pairs. DeltaNet layers keep fixed recurrent states and short convolution buffers. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup248,1442,048Input token vectorsCL2,04827-layer vision encoder at width 1152, 14-pixel patches; 4×/16× visual downsampling. Canvas M-RoPE keeps image-slice geometry and frame timing.Vision / videoencoderExecution order · 40 layersLayer 1: DeltaNet layersLayer 2: DeltaNet layersLayer 3: DeltaNet layersLayer 4: Attention layersLayer 5: DeltaNet layersLayer 6: DeltaNet layersLayer 7: DeltaNet layersLayer 8: Attention layersLayer 9: DeltaNet layersLayer 10: DeltaNet layersLayer 11: DeltaNet layersLayer 12: Attention layersLayer 13: DeltaNet layersLayer 14: DeltaNet layersLayer 15: DeltaNet layersLayer 16: Attention layersLayer 17: DeltaNet layersLayer 18: DeltaNet layersLayer 19: DeltaNet layersLayer 20: Attention layersLayer 21: DeltaNet layersLayer 22: DeltaNet layersLayer 23: DeltaNet layersLayer 24: Attention layersLayer 25: DeltaNet layersLayer 26: DeltaNet layersLayer 27: DeltaNet layersLayer 28: Attention layersLayer 29: DeltaNet layersLayer 30: DeltaNet layersLayer 31: DeltaNet layersLayer 32: Attention layersLayer 33: DeltaNet layersLayer 34: DeltaNet layersLayer 35: DeltaNet layersLayer 36: Attention layersLayer 37: DeltaNet layersLayer 38: DeltaNet layersLayer 39: DeltaNet layersLayer 40: Attention layersDeltaNet layers · matches this colour in the execution-order barDeltaNet layersDeltaNet layers · 30 repetitions30 layers · one layer shown30RMSNorm before this operation.RMSNormGated DeltaNet: DeltaNet layers.Gated DeltaNetAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: DeltaNet layers.MoE8 of 256 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +8 of 256 experts + 1sharedLayer type · execution order aboveAttention layers · matches this colour in the execution-order barAttention layersAttention layers · 10 repetitions10 layers · one layer shown10RMSNorm before this operation.RMSNormGated GQA: Attention layers.Gated GQARotate query and key position components before attention scores; values are unchanged. Attention layers.RoPENormalise queries and keys before attention scores. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.QK-normAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Attention layers.MoE8 of 256 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +8 of 256 experts + 1sharedLayer type · execution order aboveAfter all 40 layer executionsResidual streamLast columnCL2,048Final RMSNormA separate learned vocabulary projection.Output weights2,048248,144Vocabulary scoresSoftmax248,144Next-token probabilities
Inside linear attention · DeltaNet layers
32 state heads · 16 Q/K heads.

Earlier context dimmed · current token bright · dashed path carries state to the next step.

MiniCPM-V 4.7: DeltaNet layers · linear attention16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution. Only the full-attention layers store token KV pairs. DeltaNet layers keep fixed recurrent states and short convolution buffers.32 value heads; the front face shows one representative.32 value heads32 state heads; the front face shows one representative.32 state headsAttention input. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wq2,048128Wk. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wk2,048128Wv. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wv2,048128Conv 4 + SiLU. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Conv 4 + SiLUConv 4 + SiLU. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Conv 4 + SiLUConv 4 + SiLU. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Conv 4 + SiLUL2-norm. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.L2-normL2-norm. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.L2-normQ. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.K128CLV. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.V128CLPrevious state. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Previous state128128Decay + delta. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Decay + deltaInput projections produce the decay and write-strength gates. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.α / β2,0482Updated state. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Updated state128128×. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.×Gated RMSNorm. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Gated RMSNormJoined heads. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.32Wo. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wo4,0962,048Attention output. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Inside grouped-query attention · Attention layers
8 query heads per group × 2 K/V groups.

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

MiniCPM-V 4.7: Attention layers · grouped-query attention16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution. Only the full-attention layers store token KV pairs. DeltaNet layers keep fixed recurrent states and short convolution buffers.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 of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,048CLWq. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wq2,048256Wk. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wk2,048256Wv. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wv2,048256RMSNorm. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.RMSNormRoPE 64. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.RoPE 64RMSNorm. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.RMSNormRoPE 64. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.RoPE 64K cache. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache256CLV cache. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache256CLQ context. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLScaled query–key scores, masking and softmax. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.CLCL×. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.×Wg. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wg2,048256σ. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.σ×. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.×Joined heads. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.16Wo. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Wo4,0962,048Attention output. 16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,048CL
Model-specific details
DeltaNet layers · 30 repetitions
DeltaNet layers.
Attention layers · 10 repetitions
Attention layers.
Attention and positions
16 query heads share 2 KV heads of width 256; a coordinate-wise sigmoid gate scales attention outputs. A quarter of each Q/K head uses multimodal RoPE. DeltaNet has 32 value heads sharing 16 key patterns, with 128 × 128 states and a four-token Q/K/V convolution.
Memory
Only the full-attention layers store token KV pairs. DeltaNet layers keep fixed recurrent states and short convolution buffers.

What changes between the two sizes

The released text configurations allow 262,144 positions. Vision and speculative-decoding parameters sit outside the language backbone counts.

Explore the components

Sources for this map