The Rabbit Hole / AI / Model architectures
Thinking Machines Lab · Architecture mapInkling 2 Mini
A 24-block multimodal MoE decoder with a shared 12-block core executed three times.
Inkling 2 Mini, November 2026 · Inkling release timeline
Inside Inkling 2 Mini
Inside a later core pass
Dashed paths carry separate previous-pass messages. The four controllers are not a single recurrent state. The K and V convolutions are shown in the detailed attention diagrams.
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 · 20 repetitions
- Eight of 128 routed experts are selected; expert intermediate width 1152. Relative-score attention with a per-token sink and output gate; four short convolutions per layer.
- Full attention · 4 repetitions
- Global attention followed by the same expert configuration. Relative-score attention with a per-token sink and output gate; four short convolutions per layer.
- Attention and positions
- 24 query heads share eight KV heads, width 128. Five sliding-window layers precede each global layer. Uses learned relative-position score contributions (not RoPE), a per-token attention sink, output gate, clipped Q/K/relative vectors and value normalisation. Local K/V convolutions have static taps; global K/V convolutions add input-dependent tap weights. Sigmoid output gates act per coordinate, while sinks contribute one logit per query head and token. Value RMSNorm has no learned scale.
- Memory
- 48 KV caches and 48 convolution-state caches, one per visit. 40 visits use a 1,024-token sliding window and eight attend to full history. The size profile accounts for the KV portion only; convolution state and draft module are excluded.
More computation from the same weights
Reusing the middle block raises computational depth without loading another set of weights, but simply feeding the previous pass’s output back into the block would force every pass to start with an already transformed representation. Inkling instead keeps the prelude output fixed as the starting representation. Each core pass learns what to read from the previous pass’s two completed attention-residual blocks.
In passes two and three, Q, K, V and the expert input each have their own previous-pass message and rank-64 controller. The controller can preserve the current input or introduce information from the previous pass independently for each channel. The coda continues from pass three.
The shared weights do not imply shared activation history. Each visit has its own KV and convolution state, meaning a token at pass two attends to earlier tokens’ pass-two states. There are 40 local and eight global visits: the KV-only footprint at 8,192 tokens and 16-bit precision is 416 MiB, excluding convolution state and the separate DSpark draft.
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.
- Looped transformerscoming soonApply the same learned transformer blocks repeatedly to spend more compute per token.
- 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