60 layers of compute
in 48 layers of VRAM.
Inkling-2-Small is a 594B-parameter MoE with 48 layers. I froze every weight in it, looped its 12-layer core two or three times per forward pass, and trained a 23.9M-parameter adapter to steer the extra passes. What’s established: the extra passes need no extra KV memory per token, decoding runs 10–12% slower than stock, and with the loop off the model is bit-exact stock. Validation loss fell 13.66%; what isn’t settled yet is how much of that the loop itself earns, which needs a matched control.
Don't make it bigger. Make it deeper — on demand.
Recurrent-depth architectures loop a block of layers multiple times per forward pass. Looped DeepSeek-V4.1 showed the recipe works at scale; Apple's LoopCD-Hidden (arXiv:2610.02185) showed how to train it with a contrastive hidden-state objective; Last-Loop KV Caching (arXiv:2611.13378) showed how to serve it without growing the KV cache. I combined all three on a frozen, quantized production model and kept the stock model bit-exact at T=1.
The prelude (L0–29) and coda (L42–47) never change. The 12-layer core (L30–41, two AttnRes blocks) runs T times. Each extra pass is conditioned on a learned slot embedding, a WorkspaceEntry that re-anchors the pass to the frozen prelude, a CrossPassMixer at L36 that blends the previous pass's boundary state, and pass-conditioned LoRAs on attention and MLP. At T=1 every adapter path is gated to exact zero — the model is stock, bit for bit, verified to 0.000000 drift on all 48 layers.
Validation loss, head to head
| Run | Val NLL | Δ vs stock | BS=1 decode | BS=4 step |
|---|---|---|---|---|
| Stock (T=1) | 0.25153 / 0.23498 | — | 63.30 tok/s | 115.43 ms |
| ctl_r1 · T=1 LoRA control | 0.21848 | −13.1% | 43.21 tok/s | 145.17 ms |
| loop_r2 · T=2 Turbo | 0.22000 | −12.5% | 48.63 tok/s | 145.83 ms |
| loop_r3 · T=2 + Triton seams | 0.20288 | −13.66% | 50.06 tok/s | 140.25 ms |
Sparks runs (ctl_r1, loop_r2) evaluate on the 75-row val split; loop_r3 on the 74-row Vast split. Δ is vs the matching stock baseline. Peak loop_r3 NLL was 0.20267 (step 900); live last-loop KV serving measured 0.20298, a 0.00010 gap to per-pass training.
What the loop itself adds
This is the open question. The clearest signal is early: at step 30, with only the loop gates trained and the LoRAs still frozen, validation NLL was already 5.9% lower, which comes from the loop path alone. By step 1,000 the open-gate and closed-gate curves sit 0.0006 apart, so separating the loop’s share of the final gain from the fine-tune needs a matched control. loop_r3 doesn’t have one yet: it used four times the data of the Sparks runs and a different split, so it can’t be compared directly with ctl_r1.
GSM8K — 300 problems, greedy, effort=max
| Arm | Correct | Accuracy | Fisher p vs stock |
|---|---|---|---|
| Stock (T=1) | 288 / 300 | 96.0% | — |
| ctl_r1 (T=1 LoRA) | 293 / 300 | 97.7% (+1.7) | 0.125 |
| loop_r2 (T=2) | 288 / 300 | 96.0% | 1.000 |
The loop matches stock on GSM8K and the non-looped control scores higher; with 300 problems none of these differences is significant (p ≥ 0.125). This ran on loop_r2; loop_r3, the released adapter, hasn’t had a downstream eval yet. LiveCodeBench and agentic evals still need to run.
From 36 to 57 tok/s, one kernel at a time
Every bar is a real server measurement on 4× DGX Spark (TP=4, greedy, BS=1). Most of the drop from stock to the first loop build was integration bugs, so “+58%” flatters the engineering. 57.2 is the best of a 4-prompt sweep; the 8-prompt benchmark with the aligned drafter measured 56.0. Stock’s 63.3 predates those drafter improvements, which would likely speed it up too.
BS=4 lands at 82.8–92.0 batch tok/s (140.25 ms/step). 88/88 tool-call checks pass across all five endpoints. Verified live under 452K active KV tokens. The 12 MB per-request sconv state lives on virtual layers 48–59, so KV memory per token doesn’t grow: loop_r3 ran with the full 1,409,000-token pool. The current stable launch recipe uses 1,050,000 to leave memory headroom.
~$48 of cloud compute, 5.77M tokens
Verified, on-policy
5,157 attempts → 3,790 verified traces (73.5%). 3,679 train rows, 5.202M tokens. LiveCodeBench v5/v6 and all internal eval splits excluded; GSM8K used train split only.
CE + teacher KL
Chunked CE + 0.2 × sparse top-128 teacher KL (free stock T=1 hidden states) + 0.05 one-sided stop-token penalty. AdamW, cosine to 0.1×, 30-step LoRA delay so the gates open first.
$9.46 + ~$39
Tinker API (1.57M in / 8.99M out) plus ~7.5 hrs of 8× RTX 4090 at $5.214/hr. ≈ $48 for the final run, not counting the four Sparks or earlier runs. Adapter: 23.90M params, 95.6 MB, universal TP 1/2/4/8.
Training ran 1,000 steps × 3 rows at 18.78 s/step (6h 01m) on 8× RTX 4090 with TP=8, after a 63-minute precompute of 288 GB of prelude cache. Gate S1 (bit-exact identity at step 0) passed with 0.000000 drift on both backends. On the 31 mid-thought probes, the log-probability of ending the reasoning early stayed below stock’s throughout (max change −4.21), so the adapter didn’t teach the model to cut its thinking short.
What this does not show
- No matched control for loop_r3. Until a same-size non-looped LoRA is trained on the same data and split, the −13.66% can’t be credited to the loop alone.
- Validation is 74 in-distribution rows of the model’s own verified answers, one seed, no confidence intervals. Gaps under about 0.0005 NLL (T=3 vs T=2, served vs per-pass) are within noise.
- GSM8K n=300 — the loop did not beat stock there (96.0% vs 96.0%), and ctl_r1 (97.7%) beat both. LiveCodeBench and agentic evals are still running.
- T=3 (0.203093) ends slightly behind T=2 (0.202881): no measurable benefit from a third pass on this data.
- Further testing is needed. The matched control, multiple seeds, LiveCodeBench and agentic suites haven’t been run because I haven’t had the compute. Treat this as a research experiment until they are.
- Weights and the adapter are public on Hugging Face; raw training logs, verified training rows and earlier checkpoints stay in a private archive.
- Results are for this exact backbone, quantization and serving stack. Nothing here transfers by default.
Serving the loop
# Serve loop_r3 (T=2, Last-Loop KV, fused Triton seams) on 4× DGX Spark ./launch_loop_server.sh \ --arm loop_r3_turbo \ --ckpt runs/loop_r3/ckpt/step-001000 \ --depth 2 --kv-mode last_loop --omega 0.3 --triton-seams 1 --gate 0.4 # Or from the universal 95.6 MB safetensors (TP=1/2/4/8) ./launch_loop_server.sh --arm loop_r3_univ \ --ckpt runs/loop_r3/universal --depth 2 --kv-mode last_loop # Export any TP-sharded checkpoint to universal safetensors python3 src/export_universal_safetensors.py \ --in-dir runs/loop_r3/ckpt/step-001000 --out-dir runs/loop_r3/universal
Pre-sharded weights, the 95.6 MB adapter, the aligned drafter, and the serving and training code are in the loop-adapter/ folder of the Hugging Face repo. The complete research log, with every run, gate and bug, is available on request.