Instructions to use metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality") config = load_config("metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "metaxito/Inkling-2-Mini-pi-MTPLX-Optimized-Quality" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Inkling-2-Mini-pi-MTPLX-Optimized-Quality
A fast, no-nonsense local agent for 32 GB and 64 GB Apple Silicon Macs (M3 / M4 / M5).
If you have an M4 Pro 64 GB (or any 32 GB+ Mac) sitting on your desk, this pack turns it into a genuinely capable local agent โ built to get real stuff done on your machine, from coding to automations and who knows what else. It takes ~19 GB on disk, peaks at 19.2 GB RAM (at 64K context, out of 1M native context), and runs at 44 tok/s with Multi-Token Prediction, leaving plenty of memory for everything else you're doing.
It combines four great pieces into one clean, ready-to-run pack:
Inkling-2-Mini(Thinking Machines Lab) โ a sharp, compact multimodal MoE base model with 1M native context (lean sliding-window attention on 20/24 layers) and strong tool use.pi-adapted-preview(Harness Hub) โ a LoRA tuned specifically forpi, the minimal agent harness (also runs cleanly inside T3 Code viapior any OpenAI-compatible client). It keeps tool loops tight, stops the model from wandering, and cuts wasted tokens in half.MTPLXOptimized-Quality (Youssofal / MTPLX) โ native Apple Silicon inference with Multi-Token Prediction (MTP) that runs ~1.48ร faster than standard autoregressive decoding while staying under 20 GB.- A lossless merge โ because MTPLX keeps the attention layers unquantized, we were able to bake the
piLoRA straight in without re-quantizing a single MoE expert or touching the MTP speedups. You getQ8_0quality at almost half the memory and nearly twice the speed.
Merge script, starter script, and a reproducible public agent benchmark live in github.com/metaxito/inkling-pi-mtplx.
metaxito.com ยท Full leaderboard: 15 local variants ร 20 agent tasks ยท 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); 64K is a sweet spot for 32 GB Macs (19.2 GB peak RAM), and on 64 GB Macs you can easily push--context-windowto 128Kโ256K+.
Small tip that makes a big difference: Keep
--reasoning-effort lowturned on. Switching reasoning off looks faster in raw tok/s, but on real multi-step taskseffort=lowfinished 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's fast, sharp, and beat a bunch of other local combos we tried. Every variant and every single task, with raw JSON: metaxito.com/bench.
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):
| 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 |
The short version:
- Same quality as 8-bit
Q8_0 + pi-LoRA: Blind LLM-as-a-Judge (Gemini 4 Neon, AB/BA position-swapped, 100% swap consistency across 13 open-ended tasks) tied 1โ1โ11 (9.69 vs 9.69) โ while this pack uses 15.1 GB less RAM and finishes 47% faster. - 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).
Public Agent Bench v2 & v3: With Hands, in pi
- Hard Suite v3 (
P16โP25): the Itopi Full Stack (this pack +itopi_harnessproxy) solves 6/10 vs. 4/10 for stock MTPLX (+20 pp) in 29.9 % less wall time. - Bench v2 (
P1โP15): thepiLoRA alone takes stock from 14/15 to 15/15; the proxy brings wall time down to 423.8 s (โ39.5 %). - Reasoning sanity: GPQA Diamond 0.768, AIME 2025 0.767, AIME 2026 0.867.
Caveat (
maxTokens=4096): v3 was run with a 4,096-token output cap; onP18andP25all three models hit it, so those failures say little about model ability.run_public_bench.pynow defaults to--max-tokens 16384.
Raw numbers (v2, v3 & GPQA/AIME)
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, same engine (mtplx 2.13.3), same reasoning=low. 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 |
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): OnP18andP25all three models stopped withstopReason="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.pynow 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 | 0.768 |
| AIME 2025 | 30 / 30 | 0.767 |
| AIME 2026 | 30 / 30 | 0.867 (26/30) |
AIME 2026 note: the first pass scored 28/30 attempts with 2 requests lost to 180 s API timeouts (#28, #29); both were re-run with a 600 s timeout and answered correctly.
Hardware & Limitations
- Apple Silicon M3 / M4 / M5 with 32 GB+ unified memory (~19 GB on disk, ~19.2 GB peak RSS at 64K context). 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 likepi(standalone or inside T3 Code). For pure freeform chat or very different tool schemas, compare against stockYoussofal/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:
- Thinking Machines Lab โ
thinkingmachines/Inkling-2-Mini - Harness Hub โ
harness-hub/Inkling-2-Mini-pi-adapted-preview - Youssofal / MTPLX โ
Youssofal/Inkling-2-Mini-MTPLX-Optimized-Qualityand MTPLX - Mario Zechner (
badlogic) โpi-mono - Metaxito โ exact BF16 merge, evaluation, and packaging (
metaxito.comยทgithub.com/metaxito/inkling-pi-mtplx)
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_udacross layers0..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) * scalein FP32 and casting back to BF16 in-place 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(revision6e7c8248f75265bdd4fbab5273304243b5d8c2cb) - Merged adapter:
harness-hub/Inkling-2-Mini-pi-adapted-preview(adapter_model.safetensorsSHA-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
- 75
8-bit


