---
title: "Inkling 2 Mini & Looped Transformers: Architecture, Benchmarks & Local Setup"
description: "Deep technical guide to Thinking Machines Lab's Inkling 2 Mini (26.4B MoE, 3.4B active weights, 1M context, Apache 2.0): how its 3x Looped Transformer architecture works, SWE-bench 79.2% vs Qwen3.8-27B benchmarks, DSpark speculative decoding, and local setup on Ollama, MLX, GGUF, and vLLM."
author: Aleksei Aleinikov
date: 2026-11-23
lang: en
tags: [inkling 2 mini, looped transformer, inkling 2 mini ollama, inkling 2 mini gguf, local coding llm, qwen3.8 27b, swe-bench]
canonical: https://www.alekseialeinikov.com/en/blog/topics/ai/inkling-2-mini-looped-transformers-local-ai-guide
source: alekseialeinikov.com
---

# Inkling 2 Mini & Looped Transformers: Architecture, Benchmarks & Local Setup

Every few years an open-weights release breaks the assumption that better reasoning requires a heavier model file on disk. **Inkling 2 Mini**, released under **Apache 2.0** by **Thinking Machines Lab** on November 20, 2026, does it by reviving an architectural idea most labs left in research papers: **Looped Transformers**.

With **26.4B total MoE parameters** (~20 GB in native `NVFP4`/`MXFP8`) and just **3.4B active weights per pass**, Inkling 2 Mini loops its middle 12 layers three times to match dense 27B models on intelligence benchmarks — while hitting **79.2% on SWE-bench Verified** and running locally on a **32 GB Mac**.

> [!NOTE]
> **Independent Technical Analysis:** Based on official release documentation and model cards ([Thinking Machines Lab](https://thinkingmachines.ai/news/inkling-2-mini/), [Hugging Face `thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini)), runtime integration docs ([vLLM](https://vllm.ai/), [Ollama](https://ollama.com/), [Unsloth](https://unsloth.ai/)), and independent evaluations ([Artificial Analysis](https://artificialanalysis.ai/)); no local hardware benchmarking was conducted.

> [!KEY]
> **The short verdict:** Use **Inkling 2 Mini** as your default local **coding-agent and tool-use model** on 32 GB+ Macs, single 32 GB GPUs, or [NVIDIA DGX Spark](https://www.alekseialeinikov.com/en/blog/topics/lab/nvidia-dgx-spark-unified-memory-local-ai). It trades a bit of multi-turn chat polish for **4× faster agentic coding** than dense 27B alternatives — and ships a built-in **DSpark** speculative drafter right inside the checkpoint.

## What Is a Looped Transformer? (And Why 3.4B ≠ 5.4B)

In a standard transformer, depth is locked to parameter count: if you want 48 layers of sequential reasoning, you must store 48 distinct layers in VRAM or unified memory.

**Inkling 2 Mini** breaks that 1:1 coupling:

![Architecture diagram comparing a standard 48-layer dense transformer against Inkling 2 Mini's 24-layer Looped MoE design where layers 6 through 17 execute three times in a loop.](https://www.alekseialeinikov.com/blog/inkling-looped-transformer-architecture.webp "Standard 48-layer depth vs. Inkling 2 Mini: 24 physical layers with a 3x recurrent loop over layers 6–17 gives 48 effective layers.")

1. **24 physical decoder layers:** Only 24 layers exist in the model weights (`26.4B` total parameters across sparse Mixture-of-Experts blocks, with `~3.4B` active parameters per layer pass).
2. **3× recurrent loop (`layers 6–17`):** Instead of marching straight to the output head, the hidden state from layer 17 loops back into layer 6 **twice** — running the middle 12-layer block **three times** with shared weights.
3. **Why two active-parameter numbers circulate online:** Each pass touches **~3.4B** unique weights, but because the middle block executes three times, the effective arithmetic compute per token equals **~5.4B active parameters** across **48 effective layer applications**.

Think of that loop as **latent Chain-of-Thought**: the model refines its internal representation in vector space before emitting a single visible token. Standard reasoning models often burn 1,000–3,000 visible output tokens inside `<think>` blocks before writing a single line of code; Inkling 2 Mini pays a compact 3-pass compute cost internally, keeping coding-agent tool loops tight and avoiding wasted context-window bloat.

## Inkling 2 Mini Benchmarks vs. Qwen3.8-27B

Thinking Machines tuned the 3-pass loop specifically for **software engineering, bash execution, UI grounding, and tool calling** rather than trivia:

![Benchmark and efficiency chart comparing Inkling 2 Mini against Qwen3.8-27B across SWE-bench Verified, DeepSWE v1.1, MCP-Atlas, ScreenSpot Pro, OmniDocBench, and Artificial Analysis Intelligence Index.](https://www.alekseialeinikov.com/blog/inkling-benchmarks-pareto-frontier.webp "Inkling 2 Mini matches Qwen3.8-27B on the Artificial Analysis Intelligence Index (20.1) while running roughly 4x faster with ~2.8x less compute.")

| Benchmark / Metric | **Inkling 2 Mini** | **What It Measures** |
|---|---|---|
| **SWE-bench Verified** (bash-only) | **79.2%** | Autonomous multi-step bug fixing in real repos |
| **DeepSWE v1.1** | **48.2%** | #1 open-weights model under 100B total parameters |
| **MCP-Atlas** | **82.7%** | Agentic tool calling & Model Context Protocol workflows |
| **ScreenSpot Pro** | **76.5%** | Visual UI element grounding for computer use |
| **OmniDocBench** | **92.8%** | Multimodal document & layout parsing |
| **Artificial Analysis Index** | **20.1** | Ties dense **Qwen3.8-27B** at **~2.8× less compute** & **~4× speed** |
| **Context & License** | **1M tokens · Apache 2.0** | Text + image inputs, commercial-friendly weights |

### How It Stacks Up Against Dense & Frontier Alternatives

| Model | **Total / Active Params** | **Architecture** | **Hardware Tier** | **Best Fit** |
|---|---|---|---|---|
| **Inkling 2 Mini** | **26.4B / 3.4B** (~5.4B eff.) | Looped MoE (3× mid-block) | **32 GB Mac / 24–32 GB GPU** | Fast local coding agents, bash & MCP tool loops |
| **Qwen3.8-27B** | **27B / 27B** | Standard Dense | 32–48 GB RAM/VRAM (4-bit/8-bit) | Generalist reasoning & consistent multi-turn chat |
| **Gemma 4 31B** | **31B / 31B** | Standard Dense | 32–48 GB RAM/VRAM | Long-form writing, instruction adherence, Q&A |
| **Inkling 2 Small** | **~594B** (MoE) | Large-scale MoE | Multi-GPU Cloud / H200 cluster | Heavy cloud inference, not laptop/workstation class |

## How to Run Inkling 2 Mini Locally: Ollama, MLX, GGUF & vLLM

Because the checkpoint was trained natively in **NVFP4** and **MXFP8** (~20 GB on disk), you avoid most post-training quantization collapse — as long as your runtime supports **looped layers** and **per-expert scaling**:

![Local deployment matrix showing hardware requirements and startup commands for Ollama, Apple Silicon MLX, llama.cpp/Unsloth GGUF, and vLLM with DSpark speculative decoding.](https://www.alekseialeinikov.com/blog/inkling-local-deployment-matrix.webp "Local runtime guide for Inkling 2 Mini across 32GB+ Macs, Linux/CUDA GPUs, and vLLM servers.")

### Hardware & Memory Sizing (Watch the 1M Context Trap)

| Format / Runtime | **Weights Size** | **Recommended RAM / VRAM** | **Notes & Trade-Offs** |
|---|---|---|---|
| **Native `NVFP4` / `MXFP8`** (vLLM / Ollama) | **~20 GB** | **32 GB+** unified or VRAM | Full native quality + **DSpark** drafter support |
| **4-bit `MLX` / `Q4` GGUF** | **~15–18 GB** | **24–32 GB** | ~20–27 tok/s on 32–48 GB Apple Silicon Macs |
| **Vision Add-On (`mmproj-F16.gguf`)** | **+639 MB** | Same tier | Required alongside GGUF if passing UI screenshots |
| **Extreme Low-Bit Quants** (community) | **~5.4 GB** | **8–16 GB** laptops | Proof-of-concept fit; degrades multi-step code accuracy |

> [!TIP]
> **Cap `--ctx-size` on 32 GB machines:** Even though Inkling 2 Mini supports a **1M token** context window, allocating a huge KV cache on a 32 GB Mac or GPU will push you into swap. Start with `--ctx-size 32768` or `65536` for IDE and coding-agent loops, and scale up only on 64 GB–128 GB unified-memory boxes.

### Option A: Ollama (Fastest Local Start)
Ideal on a **32 GB+ Mac** or Linux workstation with 24–32 GB VRAM:
```bash
ollama run inkling-2-mini
```

### Option B: vLLM with Built-In `DSpark` Speculative Decoding
Unlike most open-weights releases, Inkling 2 Mini ships a native **`dspark` speculative drafter** inside its checkpoint, predicting up to 7 draft tokens per verification step:
```bash
vllm serve thinkingmachines/Inkling-2-Mini \
  --tensor-parallel-size 1 \
  --reasoning-parser inkling \
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic"}'
```

### Option C: `llama.cpp` / Unsloth GGUF / Apple Silicon MLX
- **Apple Silicon (`MLX`):** Expect roughly **20–27 tokens/sec** on 32 GB–48 GB M-series Macs using native 4-bit MLX builds.
- **GGUF (`llama.cpp` / LM Studio):** Use a recent build that explicitly supports looped-transformer routing (such as `ggml-org/Inkling-2-Mini-GGUF` or Unsloth GGUF builds). If you pass screenshots or UI images, remember to load the separate **`mmproj-F16.gguf`** (~639 MB) vision projector.
- **Extreme 5.4 GB quantizations:** Community ultra-low-bit builds squeeze the model into **~5.4 GB** of RAM/VRAM, which is impressive for proof-of-concept runs on 8 GB laptops, though heavy compression degrades multi-step code precision as explained in our [quantization VRAM & quality guide](https://www.alekseialeinikov.com/en/blog/topics/ai/quantization-explained-run-70b-model-consumer-hardware-2026).

## Limitations of Looped Transformers

Looped Transformers are a major efficiency win, not magic:
- **Memory shrinks; FLOPs do not:** Repeating 12 layers three times keeps weights small in VRAM, but arithmetic compute and KV/activation work still scale linearly with the loop count ($T = 3$).
- **Reasoning beats recall:** Extra recurrent passes sharply improve code tracing, math, and tool orchestration, but add very little for memorizing obscure static facts compared to a larger dense model.
- **Multi-turn quirks:** Independent evaluations note that looped architectures can occasionally drift on strict multi-turn formatting constraints or over-loop on ambiguous prompts compared to non-looped 30B+ dense models.

## The Bottom Line

- **Pick Inkling 2 Mini** if you want a fast, Apache 2.0 **local coding & MCP agent** (with vision + 1M context) that fits comfortably inside **32 GB unified memory or VRAM**.
- **Stick with dense 27B–32B models** (or larger cloud frontier models) if your workload is pure factual Q&A or long multi-turn creative chat rather than tool-driven engineering.

> Related reading on local AI hardware and quantization:
> - [Quantization Explained: How to Run a 70B Model on Consumer Hardware](https://www.alekseialeinikov.com/en/blog/topics/ai/quantization-explained-run-70b-model-consumer-hardware-2026)
> - [NVIDIA DGX Spark: 128 GB Unified Memory & Local AI Reality](https://www.alekseialeinikov.com/en/blog/topics/lab/nvidia-dgx-spark-unified-memory-local-ai)
