The Rabbit Hole / AI / Model architectures
Thinking Machines Lab · Architecture mapInkling 2 Small
A 48-layer multimodal MoE with learned relative attention and block attention residuals.
Inkling 2 Small, November 2026 · Inkling release timeline
Inside Inkling 2 Small
Inside grouped-query attention · Windowed attention
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Inside grouped-query attention · Full attention
Earlier context dimmed · current token bright · dashed regions contain cached entries.
Model-specific details
- Windowed attention · 40 repetitions
- Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.
- Full attention · 8 repetitions
- Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.
- Attention and positions
- 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.
- Memory
- 40 local caches of at most 1024 tokens and eight full-history caches. Convolution state is separate.
What changes from Mini
- Small stores 48 distinct backbone layers and eight six-layer residual blocks. A learned residual read mixes completed block outputs with the current partial block before each attention and MLP. Full attention uses separate Q/K/V reads; local attention uses one.
- The expert pool grows to 384, with eight selected per token. Forty local layers retain bounded history; eight global layers can look across it.
- The separate five-layer DSpark draft consumes selected target features. It is not the three-layer drafter shipped with Mini and is not counted in the 48 backbone layers.
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
- Attention residuals (AttnRes): choosing which earlier layers to readcoming soonEach layer reads a learned mix of earlier layers instead of one running sum.
- Grouped-query attention (GQA): sharing keys and values in groups
- Sliding-window attention (SWA): a cache that stops growing
- Mixture of experts (MoE): a big model that uses only part of itself
- Multi-token prediction (MTP): learning to look further ahead
- Attention gating: should this head add anything?
- Attention sinks: where does unused attention go?
- Short convolution: what if a layer only mixed nearby tokens?
- Bias terms in attention: a small constant on every projectioncoming soonA small learned constant added to the query, key and value projections.
- QK normalisation (QK-Norm) and soft-capping
- Vision encoders: how can image patches join the text?
- Attention, from scratch
- The KV cache: why LLMs remember every key and value
- Transformer layers: attention is only half of what you need
- Routing: selecting experts and weighting their work