Research / Loop Adapters
Research preview · Dec 2026 · Inkling-2-Small

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.

This is a research experiment, not a production model. Further testing is needed before any quality claim: a matched control, multiple seeds, LiveCodeBench and agentic evals. Lack of compute has kept me from running them so far. So far there has been no regression: on GSM8K (300 problems, the earlier loop_r2 adapter) it matched stock, and my own private testing hasn’t turned one up either.
Model Inkling-2-Small · 594B · NVFP4/MXFP8Hardware 4× DGX Spark · 8× RTX 4090Weights Hugging Face ↗Read ~14 min
−13.66%
val NLL vs stock, after SFT
95.6 MB
adapter · 23.9M params
0%
extra KV memory per token
57.2 tok/s
best BS=1 · 4 prompts
2.96×
fused seam speedup
$48
cloud cost, final run
01 — The idea

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.

FIG. 1 — THE WHOLE MODEL, LOOPED
The stack · 48 layers
EMBED · token → h₀
B0L0–5
B1L6–11
B2L12–17
B3L18–23
B4L24–29
B5L30–35LOOP
B6L36–41LOOP
B7L42–47
LM HEAD · logits
global attn SWA-1024
The core, zoomed · per pass
T = 2 · 2 passes
WorkspaceEntry
re-anchor to prelude · rank 256 · gates gs, gm
Core L30–35 + CoreLoRA
rank 32 · α 32 · slot-conditioned
CrossPassMixer @ L36
blends sprev into the pass · rank 128
Core L36–41 + CoreLoRA
rank 32 · α 32 · slot-conditioned
LoopCD-Hidden
hR vs h₁ · ω = 0.3 · RMS-preserved
last-loop KV · no extra memory per token
Live readout
Layer—
Pass—
Layers run60
KV pool1.409M
Adapter23.9M
awaiting run · weights frozen · T=2
READY — PRESS RUN

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.

02 — Results

Validation loss, head to head

RunVal NLLΔ vs stockBS=1 decodeBS=4 step
Stock (T=1)0.25153 / 0.23498—63.30 tok/s115.43 ms
ctl_r1 · T=1 LoRA control0.21848−13.1%43.21 tok/s145.17 ms
loop_r2 · T=2 Turbo0.22000−12.5%48.63 tok/s145.83 ms
loop_r3 · T=2 + Triton seams0.20288−13.66%50.06 tok/s140.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

ArmCorrectAccuracyFisher p vs stock
Stock (T=1)288 / 30096.0%—
ctl_r1 (T=1 LoRA)293 / 30097.7% (+1.7)0.125
loop_r2 (T=2)288 / 30096.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.

03 — Serving

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.

stock (T=1)
63.30
loop, unfused
36.14
fused LoRA
34.44
megakernel glue
39.75
turbo (r2)
48.63
loop_r3 head
50.06
τ = 0.45
54.62
τ = 0.50
57.20

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.

04 — Training

~$48 of cloud compute, 5.77M tokens

DATA

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.

OBJECTIVE

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.

COST

$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.

05 — Honest limits

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.
06 — Reproduce

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.

← All researchBack to aidenle.com →