Instructions to use netprojects/Inkling-2-Mini-MLX-2bit-mixed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Inkling-2-Mini-MLX-2bit-mixed 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("netprojects/Inkling-2-Mini-MLX-2bit-mixed") config = load_config("netprojects/Inkling-2-Mini-MLX-2bit-mixed") # 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 netprojects/Inkling-2-Mini-MLX-2bit-mixed with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-MLX-2bit-mixed"
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": "netprojects/Inkling-2-Mini-MLX-2bit-mixed" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Inkling-2-Mini-MLX-2bit-mixed 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 "netprojects/Inkling-2-Mini-MLX-2bit-mixed"
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 netprojects/Inkling-2-Mini-MLX-2bit-mixed
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Inkling-2-Mini-MLX-2bit-mixed with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-MLX-2bit-mixed"
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 "netprojects/Inkling-2-Mini-MLX-2bit-mixed" \ --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 for Apple Silicon (MLX, 2-bit mixed, for 16 GB Macs, + DSpark)
✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via inkling2-mlx
thinkingmachines/Inkling-2-Mini (revision 6e7c824) for MLX on
Apple Silicon, made small enough for Macs with 16 GB of memory, with its DSpark speculative-decoding draft bundled
(mtp.safetensors) and its vision encoder included.
This build uses standard MLX affine quantization with a per-layer mixed-precision recipe: each group of layers gets its own bits and group size, chosen by measuring how much each choice changes the model's output. The routed experts, re-quantized from their released NVFP4 / MXFP8 values, are 2-bit (group 128) in layers 0–5, 14 and 19, and 3-bit (group 128) in layers 20–23. In layers 6–13 and 15–17 their gate and down projections are 3-bit and their up projections 2-bit, except layer 9, where all three are 3-bit; layer 18 is 2-bit with 3-bit down projections. Attention is 6-bit (group 64) in layers 6–8 and 12, 5-bit (group 64) in layers 9–11 and 13–17, and 4-bit (group 128) in layers 0–5 and 18–23. Embeddings are 4-bit (group 128), the output layer is 4-bit (group 64) and the vision encoder is 2-bit (group 128). Because the vision encoder is 2-bit, image answers are less exact: in the vision check the model named the colours and positions right but called the circle an oval (see "What was checked"). The full per-layer recipe is in quant-recipe.json. Size: 9.5 GB plus the 0.64 GB draft.
Who it is for: Macs with 16 GB of memory. It is about 1.3 GB smaller than the 2.5-bit build (9.5 GB vs 10.8 GB of weights), and on the same tests that costs some closeness to the original: the same next token as Thinking Machines' code at 90.2% of positions instead of 91.0%, mean KL 0.1066 instead of 0.0656, and greedy answers that follow theirs for the first 6, 10, 5 of 24 tokens instead of 6, 14, 24. On GSM8K (50 questions) it scored 47/50, the 2.5-bit build 46/50. If your Mac has more memory, use the 2.5-bit build or a larger one.
Inkling 2 Mini is Thinking Machines' looped mixture-of-experts model: 26.4B parameters, about 3.4B active per token, 24 layers of which the middle twelve run three times (48 layer passes per token), text and image input, up to 1M tokens of context.
Builds
| Build | Size | Same next token as Thinking Machines' code | KL vs their code | GSM8K (50 questions) | Peak memory, 8K-token prompt |
|---|---|---|---|---|---|
| netprojects/Inkling-2-Mini-MLX-4-8bit (recommended) | 19.5 GB + 0.64 GB draft | 98.4% | 0.0018 | 47/50 | 27.8 GB |
| netprojects/Inkling-2-Mini-MLX-3bit | 14.1 GB + 0.64 GB draft | 95.5% | 0.0424 | 48/50 | 21.2 GB |
| netprojects/Inkling-2-Mini-MLX-2.5bit | 10.8 GB + 0.64 GB draft | 91.0% | 0.0656 | 46/50 | 18.25 GB |
| netprojects/Inkling-2-Mini-MLX-2bit-mixed | 9.5 GB + 0.64 GB draft | 90.2% | 0.1066 | 47/50 | 17.05 GB |
| netprojects/Inkling-2-Mini-MLX-4bit | 16.5 GB + 0.64 GB draft | 95.9% | 0.0291 | 47/50 | 23.5 GB |
"Thinking Machines' code" is their Transformers implementation of Inkling 2 Mini, run on the released weights; the columns are explained under "What was checked".
Install
Inkling 2 Mini is supported in MLX-VLM itself since 21 November 2026 (not yet in a PyPI release). Use MLX-VLM from main (Python 3.10 or newer):
pip install "git+https://github.com/Neywa-Labs/mlx-vlm" torch torchvision
or, to also get OpenAI tool_calls from mlx_vlm.server, internet-projects/inkling2-mlx (the same MLX-VLM plus
Inkling's tool-call parser):
pip install "git+https://github.com/internet-projects/inkling2-mlx@v0.2.4" torch torchvision
PyTorch and torchvision are only used on the CPU by the image processor.
Running on a 16 GB Mac
A 16 GB Mac gives the GPU about 10.7 GB by default. This build's weights are 9.5 GB. Answering the 50 GSM8K questions (short prompts), its peak memory was 9.34 GB. Longer prompts need more: in the memory check (inkling2-mlx v0.2.4) the peak was 16.14 GB with a 4K-token prompt and 17.05 GB with an 8K-token prompt at the default prefill step, more than a 16 GB Mac gives the GPU. With the steps below (a prefill step of 128, no DSpark draft), the peak with a 4K-token prompt was 10.6 GB, just under the default limit. For longer prompts or with the draft, also raise the limit (step 1).
Raise the GPU memory limit (it resets at the next restart; leaves about 4 GB for macOS, so close other apps):
sudo sysctl iogpu.wired_limit_mb=12288Run without the DSpark draft.
mtp.safetensorsis in the repository but is loaded only when you ask for DSpark (--draft-model/draft_model); with it, add 0.64 GB.Use a small prefill step:
mlx_vlm.generate --model netprojects/Inkling-2-Mini-MLX-2bit-mixed --prefill-step-size 128 --max-tokens 1024 \ --prompt "Explain in two sentences why the sky is blue." mlx_vlm.server --model netprojects/Inkling-2-Mini-MLX-2bit-mixed --prefill-step-size 128In Python:
generate(model, processor, prompt, max_tokens=1024, prefill_step_size=128).
Use
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("netprojects/Inkling-2-Mini-MLX-2bit-mixed")
prompt = apply_chat_template(processor, model.config, "Explain in two sentences why the sky is blue.",
reasoning_effort="low")
print(generate(model, processor, prompt, max_tokens=2048, temperature=0.0).text)
reasoning_effort is part of Inkling's chat template: none, minimal, low, medium, high (the default), xhigh,
max, or a number from 0.0 to 0.99. Thinking Machines notes that the model can think at length even at none and can get
stuck in long reasoning loops, so set max_tokens.
With an image (the vision encoder is 2-bit in this build; for image-heavy work the 3-bit, 4-bit or 4/8-bit build is more exact):
prompt = apply_chat_template(processor, model.config, "What error does this terminal show?", num_images=1, reasoning_effort="low")
print(generate(model, processor, prompt, image=["screenshot.png"], max_tokens=2048).text)
With the DSpark draft (see "What was checked" for how its output compared with plain generation):
from mlx_vlm.speculative.drafters import load_drafter
draft, kind = load_drafter("netprojects/Inkling-2-Mini-MLX-2bit-mixed")
print(generate(model, processor, prompt, max_tokens=2048, draft_model=draft, draft_kind=kind,
draft_block_size=4).text)
Server: mlx_vlm.server --model netprojects/Inkling-2-Mini-MLX-2bit-mixed --draft-model netprojects/Inkling-2-Mini-MLX-2bit-mixed --draft-kind dflash --draft-block-size 4.
OpenAI-compatible server, with tool calls and the thinking returned separately (reasoning_content):
mlx_vlm.server --model netprojects/Inkling-2-Mini-MLX-2bit-mixed --port 8000
Speed
MacBook Pro M5 Max (128 GB), idle, 21 November 2026; median of 3 runs. Decode: 5 prompts (math, code, chat) × 256 tokens, greedy, reasoning none. DSpark: the bundled draft at its best block size.
| Build | Prompt processing, 1K / 8K / 32K tokens (tok/s) | Generation (tok/s) | Generation with DSpark (tok/s) |
|---|---|---|---|
| 4-8bit | 1752 / 1658 / 1208 | 36.6 | 47.1 (×1.29, block 3) |
| 4bit | 1535 / 1412 / 1104 | 43.6 | 70.9 (×1.63, block 4) |
| 3bit | 1386 / 1351 / 1075 | 44.4 | 75.2 (×1.69, block 4) |
| 2.5bit | not measured | not measured | not measured |
| 2bit-mixed (this build) | not measured | not measured | not measured |
Speeds for this build have not been measured on an idle Mac yet. On the other builds the draft's default block size (8) was slower than 3 or 4; the examples here use 4. The best block size for this build has not been measured.
inkling2-mlx v0.2.4 has a faster decode path (compiled per-layer steps and small Metal kernels, on by default); INKLING2_FAST_DECODE=0 switches back.
Thinking Machines' results
From the Inkling 2 Mini card, for the original model (their harnesses and settings; a selection of their table):
| Benchmark (Thinking Machines' figures) | Inkling 2 Mini | Qwen3.8-27B | Gemma 4 31B |
|---|---|---|---|
| Artificial Analysis Intelligence Index v5.0 | 20.1 | 20.1 | 4.4 |
| SWE-bench Verified (bash only) | 79.2% | 77.8% | 46.1% |
| SWE-bench Pro v2 Hard (mini-swe-agent) | 77.9% | 73.8% | 14.2% |
| Terminal-Bench 2.1 (pi) | 71.6% | 73.0% | 43.4% |
| BrowseComp (with compaction) | 79.0% | 61.6% | 37.0% |
| MCP Atlas | 82.7% | 77.3% | 54.2% |
| MMMU Pro | 74.9% | 76.3% | 73.4% |
| OmniDocBench v1.6 | 92.8% | 91.5% | 82.5% |
| LongBench v2 | 66.9% | 52.3% | 52.9% |
| ARC-AGI v1 / v2 | 84.5 / 49.3% | 87.5 / 42.4% | – |
What was checked
On the same MacBook Pro M5 Max (128 GB) as the other builds, for the 22 November 2026 release of this build. The
comparison with Thinking Machines' code and GSM8K were run with MLX-VLM main (fd6404f, as in inkling2-mlx v0.2.0), the same code the other builds' comparison was re-run with. The comparison was repeated, and the other checks below were run, with inkling2-mlx v0.2.4.
- Against Thinking Machines' code. Their Transformers implementation (pull request #51050) ran on the CPU with the released weights, on 12 short chat texts (488 answer positions). This build gave the same next token at 90.2% of positions (mean KL 0.1066), and its greedy answers to 3 prompts matched theirs for the first 6, 10, 5 of 24 tokens. inkling2-mlx v0.2.4 gave the same results.
- GSM8K, 50 fixed test questions (reasoning
none, greedy): 47/50. - Tool calling (reasoning
none): an agent prompt withbashandreadtools produced a well-formed call in Inkling's format. - Coding: 3/3 short Python tasks passed their asserts. Thinking (reasoning
low): 2/2 questions answered correctly after one closed thinking block. Vision: asked to describe a test image with a red square and a blue circle, it answered "a red rectangle on the left, a blue oval near the lower center, a light gray background": colours and positions right, the circle called an oval. The vision encoder is 2-bit in this build; for image-heavy work the 3-bit, 4-bit or 4/8-bit build is more exact. - Memory (inkling2-mlx v0.2.4): weights 9.5 GB; peak 16.14 GB with a 4K-token prompt, 17.05 GB with an 8K-token
prompt and 22.89 GB with a 32K-token prompt. Answering the 50 GSM8K questions (short prompts), the peak was 9.34 GB.
With a 4K-token prompt,
prefill_step_size=128and no draft, the peak was 10.60 GB. - DSpark: the bundled draft loads with this build. With greedy decoding, the output with the draft was not identical to the output without it on any of 3 test prompts (0/3); whether the differences are only at near-ties was not checked.
Known limitation of the current server: when the model calls a tool, content can also carry a short sentence of its
reasoning and the tool name.
License and credits
Apache-2.0, as Inkling 2 Mini. Use of the model is also governed by Thinking Machines'
Model Acceptable Use Policy. LICENSE is the Apache-2.0
text and NOTICE describes the conversion. Inkling 2 Mini is by Thinking Machines Lab; please cite their work.
Published by NetProjects (Internet Projects Ltd). Not affiliated with Thinking Machines.
More MLX builds from NetProjects: huggingface.co/netprojects · netprojects.com
- Downloads last month
- 103
4-bit
Model tree for netprojects/Inkling-2-Mini-MLX-2bit-mixed
Base model
thinkingmachines/Inkling-2-Mini