harness-hub's Inkling 2 Mini for Codex: MLX and GGUF builds
NetProjects™
harness-hub trained a LoRA adapter for Thinking Machines' Inkling 2 Mini with reinforcement learning in TRL, so that it works as the model behind OpenAI's Codex CLI at its default reasoning effort, high. harness-hub reports that under Codex CLI 0.172.0, on its 51 hardest SWE-bench Pro tasks (2 hours per task), pass@3 rises from 66.0% to 74.0% (+8.0 ± 12.3 points) and avg@3 from 46.7% to 60.7% (+14.0 ± 9.9 points). On the tasks both models always solve, it reports 33% fewer output tokens and 16% fewer tool calls. On Terminal-Bench 2.1, pass@3 moves from 64.6% to 65.8% (+1.3 ± 8.3 points), with 44% fewer output tokens and 27% fewer tool calls on the tasks both always solve. These are harness-hub's figures, from the bf16 model with the adapter served as a runtime LoRA by vLLM; we have not reproduced them, and they were not measured on any of our MLX or GGUF builds.
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. harness-hub's adapter is under the Apache-2.0 licence. We merged it into the model and made six standalone builds, so no adapter needs loading at run time: five for Apple Silicon with MLX and one set of GGUF files for llama.cpp. Our builds of the pi-adapted version: https://netprojects.com/insights/harness-hub-inkling-2-mini-pi-adapted-coding-agent-mlx-gguf
- Hugging Face: https://huggingface.co/netprojects
- harness-hub's adapter: https://huggingface.co/harness-hub/Inkling-2-Mini-codex-adapted
What we released
All six repositories are public and merge harness-hub's adapter at revision a82c463. For the MLX builds, the adapter is merged into the attention weights in BF16 and those weights are then quantised again; our 4-bit and 2-bit cards say 96 attention weights, all of which passed an independent BF16 merge check on the 4-bit build. The LayerFit™ builds keep the layout of our stock Inkling 2 Mini LayerFit builds; their allocation is inherited, not freshly calibrated for this adapter. The GGUF files are requantised from harness-hub's merged Q8_0 (revision 36204c3), not from bf16 weights, and use ggml-org's BF16 vision projector unchanged.
| MLX build | Weights on disk | Image input | Drafter file |
|---|---|---|---|
| Inkling-2-Mini-codex-adapted-MLX-4-8bit | 20.16 GB | Yes | Included, not validated |
| Inkling-2-Mini-codex-adapted-LayerFit-MLX-4bit | 17.13 GB | Yes | Included, not validated |
| Inkling-2-Mini-codex-adapted-LayerFit-MLX-3bit | 14.10 GB | Yes | None in the repository |
| Inkling-2-Mini-codex-adapted-LayerFit-MLX-2.5bit | 10.86 GB | Yes, with a 4-bit vision tower | None in the repository |
| Inkling-2-Mini-codex-adapted-LayerFit-MLX-2bit | 9.40 GB | No, text only | None in the repository |
| GGUF file | Size on disk | Use |
|---|---|---|
| Inkling-2-Mini-codex-adapted-Q4_K_M.gguf | 17.48 GB | Starting point |
| Inkling-2-Mini-codex-adapted-Q5_K_M.gguf | 19.91 GB | Higher-bit alternative |
| Inkling-2-Mini-codex-adapted-Q6_K.gguf | 23.49 GB | Largest of the four |
| Inkling-2-Mini-codex-adapted-Q3_K_M.gguf | 13.72 GB | Smallest of the four |
| mmproj-Inkling-2-Mini-BF16.gguf | 0.64 GB | Vision projector, used with every file |
The 4/8-bit and LayerFit 4-bit builds include the upstream drafter file (0.64 GB, counted in their sizes). Our cards say to start without speculative decoding, because the drafter was not validated for this adaptation. The 2-bit build leaves out both the vision tower and the drafter, so it does not accept images; use the LayerFit 4-bit build if you need vision.
What we checked
- MLX 4/8-bit, LayerFit 4-bit and 3-bit: with MLX-VLM 0.8.2 on Apple Silicon, a vision test image, a structured API tool call with the correct tool name and arguments, and a follow-up that used the tool result.
- MLX LayerFit 2.5-bit: the same vision and tool-call checks. It named the red square and blue circle in a synthetic test image, where the build before its 4-bit vision tower called the circle an oval.
- MLX LayerFit 2-bit: a structured tool call with correct arguments and a follow-up that used the tool result, run through the text-only runner in the repository, with Python 3.12 and mlx-vlm 0.8.2. There is no vision check, because the build has no vision tower.
- GGUF: each of the four files passed the same vision smoke test, with llama-mtmd-cli and the BF16 projector.
- That is the whole of our testing, all smoke checks on one machine. They are not a quality ranking.
Try it
For the MLX builds with vision, with MLX-VLM 0.8.2 on Apple Silicon:
mlx_vlm.server --model netprojects/Inkling-2-Mini-codex-adapted-LayerFit-MLX-4bit --host 127.0.0.1 --port 8000The server offers an OpenAI-compatible endpoint at http://127.0.0.1:8000/v1. For the text-only 2-bit build, download the repository, read the included serve_text.py, and run it:
python -B ./serve_text.py --model . --host 127.0.0.1 --port 8000For GGUF, with a llama.cpp build that supports Inkling 2 Mini and a test image:
llama-mtmd-cli --jinja -m Inkling-2-Mini-codex-adapted-Q4_K_M.gguf \
--mmproj mmproj-Inkling-2-Mini-BF16.gguf \
--image image.png -p 'Describe the image.'harness-hub's model card has the steps for serving the adapter with vLLM, or its GGUF with llama.cpp, and pointing Codex CLI at it: https://huggingface.co/harness-hub/Inkling-2-Mini-codex-adapted. We have not tested our builds in the Codex client.
Honest limits
- We did not run SWE-bench Pro, Terminal-Bench or any other benchmark on these builds, so the agent results above are harness-hub's, from the bf16 model with the adapter under vLLM.
- We did not test any build in the Codex client. Our tool-call checks are for the MLX builds only; GGUF tool calls and the upstream benchmark scores were not checked.
- harness-hub's SWE-bench Pro pass@3 gain of 8.0 points comes with an interval of ± 12.3 points, which includes zero; its avg@3 gain and its token and tool-call savings have intervals that do not. On Terminal-Bench 2.1 the pass@3 change is within noise and the gain is in efficiency.
- harness-hub notes that lower-bit quants drift further from the trained behaviour and that its GGUF version has not been re-evaluated; all our builds are lower-bit than its Q8_0 or the bf16 model. We publish no closeness figures for them, such as KL against the bf16 model.
- The 2-bit build is text only. The drafter in the 4/8-bit and LayerFit 4-bit builds was not validated for this adaptation.
- Sizes are on disk, not peak memory, and longer contexts need more. We did not time these builds, so we give no speed figures.
Licence
The adapter, harness-hub's Q8_0 and our builds are under the Apache-2.0 licence. Each of our repositories carries the licence text and a notice that describes the conversion.
Links
- MLX 4/8-bit: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-MLX-4-8bit
- MLX LayerFit 4-bit: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-LayerFit-MLX-4bit
- MLX LayerFit 3-bit: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-LayerFit-MLX-3bit
- MLX LayerFit 2.5-bit: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-LayerFit-MLX-2.5bit
- MLX LayerFit 2-bit, text only: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-LayerFit-MLX-2bit
- GGUF: https://huggingface.co/netprojects/Inkling-2-Mini-codex-adapted-GGUF
- harness-hub's original adapter: https://huggingface.co/harness-hub/Inkling-2-Mini-codex-adapted
- harness-hub's merged Q8_0 GGUF: https://huggingface.co/harness-hub/Inkling-2-Mini-codex-adapted-GGUF
- ggml-org's Inkling 2 Mini GGUF and vision projector: https://huggingface.co/ggml-org/Inkling-2-Mini-GGUF
- Thinking Machines' Inkling 2 Mini: https://huggingface.co/thinkingmachines/Inkling-2-Mini
- Codex CLI: https://github.com/openai/codex
- All our AI ports: https://netprojects.com/ai
Credits
Inkling 2 Mini is by Thinking Machines Lab; the Codex adapter and the merged Q8_0 GGUF are by harness-hub; the vision projector is ggml-org's; all under the Apache-2.0 licence. The MLX and GGUF builds are by NetProjects™ (Internet Projects Ltd). Not affiliated with harness-hub or Thinking Machines.
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.