Inkling 2 Mini APEX-I MiniPlus V2.1, 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 IsValorum's APEX-I MiniPlus V2.1 GGUF with its Q8_0 vision tower, Unsloth's GGUF of the release's 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 commit 603a99ca or later (release 2026-11-24.1). The file converted from the earlier drafter layout, 13,740,465,920 bytes, stays at revision 5e169db7 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, 13,840,832,768 bytes, stays at revision 0350722c.

At 12.9 GiB it is 2.6 GiB smaller than the UD-IQ4_XS artifact, whose routed experts are mostly NVFP4. By the engine's memory plan every expert fits on a 16 GB card beside a 12K-token context; no 16 GB card has run it yet.

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 Q4_K query, key, value and distance projections; Q4_K output projections (Q6_K in layers 5, 11, 17 and 23); Q8_0 gates
MoE: 128 routed experts, 8 per token, sigmoid scores plus a selection bias, SiTU over [gate; up] (width 1152), no shared expert IQ3_XXS [gate; up] and IQ4_NL down banks in the core layers, IQ3_S and Q5_0 in the prelude and the coda
token table; untied head (201,024 rows, 200,058 scored, soft cap 30) Q4_K; Q6_K
router, convolutions, distance tables, depth-mixing queries, loop controllers, norms, expert scales, sink and dynamic-tap projections FP32 (the GGUF's F32, BF16 and Q8_0 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 the repository'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 14,476,376,832 bytes (13.5 GiB; SHA-256 0a0024af9bc43759289795121cf4057086070d04ba36568382ef7ba599f1c0ee), next to its conversion report, SHA256SUMS and NOTICE: 1,254 objects, among them 816 FP32, 179 Q8_0, 117 Q4_K, 48 BF16, 36 Q8_G32, 12 IQ3_S, 12 IQ3_XXS, 12 Q5_0, 12 IQ4_NL and 5 Q6_K tensors.

Conversion command, from the repository's tree at release 2026-11-24.7 or later, with IsValorum's repository at revision eb6b81fd (Inkling-2-Mini-APEX-I-MiniPlus-V2.1.gguf, sha256 1b86d2e8โ€ฆ; mmproj-Inkling-2-Mini-Q8_0.gguf, fd84b797โ€ฆ), Unsloth's at 8078d149 (dspark-Inkling-2-Mini-Q8_0.gguf, 3da00cf7โ€ฆ; IsValorum's repository has no drafter), 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 IsValorum/Inkling-2-Mini-APEX-I-MiniPlus-V2.1-GGUF \
  Inkling-2-Mini-APEX-I-MiniPlus-V2.1.gguf mmproj-Inkling-2-Mini-Q8_0.gguf --local-dir .
hf download unsloth/Inkling-2-Mini-GGUF dspark-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-APEX-I-MiniPlus-V2.1.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-APEX-I-MiniPlus-V2.1 \
  --out Inkling-2-Mini-APEX-I-MiniPlus-V2.1-ninfer-v3.ninfer --device cpu

The conversion took 24 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 its 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-APEX-I-MiniPlus-V2.1-NInfer-v3 \
  Inkling-2-Mini-APEX-I-MiniPlus-V2.1-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 (24 GB and more: images, DSpark, a 64K-token context):

ninfer-serve models/Inkling-2-Mini-APEX-I-MiniPlus-V2.1-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-APEX-I-MiniPlus-V2.1-ninfer-v3.ninfer \
  --config /opt/ninfer/configs/inkling2-mini.ini

On a 16 GB card add --max-context 12288: one such sequence plans 13.7 GiB of the GPU with --spec none and 14.3 GiB with the drafter (MXFP8 keys and values); the vision tower adds its weights and an image's workspace. On November 21, with F16 keys and values, 8K tokens planned 13.8 and 14.7 GiB with the tower, 32K tokens 14.5 and 15.5 GiB. No 16 GB card has run this file yet.

Experts in system RAM (8 to 16 GB cards: 10.9 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-APEX-I-MiniPlus-V2.1-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-APEX-I-MiniPlus-V2.1-ninfer-v3.ninfer \
  --config /opt/ninfer/configs/inkling2-mini-host.ini

The GPU keeps 1.16 GiB of weights, two 1,002 MiB layer banks and the cache; CPU threads compute a share of the cache misses. On an 8 GB card add --max-context 12288 (the UD-IQ4_XS artifact, with larger banks, ran so on an RTX 5060; this one has not run on a card that small).

Experts read from the file (little free RAM; the OS page cache keeps what fits):

ninfer-serve models/Inkling-2-Mini-APEX-I-MiniPlus-V2.1-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-APEX-I-MiniPlus-V2.1-ninfer-v3.ninfer \
  --config /opt/ninfer/configs/inkling2-mini-host.ini --expert-residency disk

One prompt from the CLI:

ninfer models/Inkling-2-Mini-APEX-I-MiniPlus-V2.1-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_effort sets the template's thinking level (none to xhigh). 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 forced tool_choice opens 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. On a rented A40, 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.870942 (perplexity 6.494411), against 1.859871 (6.422907) for the UD-IQ4_XS artifact, +0.60%.
  • The vision tower 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%. Against the reference of the release's BF16 tower: 0.998210 and 1.66%. The tower decodes the Q8_0 blocks to BF16 rows and keeps its inputs BF16. Asked in Chinese for the number on the mailbox and the sun's side in examples/cli/messages/image_natural.json, it answers 24 and the right.
  • Residency. With the experts in host memory or read from this file, the 384 greedy tokens of an essay prompt equal the run with every expert on the GPU byte for byte, as does DSpark's text.

Speed

ninfer_bench, one sequence, F16 KV, three repetitions, on a rented A40 (300 W, PCIe 4.0 x16, CUDA 12.8), every expert on the GPU, November 21, in tok/s:

Prefill 2,048 Prefill 10,000 Decode 128 Decode after 10,000
2,776 2,128 104.3 90.2

The UD-IQ4_XS artifact gave 2,432, 1,897, 85.3 and 75.5 on another A40 host. The CLI's 384-token greedy essay on a third A40 (300 W, PCIe 4.0 x16, a CUDA 13.4.3 build of 603a99ca's engine), November 24, one run each: 103.0 tok/s with --spec none, 110.2 with DSpark (1.66 tokens a round), 94.1 with the experts in host memory and 93.9 read from this file, all with the same text; UD-IQ4_XS there 89.7 and 107.0 (2.06 tokens a round). The A40's cache held every expert in the host and disk runs, so their speeds do not show a small card's. On November 21 the first A40, with the file converted from the earlier drafter, gave 103.1 and 115.6 (1.69 tokens a round), 92.4 and 93.0 tok/s.

With incoai's DFlash2 drafter in this file, release 2026-11-24.7 on an RTX 3090 (350 W, PCIe 4.0 x16, a Threadripper 3960X host), November 24, the same essay, one run each: 132.6 tok/s with --spec none, 135.8 with DSpark (1.62 tokens a round) and 141.5 with --spec dflash2 --draft-min-p 0.5 (2.39), all with the same text, reasoning included. UD-IQ4_XS there gave 119.0, 130.7 (1.99) and 134.8 (2.82). 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 APEX-I MiniPlus V2.1 quantization and its Q8_0 vision tower: IsValorum, under the Apache License 2.0. The GGUF conversion of the drafter: Unsloth, under the Apache License 2.0. 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
2,118
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for WaveCut/Inkling-2-Mini-APEX-I-MiniPlus-V2.1-NInfer-v3