Skip to content
Inkling 2 Mini: 26B Recurrent Model Tops 100B on Coding, Runs Offline on Laptop

Inkling 2 Mini: 26B Recurrent Model Tops 100B on Coding, Runs Offline on Laptop

Thinking Machines releases Inkling 2 Mini, a 26.4B parameter recurrent model that achieves 48.2% on DeepSWE v1.1 — highest among open-weight models under 100B — while fitting in 20GB for offline laptop inference, using middle-layer recurrence to trade compute for performance without extra weights.

AI Frontier Lectures
AI Frontier Lectures
AI Frontier Lectures

Inkling 2 Mini: A 26B Recurrent Model for Efficient Code Generation

On November 20, Thinking Machines released Inkling 2 Mini, a 26.4B parameter language model with 3.4B activated parameters per token and approximately 20GB weights, enabling offline inference on consumer laptops.

Recurrent Architecture: Trading Compute for Performance

The model employs a novel recurrence strategy across its 24 layers, divided into four blocks of six layers each. The first and last blocks execute once per token, while the middle two blocks execute three times per token. This yields 48 effective layer applications from 24 stored layers, increasing computation without increasing weight count.

Inkling 2 Mini recurrent architecture diagram
Inkling 2 Mini recurrent architecture diagram

Ablation Studies: Where Recurrence Helps Most

Ablation experiments reveal key trade-offs:

A non-recurrent variant requires 7.5% less training compute but needs 140% more inference compute to match the recurrent model's loss.

Recurrence on the middle 12 layers provides a 1.51× to 1.91× benefit, while recurrence on the last 12 layers yields only 1.24× to 1.36×.

Across 28 evaluation tasks, middle-layer recurrence outperforms last-layer recurrence on 27 tasks.

The authors hypothesize that middle layers handle abstract reasoning, whereas first and last layers manage translation between embeddings and internal representations.

Model Compression: Sparse MoE Training, Pruning, and Distillation

The 20GB footprint is achieved through a two-stage process:

Training uses 48-way sparsity with 384 experts, selecting top-8 per token.

Mid-training, two-thirds of experts are pruned, leaving 128 experts. The pruned capacity is recovered by distilling from a larger internal model using 1 trillion tokens.

Quantization: Native Low-Precision Training and Deployment

The first 20 layers are trained and deployed in 4-bit NVFP4, while the final 4 layers use 8-bit MXFP8. Training and inference share the same precision, eliminating quantization loss. The authors demonstrated offline inference on a MacBook Pro, building a playable flight simulator in minutes.

Benchmark Results

Self-reported results (third-party replication ongoing):

DeepSWE v1.1: 48.2% — highest among open-weight models under 100B (Qwen3.8-27B scores 42.2%).

SWE-bench Pro v2 (hard subset, 51 tasks): 77.9%.

SWE-bench Verified: 79.2%.

Vals Index v2.2: 46.5%.

Weights are available on Hugging Face (https://huggingface.co/thinkingmachines); inference is supported by Tinker, SGLang, vLLM, and Ollama.

Known Limitations

Multi-turn chat and heavily constrained instructions are weak points: MultiChallenge 50.0%, ComplexConstraints 33.4%, both trailing Qwen3.8-27B.

Knowledge-intensive tasks do not improve with recurrence (AA-Omniscience -8.6); the authors attribute knowledge primarily to total parameter count.

Reasoning-heavy tasks still cannot match larger models.

Interpretability: Recurrence as an Alternative to Chain-of-Thought

Recurrence enables additional reasoning steps without explicit chain-of-thought (CoT), which is currently the primary window into model reasoning. A variable-recurrence version was tested:

Without CoT, solvable task duration increased from 16 seconds (1 pass) to 37 seconds (3 passes), then plateaued.

With CoT, 5-pass average token length was 1,661 versus 3,703 for 1-pass — a reduction of over half — while sentence length and English word ratio remained human-readable.

Agentic corruption test scores did not improve with additional passes.

Variable recurrence scaling plot
Variable recurrence scaling plot

Availability

Model weights: https://huggingface.co/thinkingmachines (technical reference). Official blog: https://thinkingmachines.ai/news/inkling-2-mini/.

Code example

👀点击关注
AI前沿快速Follow
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Code Generationmodel compressionSWE-bench4-bit quantizationDeepSWEopen-weight LLMInkling 2 Minirecurrent architecture
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.