hafuture

Thinking Machines Inkling 2 Mini Local Guide: Run a 26.4B Looped Transformer with 1M Context on a 32GB Mac

Run Thinking Machines' Apache 2.0 26.4B Looped Transformer Inkling 2 Mini locally on a 32GB Mac or single GPU with Ollama, Unsloth, llama.cpp, and vLLM.

Inkling 2 MiniThinking MachinesLooped TransformerLocal LLMOllamallama.cppvLLMApple Silicon
Cover graphic for the Thinking Machines Inkling 2 Mini local setup guide highlighting its 3-pass looped transformer, 26.4B MoE design, and 32GB Mac compatibility

Table of Contents


1. Why Inkling 2 Mini Changes Local AI Workflows

Running a genuinely capable coding and multimodal agent locally has long forced an awkward trade-off: compact 7B–14B models feel snappy on laptops but crumble on multi-file debugging, while 70B+ open weights demand 64GB–128GB workstations before you can even load a useful context window.

Released on November 20, 2026 by Mira Murati's Thinking Machines Lab, Inkling 2 Mini breaks that ceiling with an uncommon architectural bet: instead of storing 48 separate decoder layers on disk, it ships 24 physical layers (~20GB total in native NVFP4/MXFP8) and executes its middle 12 layers three times per token with shared weights.

  • Apache 2.0 + Native Multimodal: Accepts UTF-8 text and pixel images (encoded via a 23-layer ViT; optimal dimensions 40px to 4096px) with a 1M-token (1,048,576) context window, open for commercial deployment and fine-tuning.
  • Zero Post-Training Quantization Tax: Routed experts in layers 0–19 are trained natively in NVFP4 and layers 20–23 in MXFP8, shipping as a single ~20GB checkpoint that already includes a 0.6GB DSpark speculative drafter.
  • Where It Fits Alongside Frontier Cloud Models: Rather than replacing massive cloud flagships covered in our November 2026 Frontier AI Showdown (Gemini 4 Neon vs. GPT-6.2 vs. Claude Fable 5.2), Inkling 2 Mini shines as a zero-marginal-cost offline coding agent, GUI vision model, and long-document analyzer running privately on a 32GB Mac or a single 24GB–32GB GPU.

2. Looped Transformer Architecture and Benchmark Breakdown

The headline spec—26.4B total parameters, 3.4B active, 5.4B effective active—often trips developers up on first read. Here is how the 24 physical layers translate into 48 logical layer visits per generated token.

Two-panel technical diagram showing Inkling 2 Mini's 3-pass Looped Transformer pipeline (24 physical layers to 48 visits) alongside benchmark bars comparing Inkling 2 Mini against dense Qwen3.8-27B and Unsloth Dynamic GGUF sizes
Inkling 2 Mini 3-pass Looped Transformer flow (24 layers → 48 visits) vs. Qwen3.8-27B Dense benchmarks and GGUF sizes

Inside the 3-Pass Execution Pipeline

Per the official Thinking Machines model card and vLLM recipe:

  1. Prelude (Layers 0–5, 1× pass): Projects text tokens and 23-layer ViT image embeddings into a shared hidden space (hidden size 2,304) to build initial representations.
  2. Looped Core (Layers 6–17, 3× passes with shared weights): Sparse MoE routes each token to 8 of 128 experts per layer. Pass 1 activates ~3.4B unique weights; Passes 2 and 3 read both the prelude output and a message from the previous pass's two attention-residual blocks via a gated rank-64 controller, adding ~1.0B effective active parameters per extra pass for 5.4B effective active parameters per token.
  3. Coda (Layers 18–23, 1× pass) + DSpark: Projects final hidden states in MXFP8 while the bundled DSpark speculator drafts upcoming tokens to boost decode throughput.
  4. Independent Per-Pass KV Caches (48 total): Hybrid attention mixes 20 sliding-window local layers and 4 global full-attention layers (24 query heads, 8 KV heads) plus 4 short convolutions. Crucially, each loop pass maintains its own KV cache and conv-state cache (48 of each)—a vital detail when sizing context length on 32GB machines.

Official Benchmarks vs. Qwen3.8-27B Dense

DomainBenchmarkInkling 2 Mini (5.4B Eff.)Qwen3.8-27B Dense (27B)Practical Takeaway
Coding & AgentsSWE-bench Verified79.2%77.8%Leads sub-100B open weights
Coding & AgentsSWE-bench Pro (Hard)77.9%73.8%+4.1 pts on tough multi-file patches
Coding & AgentsDeepSWE v1.148.2%42.2%+6.0 pts on deep agentic debugging
Coding & AgentsTerminal Bench v2.171.6%73.0%Dense Qwen3.8 edges out in shell tasks
Search & ToolsMCP Atlas / DeepSearchQA82.7% / 85.3%77.3% / 79.7%Strong MCP tool calling & synthesis
Search & ToolsBrowseComp79.0%61.6%Major gain on agentic web research
Vision & DocsOmniDocBench v1.692.8%91.5%Top-tier PDF, table & chart OCR
Vision & DocsScreenSpot Pro (Orig. / Python)76.5% / 87.7%57.6% / 78.9%Built for GUI grounding & computer use
Long ContextLongBench v266.9%52.3%Excels across long repos and reports
Factual RecallGPQA Diamond / AA-Omniscience (non-halluc.)86.6% / 63.4%90.5% / 71.4%Static trivia favors denser weights

Independent testing on the Artificial Analysis Intelligence Index v5.0.1 scored Inkling 2 Mini at 20.1—tying dense Qwen3.8-27B (xhigh) while using roughly 2.8× less compute, finishing ~4× faster, and costing ~6× less per task. Just keep the architectural trade-off in mind: looping boosts reasoning depth, not parametric memorization, so always ground factual lookups with search or RAG.


3. Pick the Right Runtime and Quantization for Your Hardware

While Inkling 2 Mini has day-one support across Ollama, Unsloth Desktop, llama.cpp, MLX, vLLM, and SGLang, platform compatibility varies. Most notably, the official ollama run inkling-2-mini library tag currently targets Apple Silicon Macs only (via Ollama's MLX runner); Windows and Linux users should reach for Unsloth, llama.cpp, or vLLM instead.

Find Your Best Inkling 2 Mini Local Runtime
Ollama (MLX)

Zero-friction native run on 32GB+ Apple Silicon Macs

“ollama run inkling-2-mini”

Platform
macOS Apple Silicon only (MLX backend)
Checkpoint
Native NVFP4/MXFP8 single tag (~20GB)
Key Strength
No post-quant loss · instant ollama launch coding agent integration
Tuning Tip
Keep active context around 32K–64K on 32GB Macs to avoid swap
Unsloth / llama.cpp

Cross-platform speed leader for 16GB–32GB machines

“UD-Q4_K_XL (17.63GB, 98.0% match)”

Platform
macOS · Windows · Linux (Metal / CUDA 12 / ROCm / Vulkan)
Checkpoint
Dynamic GGUFs from 7.76GB (IQ1_S) to 22.87GB (UD-Q8_K_XL)
Key Strength
Unsloth b12649-mix + DSpark + Q8_0 KV cache (up to 1.9x faster)
Tuning Tip
Use UD-Q2_K_XL on 16GB, UD-Q3_K_XL on 24GB, UD-Q4_K_XL on 32GB
vLLM Nightly (TP1)

Production single-GPU OpenAI API serving

“vllm serve thinkingmachines/Inkling-2-Mini”

Platform
NVIDIA Blackwell (B200/GB200/DGX Spark) · Hopper (H100/H200)
Checkpoint
Native NVFP4/MXFP8 + DSpark speculator (7 draft tokens)
Key Strength
Up to ~4,400 output tok/s on 1× GB200 · built-in inkling parser
Tuning Tip
Cap --max-model-len at 262144 on H100 and DGX Spark

4. Step-by-Step Local Setup Commands

Follow these four steps to get Inkling 2 Mini running cleanly on Apple Silicon, desktop GPUs, or a production vLLM node.

  1. 1
    Step 1: Verify Runtime Builds with Looped-Layer Support

    Looped layers and per-expert NVFP4 scales landed on November 20–21, 2026. Update Ollama to the latest release, use mainline llama.cpp b12600+ (with PR #32704) or Unsloth's b12649-mix prebuilt, or pull vLLM 0.35.0+ nightly.

  2. 2
    Step 2: Pull the Right Model Files

    On 32GB+ Macs, 'ollama run inkling-2-mini' pulls the complete 20GB NVFP4/MXFP8 bundle automatically. With llama.cpp, grab UD-Q4_K_XL (17.63GB), plus optional mmproj-F16.gguf (639MB) for vision and dspark-Inkling-2-Mini-Q8_0.gguf (~0.4GB) for speculative decoding.

  3. 3
    Step 3: Apply Recommended Sampling & Q8_0 KV Cache

    Unsloth recommends temp 1.0, top-p 1.0, top-k 0, and min-p 0.0. On 32GB unified memory or 24GB GPUs, enable --cache-type-k q8_0 --cache-type-v q8_0 to double context headroom with minimal speed loss.

  4. 4
    Step 4: Wire Into Coding Agents Safely

    Ollama exposes built-in launchers for Claude Code, OpenCode, and OpenClaw. Because Thinking Machines warns that Inkling 2 Mini can occasionally loop during debugging or overwrite files without asking, always run agent workloads inside a sandbox with explicit max-token and turn caps.

bash
ollama run inkling-2-mini                        # Interactive chat (default latest · 20GB)
ollama launch claude --model inkling-2-mini      # Connect to Claude Code locally
ollama launch opencode --model inkling-2-mini    # Connect to OpenCode
ollama launch openclaw --model inkling-2-mini    # Connect to OpenClaw
Official Ollama inkling-2-mini (20GB NVFP4/MXFP8, 1M context) runs on Apple Silicon Macs via MLX.

5. Quantization Sizes and 1M Context Memory Tuning

Because layers 0–19 were trained natively in NVFP4 and only layers 20–23 remain in MXFP8, Inkling 2 Mini retains unusually high fidelity even in compact GGUF quants. Below are Unsloth's published KLD and top-token agreement figures measured against UD-Q8_K_XL (lossless reference keeping native NVFP4 experts and BF16 remaining weights):

GGUF Quant (unsloth/Inkling-2-Mini-GGUF)File SizeMean KLDTop-Token AgreementEst. RAM + VRAMBest Use Case
UD-IQ1_S7.76 GB0.091189.4%9 GB+Ultra-low-RAM testing
UD-IQ2_XXS8.49 GB0.072690.6%10–11 GBMinimal footprint on 16GB laptops
UD-Q2_K_XL9.14 GB0.059591.6%10–11 GBPractical floor for 16GB Macs
UD-Q3_K_XL13.63 GB0.017496.3%13–15 GBSweet spot for 16GB GPUs / 24GB Macs
UD-Q4_K_M16.61 GB0.010897.9%17–18 GBTight 24GB VRAM setups
UD-Q4_K_XL (Recommended)17.63 GB0.010798.0%17–18 GB+Default choice for 32GB Macs & 24GB GPUs
UD-Q8_K_XL (Reference)22.87 GB0 (Ref.)100%24 GB+Lossless quality on 36GB+ Macs / 32GB+ GPUs

Managing the 48-Layer KV Cache on 32GB Systems

Although Inkling 2 Mini supports 1M tokens architecturally, each of the three loop passes owns an independent KV cache and conv-state cache (48 layers total), and llama.cpp allocates roughly ~96 KB of compute buffer per token of context. Attempting to open a full 1M-token window on a 32GB Mac will trigger heavy disk swap.

  • Recommended 32GB Mac Budget: Cap --ctx-size at 32768–65536 and enable --cache-type-k q8_0 --cache-type-v q8_0. Expect ~20–27 tok/s on 32GB+ Apple Silicon via MLX, and up to 1.9× faster GGUF decoding on Unsloth's optimized llama.cpp builds compared to mainline.
  • Local vs. Tinker API Break-Even: First-party Thinking Machines Tinker API pricing sits at $0.15 / 1M input ($0.015 / 1M cached) and $0.50 / 1M output. A smart hybrid pattern is running everyday private coding and vision loops locally for $0, and bursting 256K–1M repo-wide audits to Tinker or vLLM when needed.

6. Troubleshooting and Official Limitations Matcher

Select the exact issue you hit during setup or agent runs to see the verified fix from official Thinking Machines, Unsloth, and llama.cpp docs.

Inkling 2 Mini Troubleshooting & Official Limitations Explorer5 items
  • 'ollama run inkling-2-mini' does not work on Windows or LinuxCommon· Runtime & Build

    The official Ollama inkling-2-mini package currently runs on Apple Silicon Macs only via the MLX backend. On Windows/Linux, install Unsloth Desktop or run unsloth/Inkling-2-Mini-GGUF with Unsloth prebuilt llama.cpp.

    Primary Fix:Use Unsloth Desktop or Unsloth llama.cpp (CUDA 12 / ROCm / Vulkan)Alternative / Tip:On NVIDIA data center GPUs (H100/B200/DGX Spark), serve native NVFP4/MXFP8 via vLLM nightly Docker
  • llama.cpp outputs corrupted text or gibberish tokensMust Check· Runtime & Build

    Older llama.cpp builds lack Looped Transformer layer routing and per-expert NVFP4 scale support. Check ./llama-server --version and re-download any GGUFs fetched before the Nov 23, 2026 refresh.

    Primary Fix:Upgrade to mainline llama.cpp b12600+ (PR #32704) or Unsloth b12649-mixAlternative / Tip:Verify unsloth/Inkling-2-Mini-GGUF file integrity with hf download to clear stale cached shards
  • Heavy swap and sudden slowdown when raising context on a 32GB Mac32GB Mac Key· Memory & Speed

    Because layers 6–17 execute 3 times with separate per-pass KV caches (48 total), long contexts consume significantly more memory than standard 24-layer models. Q8_0 KV halves cache memory at just 3–7% decode cost.

    Primary Fix:Set --ctx-size 32768–65536 with --cache-type-k q8_0 --cache-type-v q8_0Alternative / Tip:Drop --mmproj if text-only (saves 639MB), or switch from UD-Q4_K_XL to UD-Q3_K_XL (13.63GB)
  • Model gets stuck in long repetitive reasoning loops while debuggingOfficial Limit· Agent & Limits

    Per Thinking Machines' official model card, Inkling 2 Mini can enter extended self-verification loops during debugging, and setting reasoning effort to minimal does not fully disable reasoning.

    Primary Fix:Enforce client-side max_tokens (4096–8192) and agent max-turn capsAlternative / Tip:Split large refactors into single-file or single-function prompts instead of open-ended sweeps
  • Local coding agent overwrites or deletes files without askingSafety First· Agent & Limits

    The official model card warns that Inkling 2 Mini follows repo conventions less reliably than frontier models and may perform destructive file edits without confirmation.

    Primary Fix:Run inside a sandbox/container or isolated Git worktree with manual approval gatesAlternative / Tip:Keep a clean Git commit before each agent run and require confirmation for rm or git reset --hard

7. Frequently Asked Questions (FAQ)

Q1. Why is Inkling 2 Mini listed as both 3.4B active and 5.4B effective active?
A single forward pass activates ~3.4B unique parameters across its 8-of-128 MoE layers. Because layers 6–17 execute two extra times with shared weights (~1.0B effective active parameters per additional pass), each generated token uses 5.4B effective active parameters.
Q2. Can I run Inkling 2 Mini on a 16GB RAM MacBook?
Not with the official 20GB Ollama package, which targets 32GB+ Macs. However, Unsloth's Dynamic GGUFs (UD-Q2_K_XL at 9.14GB or UD-IQ2_XXS at 8.49GB) run smoothly on 16GB Macs via Unsloth Desktop or llama.cpp with Q8_0 KV caching and a 16K–32K context cap.
Q3. How does it perform on non-English languages?
The model card states general multilingual support, but warns that output quality can trail English (clipped phrasing and mixed languages were observed in Chinese testing). It is strongest on English prompts, code, and visual UI/document tasks.
Q4. What is the companion TML-d24-varloop-research checkpoint?
Released alongside Inkling 2 Mini under Apache 2.0, TML-d24-varloop-research is a 26.4B research variant trained for variable 1-to-5 inference-time loop passes so researchers can study looped compute scaling and chain-of-thought monitorability.
Q5. Can I fine-tune Inkling 2 Mini commercially?
Yes. Inkling 2 Mini is licensed under Apache 2.0 (subject to the Model Acceptable Use Policy) and officially supports post-training with Unsloth, Miles, SkyRL, and Thinking Machines' Tinker platform.


Validate vLLM speculative-config & OpenAI-Compatible Payloads with Hafuture JSON Formatter

A single misplaced quote in --speculative-config JSON or a multimodal image_url API payload causes vLLM or llama-server to reject the request. Format and validate your JSON cleanly in the browser before launching.

Open JSON Formatter