Architecture
~9 min readUpdated: November 2026

TML-d24-VarLoop: Variable-Pass Looped MoE with NVFP4 & MXFP8

TML-d24-VarLoop Variable Loop Transformer Architecture and NVFP4 Pipeline in Smoke Monkey

TML-d24-varloop-research (`thinkingmachines/TML-d24-varloop-research`) is an Apache-2.0 26.4B-parameter multimodal looped MoE transformer released by Thinking Machines Lab. Its middle 12 shared layers iterate 1 to 5 times at inference time—scaling active compute from 3.4B to 7.4B parameters inside a 20GB NVFP4/MXFP8 checkpoint that runs on 32GB GPUs or Apple Silicon.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

TML-d24-VarLoop: Variable-Pass Looped MoE with NVFP4 & MXFP8: TML-d24-varloop-research (`thinkingmachines/TML-d24-varloop-research`) is an Apache-2.0 26.4B-parameter multimodal looped MoE transformer released by Thinking Machines Lab. Its middle 12 shared layers iterate 1 to 5 times at inference time—scaling active compute from 3.4B to 7.4B parameters inside a 20GB NVFP4/MXFP8 checkpoint that runs on 32GB GPUs or Apple Silicon. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplevarloop-adaptive-agent.ts
varloop-adaptive-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const adaptiveAgent = createAgent({
agentId: 'tml-varloop-coder',
provider: 'custom',
baseUrl: 'http://127.0.0.1:8000/v1',
model: 'thinkingmachines/TML-d24-varloop-research',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
extraBody: {
num_loop_passes: 3,
},
});
async function solveRepoIssue() {
const result = await adaptiveAgent.run(
'Analyze stack traces across tests/integration/, adjust loop depth if ambiguity remains, and patch the race condition.'
);
console.log('VarLoop Resolution:', result.summary);
}
solveRepoIssue().catch(console.error);
Video Guides

Watch: Related Video Guides

Looped models have better reasoning..?

Looped Transformers Explained: Reusing Layers for Test-Time Compute

What Is TML-d24-VarLoop? Variable-Depth Looped MoE Design

TML-d24-varloop-research is a 26.4B-parameter multimodal autoregressive looped transformer from Thinking Machines Lab designed to study test-time compute via weight-tied layer recurrence. Rather than locking loop count like Inkling 2 Mini (fixed 3 passes), its middle 12 sparse MoE layers execute 1 to 5 times per pass at inference time.

According to config.json (Inkling2LoopForConditionalGeneration), the model has 24 logical layers (hidden_size: 2304, 24 attention heads, 8 KV heads, head_dim: 128) routing each token to 8 of 128 experts. Each additional loop pass adds roughly 1.0B effective active parameters—scaling from 3.4B active parameters at 1 pass to 5.4B at 3 passes and 7.4B at 5 passes—without increasing the 20GB checkpoint footprint.

1-Pass vs 5-Pass Benchmark Scaling (SWEBench, DeepSWE, BrowseComp)

Because midtraining sampled loop counts in a 1:2:6:2:1 ratio and post-training used 3 passes, accuracy jumps sharply between 1 and 3 passes and peaks or plateaus at 3–5 passes depending on the benchmark.

BenchmarkInkling 2 Mini (3p)VarLoop 1 PassVarLoop 2 PassesVarLoop 3 PassesVarLoop 4 PassesVarLoop 5 Passes
DeepSWE v1.1 (mini-swe-agent)48.2%0.7%28.3%47.4%46.9%48.2%
SWEBench Pro v2 (Hard)77.9%39.7%69.1%78.9%76.0%78.4%
SWEBench Multilingual (bash)73.7%40.8%68.5%71.8%72.8%72.0%
BrowseComp (no context mgmt)76.0%29.4%53.8%65.7%69.4%71.0%
DeepSearchQA (with compaction)85.3%58.5%74.8%78.9%83.4%83.0%
MCP Atlas (Public)82.7%70.0%77.6%79.4%79.7%80.0%
JobBench49.6%22.8%55.1%63.8%61.8%63.3%
Diligence Bench (Loop)31.7%16.1%22.2%27.9%29.4%32.3%

Native Mixed-Precision Checkpoint

Do not re-quantize the weights unnecessarily: the 20GB checkpoint already stores MoE expert layers in native NVFP4, the final four layers in MXFP8, and norms/projections in BF16—matching its training numerics.

Deploying on 32GB Hardware & Post-Training Loops

TML-d24-varloop-research runs natively on vLLM, SGLang, TokenSpeed, NVIDIA Dynamo, llama.cpp, Ollama, and Exo Labs across 32GB VRAM GPUs (RTX 5090, DGX Spark) and 32GB Apple Silicon Macs. Post-training recipes are supported through Miles and SkyRL.

bash
# Download the 20GB NVFP4/MXFP8 checkpoint
hf download thinkingmachines/TML-d24-varloop-research --local-dir ./models/tml-varloop

# Serve locally with vLLM (1M max context; tune --max-model-len to VRAM)
vllm serve ./models/tml-varloop \
  --trust-remote-code \
  --max-model-len 131072 \
  --enable-auto-tool-choice

Dynamic Compute Routing in Smoke Monkey Harness

When orchestrating multi-agent tasks in Smoke Monkey Harness, developers route lightweight file classification or formatting turns to 1–2 loop passes (3.4B–4.4B active) and escalate complex repository debugging or MCP tool planning to 3–5 loop passes (5.4B–7.4B active) using the exact same weights resident in VRAM.

Google Search Questions & Answers

Frequently Asked Questions

Q:How does TML-d24-varloop-research differ from Inkling 2 Mini?

Inkling 2 Mini always executes its middle looped layers for a fixed 3 passes, whereas TML-d24-varloop-research allows choosing 1 to 5 passes at inference time (and underwent separate midtraining/post-training stages).

Q:How many active parameters run at each loop count?

At 1 pass, TML-d24-varloop-research activates 3.4B parameters per token. Each extra loop pass adds roughly 1.0B effective active parameters, reaching 5.4B at 3 passes and 7.4B at 5 passes.

Q:Can I run TML-d24-varloop-research on a 32GB Apple Silicon Mac?

Yes. The 20GB mixed NVFP4/MXFP8 checkpoint fits within 32GB of unified memory on Apple Silicon via Ollama, Exo Labs, or llama.cpp GGUF builds.

Q:Why does accuracy drop sharply at 1 pass on DeepSWE v1.1?

Because midtraining heavily weighted 3 passes (1:2:6:2:1 ratio) and post-training used 3 passes exclusively, complex multi-step coding agents need 3–5 passes (47.4%–48.2% on DeepSWE v1.1 vs 0.7% at 1 pass).

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness