Inkling-2-Mini pi-adapted ร— MTPLX

Inkling-2-Mini-pi-MTPLX-Optimized-Quality

A fast, no-nonsense local agent for Apple Silicon Macs (M3 / M4 / M5), tested on a Mac mini M4 Pro with 64 GB.

If you have an Apple Silicon Mac with enough memory sitting on your desk, this pack turns it into a capable local agent, built to get real stuff done on your machine, from coding to automations. It takes ~19 GB on disk, peaked at 19.2 GB RAM in a short-prompt check (we have not measured a full 64K context yet), and decodes at 44 tok/s with Multi-Token Prediction in mtplx forge verify (about 36 tok/s on our agent tasks). On Benchito 1.3 (25 agent tasks with tools) it scores 22.0 of 25 offline at $0, level with the original model unquantized in the cloud (22.3).

What is this

This pack merges the pi agent LoRA directly into an existing mixed-precision MTPLX pack of Inkling-2-Mini, without re-quantizing any MoE expert or breaking Multi-Token Prediction. The full local stack (Itopi) is six layers with narrow interfaces between them; this repo ships layers 1 to 3, layers 4 to 6 live in MTPLX and the companion GitHub repo:

  1. Base model: thinkingmachines/Inkling-2-Mini by Thinking Machines. A 26.4B looped MoE (8 of 128 routed experts active per token, 24 layers, 1M native context).
  2. Mixed-precision pack: Youssofal/Inkling-2-Mini-MTPLX-Optimized-Quality by Youssofal. Routed experts in NVFP4/MXFP8 (15.67 GB); all 96 attention projections (1.31 GB), embeddings and head (1.86 GB) and the MTP sidecar stay in BF16.
  3. Merged LoRA: harness-hub/Inkling-2-Mini-pi-adapted-preview by harness-hub (r=32, lora_alpha=64, scale=2.0, 53.5 MB), tuned for pi. It adapts exactly those 96 attention projections. We add (alpha / r) ยท B ยท A in float32 and write back with a single BF16 rounding. Every MoE expert, the vision tower (422 tensors) and mtp.safetensors stay byte-identical. No runtime adapter, no re-quantization.
  4. Inference engine: MTPLX by Youssofal (MLX on Apple Silicon, DSpark MTP depth 3). mtplx forge verify --stamp measures 44.04 tok/s with MTP vs. 29.73 tok/s autoregressive (1.48ร—); the median over 848 overnight generations of 200+ tokens is 45.5 tok/s (35.0 to 57.0). MTP acceptance is unchanged by the merge (59.6 % merged vs. 60.2 % stock).
  5. Harness proxy: itopi_harness (GitHub repo), a thin OpenAI-compatible proxy between pi and mtplx serve. It trims tool output over 4,000 characters, adds a loop guard on repeated calls and can raise reasoning effort after tool errors.
  6. Evaluation: Benchito 1.3, 25 sandboxed tasks run with real tools through pi and graded by hidden tests (180 s per task on P1โ€“P15, 240 s on P16โ€“P25, 16,384 output tokens; a timeout is a fail).

Merge script, starter script, and a reproducible public agent benchmark live in github.com/metaxito/inkling-pi-mtplx.

metaxito.com ยท Benchito 1.3 leaderboard ยท GitHub ยท X


Quickstart (mtplx serve + pi / T3 Code)

Install MTPLX and serve straight from Hugging Face:

mtplx serve \
  --model metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality \
  --model-id inkling-pi-mtplx \
  --host 127.0.0.1 \
  --port 8080 \
  --no-auth \
  --no-stats-footer \
  --reasoning on \
  --reasoning-effort low \
  --batching-preset agent \
  --context-window 65536

Then point pi โ€” or T3 Code via its pi provider / any OpenAI-compatible harness โ€” at http://127.0.0.1:8080/v1 with model id inkling-pi-mtplx (reasoning: true).

Context & Disk: ~19 GB on disk (18 GB weights + 606 MB MTP sidecar). Native context goes up to 1M tokens (1,048,576). We ran every bench with a 64K window on a 64 GB Mac; we have not measured peak memory with a full 64K (or longer) context, so check headroom before you raise --context-window.

Small tip that makes a big difference: Keep --reasoning-effort low turned on. Switching reasoning off looks faster in raw tok/s, but on our 20-task eval effort=low finished 26% faster in wall time because a quick thought before calling a tool prevents unnecessary retries.


Benchmarks (Apple M4 Pro, 64 GB)

In short: it matches the original model at full precision and runs offline at $0; the cheap cloud tier still scores higher. Every model and every run, with raw JSON: metaxito.com/bench.

Benchito 1.3: 25 Agent Tasks, With Hands in pi

Benchito 1.3 results: tasks passed per model on P1โ€“P15 and the hard P16โ€“P25, with score of 25, time and estimated cost per pass. Itopi and the other local rows ran on one Mac mini M4 Pro at $0; the rest ran in the cloud.

Itopi (this pack + itopi_harness proxy) against the same base model in BF16 and a cloud field. Every model we ran: full chart.

Local rows ran on one Mac mini M4 Pro 64 GB: Itopi, Inkling 2 Mini NVFP4 and Tess 3 runs each; Gemma 4 26B-A4B and Qwen3.6-35B-A3B (4-bit GGUF, llama.cpp) 2 runs each. Cloud rows: 2 runs each via OpenRouter default routing (Nemotron 3 Ultra: 1), the original Inkling 2 Mini via the Tinker free tier (3). Time per pass includes network and queueing for cloud rows, so it is not a like-for-like speed comparison. Cloud cost per pass is estimated from trace tokens at list prices. The same two open models score higher in the cloud (Gemma 19, Qwen 18) than on the Mac mini (13, 14): most of their local losses on P16โ€“P25 are 240 s timeouts, so the gap measures speed on this hardware within the time budget, not capability.

Same capability, done sooner. With no time limit (one run each, Kaggle 2ร— T4, llama.cpp 4-bit, 1,800 s per task), stock Inkling solves 22/25 and LoRA + proxy 23/25, a tie at n=1. LoRA + proxy used ~42% fewer output tokens (78.6k vs 135.1k) and ~34% less task time. The Benchito gain over stock (18.7 โ†’ 22.0) is getting tasks done inside the time limit, not solving harder ones. The proxy is part of the stack: it trims tool output over 4,000 characters, adds a loop guard on repeated calls and can raise reasoning effort (low โ†’ medium โ†’ high) after tool errors.

What the numbers say (and do not say)

  • vs. the original model in the cloud: Itopi scores 22.0 of 25 locally (P16โ€“P25: 7.0 of 10, runs 5, 7, 9) vs. 22.3 (7.3) for the original Inkling-2-Mini BF16 on Tinker.
  • vs. the cheap cloud tier: MiniMax M3.1 Flash 25.0, GPT-6 Luna 25.0, Claude Haiku 5.5 24.0, DeepSeek V4.1 Flash 24.0, Qwen3.8-27B 23.5, GLM 5.3 Flash 22.5. Local does not beat them; the trade is $0 per run, offline, and ~19 GB.
  • What "no re-quantization" means: bit-identical non-attention tensors. The 96 merged attention weights go through one float32 โ†’ BF16 rounding, so this is not claimed to be bit-identical to a runtime float32 adapter.
  • Bandwidth: experts are 80 % of the stored bytes, but per token only 8 of 128 are read (1.0 GB), while BF16 attention and head (~2.2 GB, roughly 60 to 70 % of the bytes read per token) are read every step. Sparsity is what makes decode fast; BF16 attention costs bandwidth. It is a deliberate trade for an exact merge, partly paid back by MTP verifying several tokens per step. An 8-bit-attention control arm is still needed to price it.
  • Caveats: 2 to 3 runs per model, wide spread (Itopi 5 to 9 of 10 on P16โ€“P25). Most local P16โ€“P25 failures are 240 s timeouts, not wrong answers. Benchito is self-built; an external anchor (Terminal-Bench 2.1) is planned.

General recipe (hypothesis)

We think the structure behind this pack may generalize to other local agent models. This is a hypothesis, not a result:

Sparse MoE + mixed precision (compress the sparse experts, keep dense attention and head precise) + LoRA only in the dense BF16 part + a built-in speculative head + a thin harness proxy that compensates local weaknesses.

Tested so far on one base model and one preview adapter. Known couplings: exact merges need BF16 attention, heavier finetunes may drift from the MTP head, and adapter and proxy are tuned to pi's tool format. Next: Terminal-Bench 2.1, and a transfer test (with an 8-bit-attention control arm) on a second MoE, Gemma 4 26B-A4B.

Public Agent Bench v2 & v3: With Hands, in pi

Public Agent Bench v2 ablation: stock Inkling 2 Mini NVFP4 passes 14 of 15 tasks in 700.6 s, adding the pi-LoRA passes 15 in 555.9 s, adding the harness proxy passes 15 in 423.8 s.

Same model and engine, one layer at a time: stock, + pi LoRA (this pack), + itopi_harness proxy.

  • Hard Suite v3 (P16โ€“P25, one run, 4,096-token cap): the Itopi Full Stack (this pack + itopi_harness proxy) solved 6/10 vs. 4/10 for stock MTPLX in 29.9 % less wall time. Superseded by the Benchito 1.3 means above.
  • Bench v2 (P1โ€“P15, one run per stage): the pi LoRA takes stock from 14/15 to 15/15; the proxy brings wall time down to 423.8 s (โˆ’39.5 %). Each of the two 15/15 stages includes one retried task (stage 2: P15 failed a grader check; stage 3: P13 returned no valid JSON in 4 s); first pass was 14/15 for both.
  • Reasoning sanity (this pack only, no stock baseline yet): GPQA Diamond 0.768 (198 questions ร— 4 epochs), AIME 2025 0.767, AIME 2026 0.867 incl. two re-run timeouts (strict first pass 24/28).

Caveat (maxTokens=4096): the local v3 runs above used a 4,096-token output cap; on P18 and P25 all three local stacks hit it, so those failures say little about model ability. run_public_bench.py now defaults to --max-tokens 16384.

20-Task Local pi Agent Eval + Blind Judge (Gemini 4 Neon)

Tested end-to-end through the real pi CLI across 20 multi-step tasks (bugfixes, multi-file refactors, security diff reviews, log triage, shell automation, and prompt-injection defense):

20-task local agent eval: tasks passed, blind judge mean, peak RAM and wall time for six local configurations; this pack uses 19.2 GB and 480 s against 34.3 GB and 912 s for Q8_0 + pi-LoRA.

Six of the 15 local configurations we ran; all 15, including the GSQ-RCO and Tess-4.5 setups that scored higher with the judge, are on metaxito.com/bench.

  • Tied with 8-bit Q8_0 + pi-LoRA in a blind judge: Gemini 4 Neon, AB/BA position-swapped, 1โ€“1โ€“11 over 13 open-ended tasks (head-to-head mean 9.69 vs 9.69; the table's 9.73 / 9.75 are averages over different matchups). One run each, near the score ceiling, so it cannot detect small quality differences. This pack uses 15.1 GB less RAM and finishes 47% faster, partly because the engines differ (MTPLX with MTP vs. llama.cpp).
  • 35% faster than stock MTPLX (479.9 s vs 736.7 s), with 38% fewer tool calls (39 vs 63) and 54% fewer output tokens (8,207 vs 17,773).
  • 44.04 tok/s with MTP depth=3 vs. 29.73 tok/s autoregressive (1.48ร— speedup, verified via mtplx forge verify --stamp).
Raw numbers

Benchito 1.3 (P1โ€“P25, pi with tools, 16,384 output tokens)

P1โ€“P15 at 180 s per task, P16โ€“P25 at 240 s per task; each score is the mean over runs. "Runs" counts P1โ€“P15 + P16โ€“P25 runs; Cost is estimated from trace tokens ร— list prices; local and Tinker free tier are $0.

Model Where P1 to P15 (of 15) P16 to P25 (of 10) Score (of 25) Runs Time / pass Cost / pass (est.)
Itopi Mac mini (local) 15 7 22 3 + 3 29.8 min $0
Inkling 2 Mini NVFP4 Mac mini (local) 15 3.67 18.67 3 + 3 43.9 min $0
Tess 4.5 NVFP4 Mac mini (local) 14 2.33 16.33 3 + 3 50.4 min $0
Qwen3.6-35B-A3B Mac mini (local) 12.5 1.5 14 2 + 2 44.8 min $0
Gemma 4 26B-A4B Mac mini (local) 12 1 13 2 + 2 57.7 min $0
GPT-6 Luna OpenRouter 15 10 25 2 + 2 10.5 min $0.11
MiniMax M3.1 Flash OpenRouter 15 10 25 2 + 2 11.4 min $0.37
Claude Haiku 5.5 OpenRouter 15 9 24 2 + 2 10.5 min $0.14
DeepSeek V4.1 Flash OpenRouter 15 9 24 2 + 2 11.0 min $0.15
Qwen3.8-27B OpenRouter 15 8.5 23.5 2 + 2 14.9 min $0.29
GLM 5.3 Flash OpenRouter 15 7.5 22.5 2 + 2 7.5 min $0.30
Inkling 2 Mini BF16 Tinker free tier 15 7.33 22.33 3 + 3 26.5 min $0
Hy4 Flash OpenRouter 14.5 7.5 22 2 + 2 32.3 min $0.07
Gemma 4 31B OpenRouter 14 5.5 19.5 2 + 2 16.5 min $0.38
Gemma 4 26B-A4B OpenRouter 13.5 5.5 19 2 + 2 24.8 min $0.21
Nemotron 3 Ultra 550B OpenRouter 12 6 18 1 + 1 18.3 min $2.78
Qwen3.6-35B-A3B OpenRouter 14.5 3.5 18 2 + 2 20.0 min $0.31
Mistral Large 4 OpenRouter 13.5 4 17.5 2 + 2 37.3 min $0.87
Mistral Small 4 OpenRouter 13 2 15 2 + 2 28.2 min $1.12
Nemotron 3 Nano 30B-A3B OpenRouter 9.5 2 11.5 2 + 2 20.0 min $0.24
gpt-oss-120b OpenRouter 10 1.5 11.5 2 + 2 6.0 min $0.05

20-Task Local pi Agent Eval

Configuration Engine Passed Blind Judge ร˜ (T8โ€“T20) Peak RAM Total Wall (T1โ€“T20) Tool Calls (T1โ€“T15) Output Tokens (T1โ€“T15)
This pack (effort=low) mtplx 2.13.3 20/20 9.73 (1-1-11 vs Q8_0) 19.2 GB 479.9 s 39 (1 err) 8,207
This pack (reasoning=off) mtplx 2.13.3 20/20 โ€” 19.1 GB 647.5 s 48 (1 err) 12,669
Stock MTPLX (Optimized-Quality, no LoRA) mtplx 2.13.3 20/20 9.73 19.2 GB 736.7 s 63 (1 err) 17,773
llama.cpp Q8_0 + pi-LoRA (effort=low) llama-server 20/20 9.75 34.3 GB 912.3 s 39 (2 err) 8,419
OG Inkling-2-Mini Q8_0 Base (no LoRA) llama-server 19/20 9.75 (excl. T1) 36.8 GB 1,110 s 45 (2 err) 9,809
Qwen3.6-35B-A3B (reasoning=on) llama-server 18/20 7.25 26.8 GB 504 s 46 (2 err) 13,373
Qwen3.8-27B Q8_0 + pi-LoRA (reasoning=off) llama-server 19/20 9.00 38.0 GB 1,616 s 41 (2 err) 5,658
Inkling-2-Mini GSQ-RCO IQ3_S + pi-LoRA llama-server 20/20 9.92 24.1 GB 731 s โ€” โ€”
Tess-4.5-26B-A3B NVFP4 (effort=low) llama-server 20/20 9.88 29.0 GB 740 s โ€” โ€”

Judge means come from different pairwise matchups and are indicative, not a ranking. All 15 setups: metaxito.com/bench.

Public Agent Bench v2: 15 Tasks, With Hands (3-Stage Ablation)

15 deterministic, sandbox-verified agent tasks run through the real pi CLI with tools (P1โ€“P5 core, P6โ€“P10 stateful coding with hidden tests, P11โ€“P15 agentic stress). Same base model and engine (mtplx 2.13.3), reasoning=low at start; in stage 3 the proxy can raise effort after tool errors. One run per stage. Each stage adds one layer:

Stage Stack Passed Wall Time ฮ” Wall vs. Stock Tool Calls (Err) Out Tokens
1 Inkling-2-Mini Stock MTPLX 14/15 700.7 s โ€” 61 (3) 20,963
2 + pi LoRA (this pack) 15/15 556.0 s โˆ’20.7 % 59 (6) 23,463
3 + itopi_harness proxy (Itopi Full Stack) 15/15 423.8 s โˆ’39.5 % 55 (2) 15,227

Stages 2 and 3 each include one retried task (P15 and P13); the first pass was 14/15 for both. Stock MTPLX timed out on P7 (Ledger CLI, 180 s); the pi LoRA unlocks it. The itopi_harness proxy then cuts output tokens by 35 % vs. Stage 2. Local comparison on the same suite: Tess-4.5-26B-A3B NVFP4 14/15 in 895.3 s (2.1ร— slower than the full stack).

Public Agent Bench v3: Hard Suite (--suite hard, P16โ€“P25)

The v2 suite saturates (all top local stacks score 14โ€“15/15), so v3 adds 10 harder multi-file tasks with hidden property, exploit and complexity tests (WAL crash recovery, DAG scheduler, security file server, thread-safe rate limiter, mini SQL engine and more). pi with tools, 240 s per-task timeout, Apple M4 Pro 64 GB:

Stack Passed Wall Time ฮ” Wall vs. Stock Tool Calls (Err) Out Tokens
Itopi Full Stack (pi LoRA + itopi_harness proxy) 6/10 (60 %) 1,261 s โˆ’29.9 % 62 (7) 35,286
Inkling Stock MTPLX 4/10 (40 %) 1,798 s โ€” 43 (0) 30,524
Tess-4.5-26B-A3B NVFP4 3/10 (30 %) 1,948 s +8.4 % 34 (0) 22,999

The full stack gains +20 percentage points over stock and unlocks P17 (WAL crash recovery), P21 (security file server) and P22 (thread-safe sliding-window limiter).

Caveat (maxTokens=4096): On P18 and P25 all three models stopped with stopReason="length" at the 4,096-token output cap while writing large single-file implementations, so those two failures say little about model ability. A trace audit found zero grader false positives across all 30 runs. run_public_bench.py now defaults to --max-tokens 16384; v3 numbers above were produced with the old cap and will likely improve on re-run.

Overnight Sanity Baseline (Reasoning Benchmarks)

Full-length runs of this pack (reasoning=low, 64K context) on public reasoning benchmarks, as a sanity baseline for general reasoning ability:

Benchmark Samples Score
GPQA Diamond 792 / 792 (198 ร— 4 epochs) 0.768
AIME 2025 30 / 30 0.767
AIME 2026 30 / 30 0.867 (26/30)

Inspect AI, chain of thought, choices shuffled (seed 42), 180 s per request, no stock baseline yet. AIME 2026 note: the first pass completed 28/30 attempts (24 correct) with 2 requests lost to 180 s API timeouts (#28, #29); both were re-run with a 600 s timeout and one connection and answered correctly, giving 26/30. The strict first-pass result is 24/28.


Hardware & Limitations

  • Apple Silicon M3 / M4 / M5. Tested on a Mac mini M4 Pro with 64 GB; ~19 GB on disk, 19.2 GB peak RSS in a short-prompt check. 32 GB Macs should fit the weights but are untested. M1/M2 Macs need an FP16 sibling build via mtplx forge fp16.
  • Tuned for pi-style agent loops: The merged LoRA shines in minimal tool-calling harnesses like pi (standalone or inside T3 Code). For pure freeform chat or very different tool schemas, compare against stock Youssofal/Inkling-2-Mini-MTPLX-Optimized-Quality.
  • Vision: All vision weights are preserved bit-identically from the upstream pack, though our agent benchmarks focused on text, code, and shell tool use.

Credits & License

Released under the Apache-2.0 license. Huge thanks to the teams and builders who made every layer of this stack possible:


Under the Hood (Technical Details & Provenance)

For folks who want the exact tensor mechanics and checksums:

  • In Youssofal/Inkling-2-Mini-MTPLX-Optimized-Quality, all 96 language-model attention projections (wq_du, wk_dv, wv_dv, wo_ud across layers 0..23) are stored unquantized in BF16.
  • harness-hub/Inkling-2-Mini-pi-adapted-preview (r=32, lora_alpha=64, scale=2.0, 53.5 MB) adapts exclusively those exact 96 attention projections (1:1 tensor rename, zero permutation).
  • Merging W_new = W_bf16 + (B @ A) * scale in FP32 and casting back to BF16 in place changes only those attention weights (rounded to BF16) and leaves every quantized component bit-identical:
    • Routed MoE experts (NVFP4 / MXFP8): untouched
    • Vision tower (422 tensors): untouched
    • DSpark Multi-Token Prediction sidecar (mtp.safetensors, depth=3): untouched

Checksums & Revisions

  • Base checkpoint: thinkingmachines/Inkling-2-Mini (revision 6e7c8248f75265bdd4fbab5273304243b5d8c2cb)
  • Merged adapter: harness-hub/Inkling-2-Mini-pi-adapted-preview (adapter_model.safetensors SHA-256: 772f1b9a4585448106929b5c3a8540ef1a523d85c2a4694f37d8d5380bb3c903)
  • Merged weights (model-00001-of-00001.safetensors) SHA-256: 09d12b6d8a19e04fb5a8b5dd846419378ca808437e8878f151193e89458ff26c
  • MTP sidecar (mtp.safetensors) SHA-256: 7c3b651317f01f73bcf4e1dceba66ef8b7e1a1eac6bc171e882e690a4b10a1d2
  • Full file checksums are included in SHA256SUMS.
Downloads last month
355
Safetensors
Model size
26B params
Tensor type
F32
ยท
BF16
ยท
F8_E4M3
ยท
U8
ยท
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality