Models
Inkling-2-Mini
72.2 tok/s decode where mlx-vlm's own code decodes this model at 27.5 (2.63×): mlx-dspark's own forward makes plain decoding 31% faster, and Inco AI's DFlash 2 head, verified as a tree, adds 2.00× on top (2.30× on code, 2.41× on math) — against 1.41× for the DSpark head the model ships in its own repo.
- Made by
- Thinking Machines
- Size
- 26B (3.4B active)
- Architecture
- Looped MoE: the middle 12 of 24 layers run three times, 8 of 128 experts per token
- Features
- Thinking
Before you download
Needs mlx-vlm 0.8.1 or newer, the first release with the looped inkling2 model. mlx-dspark requires it, so a fresh install or `pip install -U mlx-dspark` brings it in; the separate git install that earlier versions asked for is no longer needed.
Run it
mlx-dspark serve --model thinkingmachines/Inkling-2-Mini
Serves an OpenAI + Anthropic API on http://127.0.0.1:8080. For a one-off answer, use mlx-dspark generate --model thinkingmachines/Inkling-2-Mini --prompt "…".
Two drafters, measured side by side
| Drafter | Mode | Mean | Chat | Code | Math | Accept | tok/s |
|---|---|---|---|---|---|---|---|
| DFlash 2 default | --mode dflash |
2.00× | 1.28× | 2.30× | 2.41× | 4.28 | 72.2 |
| DSpark (bundled) | --mode dspark |
1.41× | 1.09× | 1.33× | 1.83× | 2.40 | 51.7 |
Drafter
incoai/Inkling-2-Mini-DFlash2resolves automatically with--mode auto(the default).thinkingmachines/Inkling-2-Mini (bundled)available with--mode dspark.thinkingmachines/Inkling-2-Miniavailable with--mode dspark.
The drafter downloads with the model the first time you run it, and loads 4-bit quantized (acceptance doesn't depend on the drafter's precision).
Lookup drafts are off by default for this pair (measured as a net loss); --lookup-drafts turns them on.
Reading the prompt
Prefill runs at 465 tok/s, so a 20,000-token prompt takes about 43 s the first time. After that the prefix cache skips it.
Measured 2026-11-26 on an M4 Pro, 48 GB with mlx 0.32.5, decode tok/s (generation alone; the prompt's processing is its own figure), `mlx-dspark benchmark --trials 3`, each head at the cap it derives.
Inkling-2-Mini is a 26B mixture-of-experts model (3.4B active per token) whose middle 12 layers run three times per token. It is published as one mixed-precision checkpoint: NVFP4 and MXFP8 experts, bf16 everywhere else. mlx-dspark runs that checkpoint as released; there is no separate quant to pick.
Faster, if you opt in: --target-bits 8
About +32% plain decoding and +15% with the drafter (82.9 tok/s decode on an M4 Pro), same memory. It quantizes the attention projections and the output head when the model loads, so it is not the model as released: about 1.6% of next-token choices differ, always where the top two candidates were nearly tied. Off by default. In the Mac app it is the checkbox under the model's row. Details below.
--model thinkingmachines/Inkling-2-Mini drafts with Inco AI's DFlash 2 head (incoai/Inkling-2-Mini-DFlash2, a 990 MB second download). It predicts a whole block of 8 in one pass and walks a path through its top candidates, and it is accepted far more often than the DSpark head Thinking Machines ships inside the model repo (mtp.safetensors): 4.3 tokens a round at cap 6 against 2.4 at cap 3. Each round verifies a best-first tree of the block's candidates rather than a single chain, at the same cost. --mode dspark keeps the bundled head (no second download). mlx-dspark binds what the head was trained on — the same taps as the bundled head, the full input embedding, the model's real 200,058-token vocabulary — and drafts its candidates through an 8-bit copy of the output head on the GPU's matrix units.
Like every mixture-of-experts target, each extra row of a verify pass pulls in fresh experts, so caps are priced carefully: the DFlash 2 head's cap (6 on an M4 Pro) is derived from this machine's measured costs at the head's own measured acceptance, not the DSpark heads' (which would pick 3, 9% slower). mlx-dspark runs the experts with its own kernels, which read each expert's weights once for all the rows routed to it: consecutive tokens share experts heavily, so a four-row check costs about a third more than a one-row step instead of nearly twice.
What you get compared with plain mlx-vlm. On an M4 Pro, mlx-vlm's own code (0.8.1) decodes this model at 27.5 tok/s. mlx-dspark decodes it at 36 tok/s without a drafter, 51.7 with the bundled DSpark head and 72.2 with the DFlash 2 head: 2.63× in all (decode tok/s, mlx 0.32.5). (mlx-vlm's own speculative decoding with the bundled head reaches 23–37 tok/s on chat, code and math prompts; mlx-dspark with that same head gives 40–58.) The stock code launches about 7,000 small GPU kernels per token; mlx-dspark folds the runs between the big matrix products into single kernels (about 2,100 launches), and its attention reads the cached keys and values in place where the stock code copies them at every layer. Both help every token, drafted or not, and the second more as the conversation grows (those copies are 7% of a decode step at a 2,600-token prompt and 12% at 8,000).
The baseline in the table is mlx-dspark's own faster plain decode, so the speedup there reads 2.00×. On the stock forward the bundled head reached 30.3 tok/s (end to end, mlx 0.32.4).
Long prompts, rewrites, thinking#
On a long prompt, a verify pass reads the cached keys and values once per key/value head instead of once per row and query head: 5% of a 4-row verify pass at 2,600 tokens, 8% at 16,000, and about that much more speed for the drafter there.
Verify passes of up to 33 rows run mlx-dspark's forward, so checking copied text is cheap: a pass over 32 copied tokens costs 175 ms. A short prompt is such a pass too: up to 63 new tokens — a first message, or a follow-up turn after the prefix cache restored the rest — go through the same forward, and the first words of a 22-token request stream after 0.20 s (0.26 s at 43 tokens; mlx-dspark serve, M4 Pro). Longer prompts read at 465 tok/s: there mlx-dspark's bit-exact kernels run around mlx-vlm's own experts, which computes the same bits in fewer GPU launches (mlx-vlm's code alone: 400). Lookup drafts are off by default for this model, because its drafter already predicts copied text well and an edit that reorders or inserts loses 5–9% with them on. For a verbatim rewrite they are worth turning on: fixing typos in a document runs at 141 tok/s with --lookup-drafts, against 74 for the drafter alone and 36 plain.
The chat template has reasoning-effort levels from none to max and no on/off switch, so turning thinking off (enable_thinking: false, Anthropic's thinking: disabled, or reasoning_effort: "none") selects none. The model still writes a short reasoning passage at that level; it comes back separated from the answer.
A faster variant: --target-bits 8#
The checkpoint quantizes only its experts. The attention projections and the output head stay in bf16, and they are two thirds of the bytes the model reads per token. --target-bits 8 quantizes them to 8-bit when the model loads (under a second, same memory):
| released weights | --target-bits 8 |
|
|---|---|---|
| plain decoding | 36.1 tok/s | 47.7 tok/s |
| with the DFlash 2 head | 72.2 tok/s | 82.9 tok/s |
| with the bundled DSpark head | 51.7 tok/s | 56.8 tok/s |
This is no longer the model as released. Compared token by token over 4,600 positions, the 8-bit model picks a different next token in 1.6% of them, always where the two top candidates were nearly tied. For scale, the released model differs from itself in about 1% of positions between a decode step and a verify pass. 4-bit was measured too and drifts clearly, so it is not offered. The option is off by default.
A drafted round gains less from it than a plain step does: over the 8-bit model's own plain decoding, the DFlash 2 head still gains on chat (1.19×) and 1.96–2.06× on code and math; the bundled head loses on chat (0.93×). (Decode tok/s, mlx 0.32.5.)
mlx-dspark serve --model thinkingmachines/Inkling-2-Mini --target-bits 8
Several requests at once#
With --max-batch 8 concurrent requests decode together, one token each per pass: 58.8 / 86.7 / 124.6 tok/s in total at 2 / 4 / 8 requests on an M4 Pro, against 48.6 for one request with the bundled head (measured before the DFlash 2 head; one request alone now runs at ~63, so the batch's total pulls ahead from about four). A request that is alone keeps its drafter — either head — at full speed, and a new arrival streams right away instead of waiting for the request ahead of it. See Batching.
mlx-dspark serve --model thinkingmachines/Inkling-2-Mini --max-batch 8
First run#
mlx-vlm 0.8.1 is the first release that loads this model; pip install -U mlx-dspark brings it in.
mlx-dspark serve --model thinkingmachines/Inkling-2-Mini
The checkpoint is about 20 GB, and the model card recommends 32 GB of memory or more.
Numbers not matching your Mac? They shouldn't be identical: the draft cap is derived from your machine's measured curves. Run mlx-dspark benchmark --model thinkingmachines/Inkling-2-Mini --trials 3 to get your own. See how these are measured.