Inkling 2 Mini on Apple Silicon (MLX)
MLX-VLM with support for Thinking Machines' Inkling 2 Mini, the
looped mixture-of-experts model (26.4B parameters, about 3.4B active per token; the middle 12 of its 24 layers run three
times per token). Text and image input, its DSpark speculative-decoding draft, tool calls, and the released NVFP4 / MXFP8
weights loaded as they are.
Since 21 November 2026, Inkling 2 Mini is supported in MLX-VLM itself (pull request #2778, merged into
Neywa-Labs/mlx-vlm main; not yet in a PyPI release). From v0.2.0 this repository is
that upstream MLX-VLM, pinned at commit fd6404f, plus one addition: mlx_vlm/tools/parsers/inkling.py, Inkling's tool-call
format, so mlx_vlm.server returns OpenAI tool_calls.
Our Hugging Face builds (below) use the upstream tensor names since 21 November 2026, so they load both with this repository
and with stock MLX-VLM from main. If you downloaded one of them before that, download it again. v0.1.0 of this repository
(our own looped-model code) only loads the earlier files.
Published by NetProjects (Internet Projects Ltd). Not affiliated with Thinking Machines.
Install
Python 3.10 or newer on an Apple Silicon Mac:
pip install "git+https://github.com/internet-projects/[email protected]" torch torchvision
This installs mlx-vlm version 0.8.0+inkling2mini.10. Without the tool-call parser, stock MLX-VLM from main works too:
pip install "git+https://github.com/Neywa-Labs/mlx-vlm" torch torchvision. PyTorch and torchvision are only used on the CPU by the image
processor.
Models
Use
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("netprojects/Inkling-2-Mini-MLX-4-8bit")
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 (default), xhigh, max,
or a number from 0.0 to 0.99. The model can think at length even at none, so always set max_tokens.
Images: pass num_images=1 to apply_chat_template and image=["picture.png"] to generate.
DSpark speculative decoding, with the draft bundled in the model repository:
from mlx_vlm.speculative.drafters import load_drafter
draft, kind = load_drafter("netprojects/Inkling-2-Mini-MLX-4-8bit")
print(generate(model, processor, prompt, max_tokens=2048, draft_model=draft, draft_kind=kind, draft_block_size=4).text)
Since v0.2.5, plain decode is fast enough that drafting pays off mainly on text that repeats what came before (code edits,
rewrites, structured output). Since v0.2.8, drafting switches itself off while plain decode is faster and back on when drafting
pays again (auto-off, greedy and seeded runs). Without a block size, DSpark uses block 4.
Server: add --draft-model <same repo> --draft-kind dflash --draft-block-size 4.
DFlash2 draft (v0.2.8): the separate incoai/Inkling-2-Mini-DFlash2
draft (about 1 GB) also loads, with load_drafter("incoai/Inkling-2-Mini-DFlash2") or --draft-model incoai/Inkling-2-Mini-DFlash2.
Greedy tok/s on an M5 Max, 4-bit build, block 4, 256 new tokens (plain decode 83-87):
| Draft | chat | chat 2 | code | rewrite |
|---|
| DSpark (bundled), auto-off off | 60 | 59 | 93 | 94 |
| DSpark (bundled), auto-off | 86 | 82 | 96 | 92 |
| DFlash2, auto-off off | 67 | 66 | 98 | 87 |
| DFlash2, auto-off | 85 | 82 | 90 | 94 |
MLX_VLM_DSPARK_AUTO_OFF=0 keeps drafting on for every round.