Instructions to use WaveCut/Inkling-2-Mini-UD-IQ4_XS-NInfer-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use WaveCut/Inkling-2-Mini-UD-IQ4_XS-NInfer-v3 with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Inkling 2 Mini UD-IQ4_XS, 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-IQ4_XS GGUF with the release's vision
tower in Q8_0 and DSpark drafter, for NInfer-all, the master branch of
iamwavecut/ninfer-all. Every matrix keeps the GGUF's
ggml blocks byte for byte, so nothing is requantized; the engine multiplies the blocks in place.
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 commit 603a99ca or later (release 2026-11-24.1). The
file converted from the earlier drafter layout, 16,494,910,976 bytes, stays at revision ad9f2f11
of this repository, and the earlier one with a BF16 tower, 16,790,806,016 bytes, at 78014001.
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) 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 or Q5_K in 7 layers' projections) |
| MoE: 128 routed experts, 8 per token, sigmoid scores plus a selection bias, SiTU over [gate; up] (width 1152), no shared expert | NVFP4 in 20 of the 24 layers; Q5_K, Q4_K or IQ4_XS [gate; up] banks and Q5_0 or IQ4_NL down banks in the other 4 |
| token table; untied head (201,024 rows, 200,058 scored, soft cap 30) | Q8_0; Q6_K |
| router, convolutions, distance tables, depth-mixing queries, loop controllers, norms, expert scales | FP32 (the GGUF's BF16 values widened 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) |
| tokenizer, chat template, generation config | thinkingmachines/Inkling-2-Mini at revision ed40e7da |
One .ninfer file of 16,595,277,824 bytes (15.5 GiB; SHA-256
d96986947048ed3ac643da0ed6c389e8ab821f66d10e2abf1f4347224b4180db), next to its conversion report,
SHA256SUMS and NOTICE: 1,185 objects, among them 856 FP32, 255 Q8_0, 40 NVFP4, 17 Q6_K,
3 Q5_K, 3 Q5_0, 3 BF16, 1 Q4_K, 1 IQ4_XS and 1 IQ4_NL tensors.
Conversion command, from the repository's tree at 603a99ca, with Unsloth's GGUF repository at
revision 8078d149 (Inkling-2-Mini-UD-IQ4_XS.gguf, sha256 374970bfโฆ;
dspark-Inkling-2-Mini-Q8_0.gguf, 3da00cf7โฆ), ggml-org's at e8a2cecf
(mmproj-Inkling-2-Mini-Q8_0.gguf, 23328727โฆ) 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-IQ4_XS.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 .
python3 -m tools.convert --model hf --recipe inkling2_gguf \
--source gguf=Inkling-2-Mini-UD-IQ4_XS.gguf --source vision=mmproj-Inkling-2-Mini-Q8_0.gguf \
--source dspark=dspark-Inkling-2-Mini-Q8_0.gguf --components text,vision,dspark \
--name Inkling-2-Mini-UD-IQ4_XS --out Inkling-2-Mini-UD-IQ4_XS-ninfer-v3.ninfer --device cpu
At that revision Unsloth's repository holds the quantization in two layouts: the root file,
llama.cpp's (24 blocks), and the earlier one (Old_Support/Inkling-2-Mini-UD-IQ4_XS.gguf_file, 48
unrolled blocks in its metadata). Both convert to the same payload byte for byte; the published
file came from the root one, in 22 seconds on a rented RTX 3090 host's container. The converter
refuses the earlier drafter file, dspark-Inkling-2-Mini-Q8_0_Old.gguf.
--source vision=mmproj-BF16.gguf (Unsloth's) gives a file with the BF16 tower, 295,895,040 bytes
larger.
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. 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-IQ4_XS-NInfer-v3 Inkling-2-Mini-UD-IQ4_XS-ninfer-v3.ninfer \
--local-dir models
Each server below speaks the OpenAI and Anthropic protocols on port 8080, with the repository's
launch configs (configs/inkling2-mini.ini and configs/inkling2-mini-host.ini, in
/opt/ninfer/configs inside the image). DSpark drafts while one request runs; --spec none turns
it off and does not load the drafter.
Every expert on the GPU (24 GB and more: images, DSpark, a 64K-token context):
ninfer-serve --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 --config /opt/ninfer/configs/inkling2-mini.ini
Experts in system RAM (8 to 16 GB cards: 13.1 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 --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 --config /opt/ninfer/configs/inkling2-mini-host.ini
On an 8 GB card add --max-context 12288: an RTX 5060 cached 2.2 GiB of experts so and decoded
the essay at 33.6 tok/s.
Experts read from the file (little free RAM; the OS page cache keeps what fits; 8.8 tok/s on the RTX 5060):
ninfer-serve --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 --config /opt/ninfer/configs/inkling2-mini-host.ini --expert-residency disk
One prompt from the CLI, or four concurrent requests:
ninfer models/Inkling-2-Mini-UD-IQ4_XS-ninfer-v3.ninfer --prompt "Write a binary search in Rust."
ninfer-serve --config configs/inkling2-mini.ini --max-context 32768 --max-concurrency 4
- Memory. With every expert on the GPU: 14.6 GiB of weights (15.1 GiB with the DSpark drafter)
and 1.2 GiB of workspace. One sequence of 12,288 tokens takes 418 MiB of MXFP8 keys and values
(16.5 KiB a token in the 8 full-attention visits), sliding-window rings and convolution
histories, and plans 16.3 GiB of the GPU, 16.9 GiB with the drafter. On November 21, with F16
keys and values, one 64K-token sequence with the BF16 vision tower left 3.1 GiB of an RTX 3090
free; the Q8_0 tower's weights take 0.28 GiB less and its workspace 32 MiB more an image.
--expert-residency hostkeeps 1.57 GiB of weights (2.04 GiB with the drafter), two 1,337 MiB layer banks and a cache of the most routed experts on the GPU, seeded from a built-in routing profile, and pins 13.1 GiB of host memory;diskreads the experts from this file through the OS page cache. - 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. Its numerics were checked against two references:
- An FP64 forward of the model over the GGUF's exactly decoded blocks
(
tools/reference/inkling2.py): on 1,150 WikiText tokens (past the 1,024-position window) NInfer's mean NLL is 1.560199 against 1.559721 (+0.03%). - llama.cpp b12588 on the same GGUF: perplexity over the six 4,096-token windows of 120 KB of WikiText both score alike gives a mean NLL of 1.733757 against llama.cpp's 1.734757 (-0.06%), per window -0.30% to +0.08%. On 40 KB of WikiText, experts on the GPU, in host memory or read from disk give the same perplexity, 6.415115.
The Q8_0 vision tower decodes its blocks to BF16 rows and keeps its inputs BF16. Its rows against
an FP64 reference of the tower over the mmproj's exactly decoded blocks, a 40 x 26-patch image:
worst row cosine 0.999283, relative RMS error 0.93% (the earlier BF16 tower against its own
reference: 0.999172 and 0.90%). Against the BF16 tower's reference the Q8_0 tower scores 0.998210
and 1.66%; on examples/cli/messages/image_natural.json (greedy) both answer the mailbox's 24 and
the sun on the right, and the Q8_0 tower's text departs from the BF16 tower's 324 characters into
the reasoning. With 7 drafts a round over 256 greedy tokens NInfer's DSpark drafter had 138 of 797
drafts accepted (November 24; 137 of 804 with the earlier drafter file on the same card). On
November 21, with the earlier file, NInfer's had 133 of 832 and llama.cpp's implementation 133 of
850.
Speed
ninfer_bench against llama.cpp b12588's llama-bench on the same GGUF (flash attention, F16 KV),
one sequence, three repetitions, in tok/s, on an RTX 3090 at 350 W (CUDA 12.8), experts on the GPU,
November 21:
| Engine | Prefill 2,048 | Prefill 10,000 | Decode 128 | Decode after 10,000 |
|---|---|---|---|---|
| NInfer | 2,659 | 2,031 | 111.4 | 95.9 |
| llama.cpp | 1,301 | 1,228 | 58.6 | 55.9 |
The CLI on another RTX 3090 at 350 W (PCIe 4.0 x16, a CUDA 13.4.3 build of 603a99ca's engine), November 24,
384 tokens a request, reasoning first, one run each:
| Request | Plain decoding | DSpark (default) |
|---|---|---|
| essay, greedy | 119.1 | 127.9 |
| Python task, greedy | 119.9 | 175.3 |
| question about a 5,542-token document, greedy | 114.2 | 143.8 |
| essay, temperature 1.0, two seeds | 118.1, 119.1 | 124.2, 123.6 |
| Python task, temperature 1.0 | 118.0 | 160.3 |
Every DSpark run's text equals its plain-decoding twin's. Release 2026-11-23.11 with the file
converted from the earlier drafter, alternating with these runs on the same card, gave 128.8,
172.5, 141.5, 122.3 and 125.8, and 159.4 tok/s with DSpark. With the experts in pinned host memory,
whose device cache on the 3090 holds all of them, the greedy essay decodes at 109.4 tok/s (121.0
with DSpark); read from this file through a warm page cache, at 109.2 (120.9). On the first card
(November 21) four concurrent greedy chat requests decoded 198.1 tok/s together, and llama.cpp's
server with the earlier drafter file (--spec-type draft-dspark, 7 drafts) decoded the greedy
essay at 37.0 tok/s against its 57.3 without it.
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-IQ4_XS quantization and
the GGUF conversions of the tower and the drafter: Unsloth, under the Apache License 2.0.
Attribution notices are collected in NOTICE. This repository only re-packs those
weights into NInfer's container.
- Downloads last month
- 16,177
Model tree for WaveCut/Inkling-2-Mini-UD-IQ4_XS-NInfer-v3
Base model
thinkingmachines/Inkling-2-Mini