Inside Inkling 2 Mini: how 24 layers think 48 layers deep
On November 20, 2026, Thinking Machines Lab released Inkling 2 Mini (Apache 2.0): a 26.4B-parameter model (5.4B effective active) that fits in a single 19.53 GB native 4-bit checkpoint by running its middle 12 layers three times per token—turning 24 stored layers into 48 logical visits.
Watch one token travel from prompt to output below, or drag the timeline scrubber back and forth to trace how each pass sharpens the answer. Click any block in the diagram to inspect its exact math and verbatim modeling_inkling2_loop.py source.
thinkingmachines/Inkling-2-Mini built from config.json, model.safetensors.index.json, modeling_inkling2_loop.py, and Goodfire's interpretability study. Pick an example, scrub the timeline, or click any block or telemetry gauge to inspect its math, loop benchmarks, d₂₀₂₇ ablation, and exact Python source.From input token to output in six stages
Reading modeling_inkling2_loop.py reveals that Inkling 2 Mini drops the standard residual stream and never feeds one loop’s raw output straight into the next:
- Input (
v₀): A prompt token (201K vocab, \(d = 2{,}304\)) and optional 20×20 patches from the 23-layer Vision Transformer (292M) RMS-normalize into Block 0 (\(\mathbf{v}_0\)), preserved untouched for every downstream layer. - Prelude (
L0–L5, 1×): Runs once (five sliding-1024 layers plus one global layer atL5), summing sublayer outputs into Block 1 (\(\mathbf{v}_1\)). Every layer replaces RoPE with hidden-conditioned relative position bias (d_rel = 16,rel_extent = 1024), four kernel-4 short convolutions, attention sinks, sigmoid output gating, and softcapped SwiGLU (4.0 / 25.0). - Loop Core (
L6–L17, 3×): Instead of one growing residual vector, Block Attention Residuals take a learned softmax mixture over normalized 6-layer block sums. At the start of Pass 2 and Pass 3, the block list resets back to the prelude \([\mathbf{v}_0, \mathbf{v}_1]\) and reads Pass \(t-1\)’s core blocks \([\mathbf{v}_2^{[t-1]}, \mathbf{v}_3^{[t-1]}]\) through 48 rank-64 gates (28.3M params = 0.11% of the checkpoint):
- Coda (
L18–L23, 1×) → Output + DSpark: The final six layers run once (last four in MXFP8) into softcapped 201K logits (30.0) to sample the next word, while the bundled 0.64 GB DSpark drafter taps visits[5, 23, 41, 48]to propose 7 continuation tokens (~4,400 tok/s/GPU on 1× GB200).
Coordinate \(d_{2027}\) and caveats
Scrub to Pass 1’s return (+32.4) and then Pass 3’s exit (−26.5) to see Goodfire’s mechanistic discovery: a single coordinate (\(d_{2027}\)) averages +32.4 RMS-norm (45.6% of total squared norm) at the end of Block 3 (L17) during Passes 1 and 2 so the next orbit locks onto Block 3, then fires a sharp negative cleanup spike on Pass 3 right before handing off to the coda. Because mid-block states live inside local sums, naive logit-lens fails mid-block while coda-lens and tuned-lens decode every orbit.
The tradeoffs are straightforward: weak closed-book recall (SimpleQA 8.4%, since looping adds compute rather than weight storage), lower multi-turn chat and dense constraint following than dense 27B rivals (MultiChallenge 50.0%, ComplexConstraints 33.4%), occasional debugging loops, and a 10.2% internal destructive-action rate that still requires sandboxing.
Sources, verification records, and dataset build
Every architecture parameter, byte count, code excerpt, and benchmark score was verified directly against primary artifacts published November 20–23, 2026 and compiled by _tools/inkling-2-mini/build_data.py into one static JSON file:
- Primary release & model cards: Thinking Machines Lab, Introducing Inkling 2 Mini, Inkling 2 Mini Model Card, TML-d24-varloop-research Model Card, End-to-End 4-Bit Training (Nov 13, 2026), and Introducing Inkling 2 Small (Nov 5, 2026).
- Checkpoints & upstream code:
thinkingmachines/Inkling-2-Mini(19,525,870,752bytes +0.64 GBmtp.safetensors),thinkingmachines/TML-d24-varloop-research, and Hugging Face Transformersmodeling_inkling2_loop.py. - Systems & interpretability: Goodfire, Interpreting Inkling 2 Mini (Nov 20, 2026); vLLM Day-0 Blog; Hugging Face Blog; NDIF Looped Lens Challenge & NNsight Guide; Kimi Team (2026, arXiv:2603.15031).