The Rabbit Hole / AI / Model architectures
Sarvam AI · Architecture mapSarvam 105B
A latent-attention MoE decoder with 31 routed layers after a dense opening.
Sarvam 105B, March 2026 · Sarvam release timeline
Inside Sarvam 105B
Inside latent attention · Opening dense layer
Earlier context dimmed · current token bright · dashed regions contain cached entries.
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
- 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
- Multi-head latent attention (MLA): caching a compressed latent
- Mixture of experts (MoE): a big model that uses only part of itself
- Routing: selecting experts and weighting their work
- Partial RoPE: rotating only part of each head
- RoPE scaling: stretching context beyond the training length
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- RoPE: position as a rotation
- Transformer layers: attention is only half of what you need