Instructions to use WaveCut/Inkling-2-Mini-UD-Q8_K_XL-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-Q8_K_XL-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-Q8_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-Q8_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 or BF16 words byte for byte except the routed experts of layers 20-23: every one of their
BF16 values is an MXFP8 value, so they are stored as MXFP8 rows (E4M3 codes with one E8M0 scale per
32 values) that hold each value exactly. Nothing of the model is requantized; the engine multiplies the
stored rows 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 MXFP8 expert banks need a release after 2026-11-25.3 (earlier builds stop at unknown tensor format: mxfp8). The same file with the banks in BF16, 24,421,141,504 bytes, which releases from 2026-11-24.7 on run, stays at revision 8063174c of this repository; the file without the DFlash2 drafter, 23,785,597,440 bytes, at c1a1be59, and the file converted from the earlier drafter layout, 23,685,230,592 bytes, at b62d6caf.
UD-Q8_K_XL is Unsloth's largest quantization and the reference of its KL measurements: BF16 everywhere except the routed experts of layers 0-19, which are NVFP4. 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 | BF16 in every layer |
| MoE: 128 routed experts, 8 per token, sigmoid scores plus a selection bias, SiTU over [gate; up] (width 1152), no shared expert | [gate; up] and down banks NVFP4 in layers 0-19, MXFP8 in layers 20-23 (the GGUF's BF16 values, each held exactly) |
| token table; untied head (201,024 rows, 200,058 scored, soft cap 30) | BF16; BF16 |
| 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 20,471,680,000 bytes (19.07 GiB; SHA-256
fcde98ae9d2cebe3c167d6256784e4bd2f7b568d3ee54bd8c02315872a84bbaa), next to its conversion report, SHA256SUMS and NOTICE: 1,246 objects: 856 FP32, 155 Q8_0, 146 BF16, 40 NVFP4, 36 Q8_G32 and 8 MXFP8 tensors.
Conversion command, from the repository's tree at a release after 2026-11-25.3, with Unsloth's GGUF
repository at revision 8078d149 (Inkling-2-Mini-UD-Q8_K_XL.gguf, sha256 2da51788โฆ;
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-Q8_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-Q8_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-Q8_K_XL --out Inkling-2-Mini-UD-Q8_K_XL-ninfer-v3.ninfer --device cpu
The conversion took 139 seconds on a rented RTX 3090 host's container. The converter checks every value of layers 20-23's banks before it writes them as MXFP8.
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 the first release after 2026-11-25.3 on. Earlier builds stop at this
file's MXFP8 expert banks (unknown tensor format: mxfp8); releases from 2026-11-24.7 on run the
BF16 file at revision 8063174c. Download the file once:
hf download WaveCut/Inkling-2-Mini-UD-Q8_K_XL-NInfer-v3 Inkling-2-Mini-UD-Q8_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; a card of 24 GB):
ninfer-serve models/Inkling-2-Mini-UD-Q8_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-Q8_K_XL-ninfer-v3.ninfer --config /opt/ninfer/configs/inkling2-mini.ini
By the engine's memory plan on an RTX 3090, with MXFP8 keys and values, one sequence of 12,288
tokens takes 19.3 GiB of the GPU with --spec none, and 20.2, 20.6 and 21.2 GiB at 12,288, 32,768
and 65,536 tokens with the tower and the drafter; the 64K config started with 1.69 GiB free. Set the
context with --max-context.
Experts in system RAM (smaller cards: 14.6 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-Q8_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-Q8_K_XL-ninfer-v3.ninfer --config /opt/ninfer/configs/inkling2-mini-host.ini
The GPU keeps 3.07 GiB of weights (3.54 with the drafter), two layer banks of 2,005 MiB together and the cache, which takes the memory left: on a 24 GB card at 32K tokens it holds every expert. CPU threads compute no share of this file's cache misses: a model with BF16 matrices runs every call on BF16 and MXFP8 rows, which the CPU products do not read; the GPU copies every miss.
Experts read from the file (little free RAM; the OS page cache keeps what fits):
ninfer-serve models/Inkling-2-Mini-UD-Q8_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-Q8_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-Q8_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 measures its other quantizations' KL divergence against this one. On a rented RTX A6000, 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.857855 (perplexity 6.409969), against 1.859871 (6.422907) for the UD-IQ4_XS artifact, -0.11%. - 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.
- MXFP8 banks. The perplexity and image answers above were measured with the BF16 banks of
revision
8063174c. The MXFP8 rows reproduce those banks' products bit for bit: on November 25 this file and the BF16 one gave the same 384-token essay with the experts on the GPU, in host memory and read from the file, with DSpark, with DFlash2, with each KV format and on two cards dividing the experts.
Speed
The CLI's 384-token greedy essay (--spec none) on a rented RTX 3090 of 24 GB (370 W, PCIe 4.0 x16,
a CUDA 13.4.3 build of the branch that added the MXFP8 banks), November 25, one run each: 81.7 tok/s
with every expert on the GPU, 76.5 with the experts in pinned host memory and 76.2 read from this
file, all with the same text; the cache held every expert. The BF16 file of revision 8063174c gave
79.7, 70.8 and 62.0 there with master's build of that day, its cache holding 2,341 of the 3,072
experts. Another RTX 3090 of the host (420 W, PCIe 3.0 x16) decoded it at 81.3 tok/s with DSpark
(1.56 tokens a round) and 76.9 with --spec dflash2 --draft-tokens 7 (2.41).
The measurements below are of the BF16 file. On November 24 a rented RTX A6000 (300 W, PCIe 4.0
x16, a CUDA 13.4.3 build of 603a99ca's engine) gave 71.3 tok/s with every expert on the GPU and
--spec none, 90.2 with DSpark (2.08 tokens a round) and the tower loaded, 68.2 with the experts
in host memory and 67.8 read from the file, all with the same text. UD-IQ4_XS, whose attention is
mostly Q8_0, head Q6_K and experts NVFP4 or 4- and 5-bit blocks, decoded the essay there at 105.8
tok/s (124.7 with DSpark). On November 21 another RTX A6000 (CUDA 12.8), with the file converted
from the earlier drafter, gave 67.3, 72.9 (1.76 tokens a round), 63.8 and 63.5 tok/s; a 9,742-token
prompt (--spec none) prefilled there at 1,710 tok/s, then decoded at 61.6 tok/s.
With incoai's DFlash2 drafter in the BF16 file, release 2026-11-24.7 on an RTX 3090 of 24 GB (350 W, PCIe 4.0 x16, a Threadripper 3960X host) with the experts in pinned host memory, November 24, the same essay, one run each: 71.3 tok/s with --spec none, 87.4 with DSpark (2.08 tokens a round) and 95.4 with --spec dflash2 --draft-min-p 0.5 (3.01), all with the same text, reasoning included. The device cache of 13.3 GiB served 99.1% of the routes in each run and copied 7.9, 12.1 and 13.5 GiB to the card. 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-Q8_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.
- Downloads last month
- 1,855
Model tree for WaveCut/Inkling-2-Mini-UD-Q8_K_XL-NInfer-v3
Base model
thinkingmachines/Inkling-2-Mini