Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Sarvam AI · Architecture map

Sarvam 105B

A latent-attention MoE decoder with 31 routed layers after a dense opening.

Sarvam 105B, March 2026 · Sarvam release timeline

Inside Sarvam 105B

Parameters
105B · 10.3B active
Layers
32
Width
4,096
Mixer
Latent
Select a component to explore it. Layer colours match the execution-order strip.
The complete Sarvam 105B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature. Optimised MLA serving stores a 512-coordinate KV latent and 64-coordinate rotary key per token per layer. The published eager reference instead caches expanded per-head K and V; the size picker depicts the compact serving path. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup262,1444,096Input token vectorsCL4,096Execution order · 32 layersLayer 1: Opening dense layerLayer 2: Routed layersLayer 3: Routed layersLayer 4: Routed layersLayer 5: Routed layersLayer 6: Routed layersLayer 7: Routed layersLayer 8: Routed layersLayer 9: Routed layersLayer 10: Routed layersLayer 11: Routed layersLayer 12: Routed layersLayer 13: Routed layersLayer 14: Routed layersLayer 15: Routed layersLayer 16: Routed layersLayer 17: Routed layersLayer 18: Routed layersLayer 19: Routed layersLayer 20: Routed layersLayer 21: Routed layersLayer 22: Routed layersLayer 23: Routed layersLayer 24: Routed layersLayer 25: Routed layersLayer 26: Routed layersLayer 27: Routed layersLayer 28: Routed layersLayer 29: Routed layersLayer 30: Routed layersLayer 31: Routed layersLayer 32: Routed layersOpening dense layer · matches this colour in the execution-order barOpening dense layerOpening dense layer · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormLatent attention: Dense feed-forward intermediate width 16384.Latent attentionRotate query and key position components before attention scores; values are unchanged. Dense feed-forward intermediate width 16384.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Dense feed-forward intermediate width 16384.SwiGLUAdd the branch output to the original stream. +Layer type · execution order aboveRouted layers · matches this colour in the execution-order barRouted layersRouted layers · 31 repetitions31 layers · one layer shown31RMSNorm before this operation.RMSNormLatent attention: 128 routed experts of width 2048, eight selected per token, plus a shared SwiGLU expert of width 2048.Latent attentionRotate query and key position components before attention scores; values are unchanged. 128 routed experts of width 2048, eight selected per token, plus a shared SwiGLU expert of width 2048.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: 128 routed experts of width 2048, eight selected per token, plus a shared SwiGLU expert of width 2048.MoE8 of 128 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 128 experts + 1sharedLayer type · execution order aboveAfter all 32 layer executionsResidual streamLast columnCL4,096Final RMSNormA separate learned vocabulary projection.Output weights4,096262,144Vocabulary scoresSoftmax262,144Next-token probabilities
Inside latent attention · Opening dense layer
64 heads · 512 cached latent values + 64 rotary values.

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

Sarvam 105B: Opening dense layer · latent attention64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature. Optimised MLA serving stores a 512-coordinate KV latent and 64-coordinate rotary key per token per layer. The published eager reference instead caches expanded per-head K and V; the size picker depicts the compact serving path.1 shared latent cache; the front face shows one representative.1 shared latent cache64 attention heads; the front face shows one representative.64 attention headsAttention input. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,096CLWq. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wq4,096192RoPE 64. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.RoPE 64Wkv↓. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wkv↓4,096512RMSNorm. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.RMSNorm512Wkᴿ. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wkᴿ4,09664RoPE 64. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.RoPE 64cᴷⱽ ⊕ kᴿ. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.cᴷⱽ ⊕ kᴿLatent cache. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache576CLWk↑. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wk↑512128Wv↑. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wv↑512128kᶜ ⊕ kᴿ. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.kᶜ ⊕ kᴿ192Q context. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Earlier context is dimmed; outlined columns are current.Current token computation.Q context192CLScaled query–key scores, masking and softmax. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.CLCL×. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.×Joined heads. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.64Wo. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Wo8,1924,096Attention output. 64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,096CL
Model-specific details
Opening dense layer · 1 repetitions
Dense feed-forward intermediate width 16384.
Routed layers · 31 repetitions
128 routed experts of width 2048, eight selected per token, plus a shared SwiGLU expert of width 2048.
Attention and positions
64 directly projected query heads; QK width 192 consists of 128 content and 64 rotary coordinates; values width 128. A 512-coordinate KV latent is RMS-normalised and expanded into per-head content keys and values. The 64-coordinate rotary key is shared across heads. YaRN scales RoPE and the attention temperature.
Memory
Optimised MLA serving stores a 512-coordinate KV latent and 64-coordinate rotary key per token per layer. The published eager reference instead caches expanded per-head K and V; the size picker depicts the compact serving path.

Compress the attention history

The 105B model has the same residual width as the 30B, but uses 64 heads with 192 query/key coordinates and 128 value coordinates. Keeping all those projected vectors would make the cache much larger. Instead, MLA can retain a single 512-coordinate content latent and a shared 64-coordinate rotary key. The query projection is not low-rank.

The first layer uses a 16,384-wide SwiGLU network; the remaining 31 use eight of 128 routed experts and one shared expert, each 2,048 wide. The publisher’s vLLM implementation uses the compact latent attention path, while its eager reference caches expanded keys and values. The diagram and size picker describe the former.

At 8,192 tokens and 16-bit precision, the compact backbone cache occupies 288 MiB (32 × 576 × 8,192 × 2 bytes), excluding allocator overhead. The 1711 checkpoint is a further post-trained model on the same base. Its separate DSpark draft model accelerates generation without extending the target’s 32-layer stack.

Explore the components

Sources for this map