Inkling 2 Mini UD-Q2_K_XL, NInfer v3 artifact
A NInfer v3 artifact of Thinking Machines'
Inkling 2 Mini, a looped
mixture-of-experts model of 26.4B parameters with 3.4B active per token, from Unsloth's
UD-Q2_K_XL GGUF with the release's vision tower
in Q8_0, its DSpark drafter and incoai's DFlash2 drafter, for NInfer-all, the master branch of
iamwavecut/ninfer-all. Every matrix keeps the GGUF's
ggml blocks byte for byte, so nothing of the model is requantized; the engine multiplies the blocks in place. Only the DFlash2 drafter is quantized here: its projections go from the release's BF16 to 8-bit rows in groups of 32 (Q8_G32).
Stock NInfer builds refuse this file: the Inkling 2 family exists only in that line, and its DSpark
drafter, in llama.cpp's mainline layout, needs release 2026-11-24.1 or later. The file converted from the earlier drafter layout, 10,080,361,216 bytes, stays at revision 242fb0e3 of this repository. The DFlash2 drafter (--spec dflash2) needs release 2026-11-24.7 or later. Release 2026-11-24.6 ran the UD-IQ4_XS file converted the same way with DSpark and with --spec none, with the same text as 2026-11-24.7; older releases were not tried. The file without it, 10,180,728,064 bytes, stays at revision 19b84daf.
UD-Q2_K_XL is the largest 2-bit quantization, 1.1 GB above UD-IQ1_M. Unsloth measured its mean KL divergence from UD-Q8_K_XL at 0.0595 and the same top token in 91.6% of positions. The other Inkling 2 Mini artifacts: UD-IQ1_M, UD-Q2_K_XL, UD-Q3_K_XL, UD-IQ4_XS and APEX-I MiniPlus V2.1.
It runs the whole model: one to eight concurrent requests with prompt-prefix reuse, the model's
reasoning in its own blocks, its JSON tool-call blocks returned as OpenAI tool calls, structured
output and strict tool arguments, typed decisions and reranking, images through the release's
vision tower, speculative decoding with the release's DSpark drafter (by default while one request runs), incoai's DFlash2 drafter (--spec dflash2) or by context lookup, and the routed experts on the GPU, in pinned host memory or read from
this file.
What is inside
| component | representation |
|---|---|
| 24 stored layers run as 48 visits: the prelude (0-5), the core (6-17) three times with the same weights, the coda (18-23) | each visit with its own keys, values and convolution histories |
| attention: 24 query heads over 8 KV heads of 128, no rotation, a learned table of 1,024 distances, sinks; layers 5, 11, 17 and 23 over every position, the others over 1,024 | Q8_0, Q6_K, Q5_K and Q4_K by layer; IQ3_XXS query projections in layers 20-22 |
| MoE: 128 routed experts, 8 per token, sigmoid scores plus a selection bias, SiTU over [gate; up] (width 1152), no shared expert | [gate; up] banks IQ1_S in 6 layers, IQ2_XXS in 5, IQ2_XS in 2, IQ2_S in 11; down banks Q2_0 in 12 layers, NVFP4 in 11, and layer 20's MXFP4 bank as Q8_0 (below) |
| token table; untied head (201,024 rows, 200,058 scored, soft cap 30) | IQ4_XS; Q4_K |
| router, convolutions, distance tables, depth-mixing queries, loop controllers, norms, expert scales, sink and dynamic-tap projections | FP32 (the GGUF's F32 and BF16 values, each held exactly) |
vision tower (vision): ViT with a class row, resized position rows, 2D-rotated heads, 2 x 2 merging, two-layer projector, up to 4,096 positions an image |
Q8_0 matrices, FP32 vectors, BF16 patch projection, from ggml-org's mmproj-Inkling-2-Mini-Q8_0.gguf |
DSpark drafter (dspark): three non-causal blocks over the target's tapped states, a recurrent Markov head of rank 256 |
Q8_0, the Markov tables BF16, from Unsloth's dspark-Inkling-2-Mini-Q8_0.gguf (llama.cpp's mainline layout, the Markov output folded with the release's BF16 head) |
DFlash2 drafter (dflash2): five sliding-window layers over the anchor and 7 masks, a window of 2,048 positions, from the target's tapped states, then the target's head and a conditional selector over each row's 16 best tokens |
Q8_G32 projections (8-bit, groups of 32, FP16 scales); BF16 convolution and selector projections, norms, bases and codebooks; from incoai's Inkling-2-Mini-DFlash2 (BF16 model.safetensors, revision 4f9088ea) |
| tokenizer, chat template, generation config | thinkingmachines/Inkling-2-Mini at revision ed40e7da |
One .ninfer file of 10,816,268,032 bytes (10.07 GiB; SHA-256
ab8ef25b28d150446f941736f10dde06b0140ed4d9f31b2914c3a5bb44ee3016), next to its conversion report, SHA256SUMS and NOTICE: 1,282 objects, among them 856 FP32, 232 Q8_0, 48 BF16, 36 Q8_G32, 26 Q6_K, 16 Q5_K, 12 Q4_K, 12 Q2_0, 11 NVFP4, 11 IQ2_S, 6 IQ1_S, 5 IQ2_XXS, 3 IQ3_XXS, 2 IQ2_XS and 1 IQ4_XS tensors.
Layer 20's down bank is MXFP4 in the GGUF, a format the engine's expert products do not take. The converter stores the same values as Q8_0 blocks: each 4-bit code's doubled value as the int8 code and 2^(e - 128) of the block's exponent as d, which an F16 scale holds exactly for every exponent the bank uses (it checks each block on the way). The bank takes 361 MB instead of 180 MB; nothing else changes.
Conversion command, from the repository's tree at release 2026-11-24.7 or later, with Unsloth's GGUF
repository at revision 8078d149 (Inkling-2-Mini-UD-Q2_K_XL.gguf, sha256 b4284160…;
dspark-Inkling-2-Mini-Q8_0.gguf, 3da00cf7…), ggml-org's at e8a2cecf
(mmproj-Inkling-2-Mini-Q8_0.gguf, 23328727…), incoai's Inkling-2-Mini-DFlash2 at 4f9088ea (model.safetensors, 217980ab…) and the
Hugging Face text files at ed40e7da:
mkdir -p hf
for f in config.json tokenizer.json tokenizer_config.json chat_template.jinja generation_config.json; do
curl -fsSL -o hf/$f https://huggingface.co/thinkingmachines/Inkling-2-Mini/resolve/main/$f
done
hf download unsloth/Inkling-2-Mini-GGUF Inkling-2-Mini-UD-Q2_K_XL.gguf dspark-Inkling-2-Mini-Q8_0.gguf \
--local-dir .
hf download ggml-org/Inkling-2-Mini-GGUF mmproj-Inkling-2-Mini-Q8_0.gguf --local-dir .
hf download incoai/Inkling-2-Mini-DFlash2 config.json model.safetensors --local-dir dflash2
python3 -m tools.convert --model hf --recipe inkling2_gguf \
--source gguf=Inkling-2-Mini-UD-Q2_K_XL.gguf --source vision=mmproj-Inkling-2-Mini-Q8_0.gguf \
--source dspark=dspark-Inkling-2-Mini-Q8_0.gguf --source dflash2=dflash2 \
--components text,vision,dspark,dflash2 \
--name Inkling-2-Mini-UD-Q2_K_XL --out Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --device cpu
The conversion took 22 seconds on a rented RTX 3090 host's container.
Running
NInfer-all runs on Linux and Windows with NVIDIA GPUs from Volta to Blackwell. Take a
release build or the Docker image
(cuda13.4, or cuda12.9 for a Tesla V100) from release 2026-11-24.1 on (2026-11-24.7 for --spec dflash2). Earlier builds stop at this
file's drafter (missing logical parameter dspark/fuse) unless --spec none turns it off, and
builds before 2026-11-21.3 refuse its Q8_0 vision tower. Download the file once:
hf download WaveCut/Inkling-2-Mini-UD-Q2_K_XL-NInfer-v3 Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --local-dir models
Each server below speaks the OpenAI and Anthropic protocols on port 8080. The repository's launch
configs (configs/inkling2-mini.ini and configs/inkling2-mini-host.ini, in /opt/ninfer/configs
inside the image) take this file from the command line, which wins over the config's own model
path. DSpark drafts while one request runs; --spec none turns it off and does not load the
drafter. --spec dflash2 --draft-min-p 0.5 loads incoai's DFlash2 drafter instead (0.6 GiB of weights, and
107 MiB for its ring of 2,048 positions and workspace at a 12,288-token context): faster than DSpark on
most of the short greedy requests measured, slower on long documents and at the release's temperature
1.0 (speed).
Every expert on the GPU (images, DSpark, a 64K-token context on a 24 GB card):
ninfer-serve models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config configs/inkling2-mini.ini
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 -w / \
-v "$PWD/models:/models" -v ninfer-cache:/cache ghcr.io/iamwavecut/ninfer-all:cuda13.4 \
serve /models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config /opt/ninfer/configs/inkling2-mini.ini
By the engine's memory plan one sequence of 12,288 tokens takes 10.3 GiB of the GPU with
--spec none and 11.2 GiB with the tower and the drafter (MXFP8 keys and values). On November
21, with F16 keys and values, 8K tokens planned 10.4 GiB with --spec none and 32K tokens with
the tower and the drafter 12.1 GiB: that is a 12 GB card at 8K tokens without the drafter, or a 16 GB card with the tower and the drafter at 32K tokens. Set the context with --max-context.
Only 24 GB RTX 3090s have run this file yet.
Experts in system RAM (smaller cards: 7.5 GiB of pinned host memory for the routed experts, a cache of the most used ones on the GPU, a 32K-token context):
ninfer-serve models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config configs/inkling2-mini-host.ini
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 -w / \
-v "$PWD/models:/models" -v ninfer-cache:/cache ghcr.io/iamwavecut/ninfer-all:cuda13.4 \
serve /models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config /opt/ninfer/configs/inkling2-mini-host.ini
The GPU keeps 1.16 GiB of weights, two 1,104 MiB layer banks and the cache,
which takes the memory left; CPU threads compute a share of the cache misses. On an 8 GB card add
--max-context 12288.
Experts read from the file (little free RAM; the OS page cache keeps what fits):
ninfer-serve models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config configs/inkling2-mini-host.ini --expert-residency disk
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 -w / \
-v "$PWD/models:/models" -v ninfer-cache:/cache ghcr.io/iamwavecut/ninfer-all:cuda13.4 \
serve /models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --config /opt/ninfer/configs/inkling2-mini-host.ini --expert-residency disk
One prompt from the CLI:
ninfer models/Inkling-2-Mini-UD-Q2_K_XL-ninfer-v3.ninfer --prompt "Write a binary search in Rust."
- Reasoning. The model writes every block header itself and decides whether it reasons; its
thinking blocks arrive as
reasoning_content.reasoning_effortsets the template's thinking level (nonetoxhigh). Thinking budgets do not apply: the model has no early-close control. - Tool calls. A call block's JSON (
{"name":...,"args":{...}}) comes back as an OpenAI tool call; with--structured-output, strict tools and a response format beside tools hold under their grammars, and a forcedtool_choiceopens the call block for the model. - Sampling defaults. The release's: temperature 1.0.
Keys and values are MXFP8 by default; --kv-dtype also takes int8, rk8v4, rk4v4 and F16
(bf16 or fp16). Not available for this model: MTP, DFlash and n-gram copy drafts, rotation
scaling (the attention has none), thinking budgets, video, pipeline stages. Several GPUs can divide
the routed experts (--tensor-parallel).
Quality
No task benchmarks were run on this artifact. Unsloth's measurements of the GGUF against UD-Q8_K_XL are above. On a rented RTX 3090, November 21, 2026:
- Perplexity on the first 40,000 bytes of WikiText (
ninfer-perplexity --kv-dtype bf16, 9,718 scored tokens): a mean NLL of 1.901978 (perplexity 6.699135), against 1.859871 (6.422907) for the UD-IQ4_XS artifact, +2.26%. - Image. Asked in Chinese for the number on the mailbox and the sun's side in
examples/cli/messages/image_natural.json(greedy), it answers 24 and the right. - Residency and drafting. With the experts in host memory or read from this file, the 384 greedy tokens of an essay prompt, reasoning included, equal the run with every expert on the GPU byte for byte, as does DSpark's text.
Speed
The CLI's 384-token greedy essay on another RTX 3090 (350 W, PCIe 4.0 x16, a CUDA 13.4.3 build of 603a99ca's engine),
November 24, one run each: 131.3 tok/s with every expert on the GPU and --spec none, 144.5 with
DSpark (1.98 tokens a round) and the tower loaded, 118.3 with the experts in host memory and 117.5
read from this file, all with the same text. The 3090's cache held every expert in the host run, so
that speed does not show a small card's. On November 21 the first RTX 3090 (CUDA 12.8), with the
file converted from the earlier drafter, gave 121.3, 130.3 (1.92 tokens a round), 106.4 and 105.8 tok/s.
With incoai's DFlash2 drafter in this file, release 2026-11-24.7 on a third RTX 3090 (350 W, PCIe 4.0 x16, a Threadripper 3960X host), November 24, the same essay, one run each: 131.2 tok/s with --spec none, 147.3 with DSpark (1.98 tokens a round) and 158.8 with --spec dflash2 --draft-min-p 0.5 (2.80), all with the same text, reasoning included. In UD-IQ4_XS's measurements with ninfer-serve DFlash2 lost to DSpark on documents of 5,753 and 27,145 tokens and at temperature 1.0 (details).
Credits and license
Model, tokenizer, chat template, generation config, vision tower and DSpark drafter: Thinking
Machines, Inkling 2 Mini, under the
Apache License 2.0. The UD-Q2_K_XL quantization and
the GGUF conversion of the drafter: Unsloth, under the Apache License 2.0. The Q8_0 GGUF of the
vision tower: ggml-org. The DFlash2 drafter: incoai, Inkling-2-Mini-DFlash2, under the Apache License 2.0. Attribution notices are collected in NOTICE. This repository
only re-packs those weights into NInfer's container.