harness-hub's Inkling 2 Mini for the pi coding agent on a Mac: MLX and GGUF builds
NetProjects™
harness-hub trained a LoRA adapter for Thinking Machines' Inkling 2 Mini with reinforcement learning (AsyncGRPO in TRL), so that it works as the model behind the pi coding agent at pi's default reasoning effort, high. harness-hub reports that with a 1-hour limit per task, Terminal-Bench 2.1 rises from 44.2% to 56.9% avg@3 (+12.7 ± 6.4 points) and pass@3 from 56.2% to 70.8%, and that on the tasks both models solve the adapter uses 38% to 40% fewer output tokens and 22% to 33% fewer tool calls. With a 4-hour limit the base model catches up (58.1% against 61.0% avg@3, not significant), and harness-hub says the adapter does not make the model more capable when time is unlimited. These are harness-hub's figures, from runs under pi 1.7.0 with the bf16 model and the adapter served by vLLM; we have not reproduced them.
Inkling 2 Mini is a looped mixture-of-experts model with text and image input, 26.4B parameters with about 3.4B active per token. We merged the adapter into its weights and published ready-to-run builds for Macs with Apple Silicon (MLX), with the vision encoder and Thinking Machines' DSpark speculative-decoding draft (0.64 GB) bundled, and for llama.cpp (GGUF), so no adapter needs loading at run time. Everything is under the Apache-2.0 licence. Our builds of the base model: https://netprojects.com/insights/thinking-machines-inkling-2-mini-mlx-dspark
Always up to date. We keep these builds current on Hugging Face. When harness-hub releases a new version of the adapter, we rebuild, re-test and publish it there, so the links on this page always point to the latest version. The numbers in this article were measured on the version named in each section; the model cards on Hugging Face carry the current figures.
- Hugging Face: https://huggingface.co/netprojects
- NetProjects™ MLX builds collection: https://huggingface.co/collections/netprojects/netprojects-mlx-builds
What we released
Merged from harness-hub/Inkling-2-Mini-pi-adapted at revision 14b5b5a. The adapter changes only the attention projections (q, k, v and o) of the language model. In the 4/8-bit build those stay in bf16, so the merge is exact, and the routed experts are kept exactly as Thinking Machines released them (NVFP4 in layers 0 to 19, MXFP8 in layers 20 to 23). The four smaller builds are our LayerFit™ builds of Inkling 2 Mini with the adapter merged in: every tensor is that build's, byte for byte, except the 96 attention projections the adapter changes, which were re-quantised from the exactly merged bf16 weights at the bits LayerFit chose for them. How LayerFit works: https://netprojects.com/layerfit
| Hugging Face | Size | Your Mac | Same next token as the 4/8-bit build | KL vs the 4/8-bit build | Peak memory, 8K-token prompt |
|---|---|---|---|---|---|
| netprojects/Inkling-2-Mini-pi-adapted-MLX-4-8bit | 19.5 GB + 0.64 GB draft | 64 GB and up | reference (exact merge) | – | 27.6 GB |
| netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-4bit | 16.5 GB + 0.64 GB draft | 32 GB and up | 99.2% | 0.0013 | 23.1 GB |
| netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-3bit | 14.1 GB + 0.64 GB draft | 32 GB | 98.5% | 0.0055 | 20.9 GB |
| netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-2.5bit | 10.8 GB + 0.64 GB draft | 24 GB | 97.4% | 0.0200 | 17.8 GB |
| netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-2bit | 9.5 GB + 0.64 GB draft | 24 GB | 97.0% | 0.0298 | 16.6 GB |
For llama.cpp, netprojects/Inkling-2-Mini-pi-adapted-GGUF has six files from 10.28 GB to 23.49 GB. harness-hub publishes the merged model as one Q8_0 file; ours are smaller builds of that merged model, made with our own importance matrix, computed on the merged model, and per-tensor types that follow Unsloth's UD recipes for Inkling 2 Mini. For each size we kept whichever of that mix and a standard llama.cpp quant stayed closer to the Q8_0. The vision projector is ggml-org's, unchanged.
| GGUF file | Size | KL vs harness-hub's Q8_0 | Same top token |
|---|---|---|---|
| Q2_K_XL | 10.28 GB | 0.0610 | 89.0% |
| IQ3_XXS | 11.66 GB | 0.0299 | 92.2% |
| Q3_K_XL | 13.63 GB | 0.0160 | 94.1% |
| Q4_K_XL | 17.63 GB | 0.0079 | 95.8% |
| Q5_K_M | 19.91 GB | 0.0059 | 96.5% |
| Q6_K | 23.49 GB | 0.0037 | 97.1% |
How well it matches
Measured on 30 November 2026, MacBook Pro M5 Max (128 GB), with inkling2-mlx v0.2.8.
- Merge: an independent check in NumPy (float64) recomputed every merged weight of the 4/8-bit build from the base weights and the adapter. All 96 projections match to bf16 rounding, and every other tensor and file is byte-identical to our standard Inkling 2 Mini 4/8-bit build.
- Closeness: 12 texts (code, shell sessions, tool calls, and prose in English, Greek and German; 256 tokens each), teacher-forced, with KL over the reference's top 64 tokens. The reference is our exactly merged 4/8-bit build.
- LayerFit keeps its closeness after the merge: the 4-bit build gives the same next token as the pi-adapted 4/8-bit build 99.2% of the time with KL 0.0013, against 99.3% and 0.0014 for our Inkling 2 Mini LayerFit 4-bit build against its own 4/8-bit build.
- Tool calling: on each MLX build, an agent prompt with tools produced a well-formed call, which the server returns as OpenAI tool_calls.
- Coding and vision: on each MLX build, the short Python tasks passed their asserts and the test image was described correctly.
- Peak memory with an 8K-token prompt: 27.6 GB for 4/8-bit, 23.1 GB for 4-bit, 20.9 GB for 3-bit, 17.8 GB for 2.5-bit and 16.6 GB for 2-bit.
- GGUF: KL and same top token are llama-perplexity results against harness-hub's merged Q8_0 on held-out text in 512-token chunks.
Try it
On a Mac with Apple Silicon, install our inkling2-mlx package (MLX-VLM plus Inkling's tool-call parser) and start the OpenAI-compatible server. Then point pi at it with the OpenAI chat-completions API (openai-completions in pi's models.json), not the Responses API, and keep the default reasoning effort, high: the adapter was trained and evaluated that way and was not trained for none.
pip install "git+https://github.com/internet-projects/inkling2-mlx@v0.2.8" torch torchvision
mlx_vlm.server --model netprojects/Inkling-2-Mini-pi-adapted-MLX-4-8bit --port 8000To use the bundled DSpark draft, add --draft-model with the same repository, --draft-kind dflash and --draft-block-size 4 to the server command; the model cards say it helps most on code edits and rewrites. With llama.cpp, llama-server -hf netprojects/Inkling-2-Mini-pi-adapted-GGUF:Q4_K_XL --jinja serves the 4-bit GGUF with tool calls.
Honest limits
- We did not run Terminal-Bench, SWE-bench Pro or any other benchmark suite on these builds, so the agent results above are harness-hub's, from its own setup.
- harness-hub reports that only the 1-hour Terminal-Bench 2.1 gains are significant; with a generous time budget, accuracy is about equal to the base model's.
- Our closeness figures compare each MLX build with our own exactly merged 4/8-bit build, not with Thinking Machines' code, and our checks are short: 12 texts, one tool-calling prompt, a few short coding tasks and one test image, on one machine.
- The 4/8-bit build is for Macs with 64 GB of memory or more, and even the 2-bit build is listed for 24 GB. Prompts longer than 8K tokens need more memory than the peaks above.
- The adapter is for pi at reasoning effort high through the chat-completions API; we did not test it with other agents or settings. harness-hub updated its model card after we built these files; the adapter weights are unchanged.
- We did not time these builds, so we give no speed figures.
Licence
Inkling 2 Mini, the adapter and our builds are under the Apache-2.0 licence, and use of the model is also governed by Thinking Machines' Model Acceptable Use Policy. Each of our repositories carries the licence text and a notice that describes the merge and conversion.
Links
- MLX 4/8-bit build: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-MLX-4-8bit
- MLX LayerFit™ 4-bit build: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-4bit
- MLX LayerFit™ 3-bit build: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-3bit
- MLX LayerFit™ 2.5-bit build: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-2.5bit
- MLX LayerFit™ 2-bit build: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-LayerFit-MLX-2bit
- GGUF builds: https://huggingface.co/netprojects/Inkling-2-Mini-pi-adapted-GGUF
- inkling2-mlx on GitHub: https://github.com/internet-projects/inkling2-mlx
- harness-hub's original adapter: https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted
- Thinking Machines' Inkling 2 Mini: https://huggingface.co/thinkingmachines/Inkling-2-Mini
- pi: https://github.com/earendil-works/pi
- Model Acceptable Use Policy: https://thinkingmachines.ai/model-acceptable-use-policy/
- All our AI ports: https://netprojects.com/ai
Credits
Inkling 2 Mini is by Thinking Machines Lab, and the pi adapter and the merged Q8_0 are by harness-hub, under the Apache-2.0 licence; the GGUF per-tensor types follow Unsloth's UD builds. The MLX and GGUF builds are by NetProjects™ (Internet Projects Ltd). NetProjects™ and LayerFit™ are trade marks of Internet Projects Ltd. Not affiliated with harness-hub, Thinking Machines or Unsloth.
This article was drafted with AI assistance, then edited and approved by people on our team. You can read more about how we use AI at https://netprojects.com/standards/ai.