A C++/CUDA inference engine for the Qwen3.5 model family (Qwen3.6 and Qwen3.8 27B, Qwen3.6-35B-A3B, their fine-tunes, Ternary Bonsai 2 and 2.5 and the 27B looped by Jason Titus's adapter), Qwen3.8-Flash-Next (also looped by his adapter) and Edge0's latent-MoE models built on it, Gemma 4 26B-A4B and 31B, Recursive's Flint, DeepSeek-V4.1-Flash (also looped by his adapter) and Thinking Machines' looped Inkling 2 Mini, on NVIDIA GPUs from Volta to consumer Blackwell, from 8 GB of memory. It serves the OpenAI, Anthropic and llama.cpp APIs from one GPU, or from up to eight as pipeline stages on Linux. The same chat model answers typed decisions: choice, yes/no and score questions about a state, each option with its probability, through TypeSafe's System One and OpenAI's Decisions APIs.
What's New · Quick start · Supported GPUs · Supported Models · Highlights · Features · Docker · Building · Documentation
NInfer-all continues NInfer through the NInfer-3090 line and carries the work of several forks; CONTRIBUTORS.md credits each of them.
Note
Support GPU testing. Choose a custom amount on GitHub Sponsors to help cover GPU rentals for correctness checks, kernel tuning, and benchmarks. This is a voluntary contribution without sponsor benefits. For compute credits, GPU access, or individual sponsorship terms, contact the maintainer directly.
- 2026-12-03: Looped DeepSeek-V4.1-Flash, published.
- 2026-12-02: Looped Qwen3.8-Flash-Next, published.
- 2026-12-01: W4A4 GGUF experts; faster Inkling 2 prefill; Inkling 2's LoopCD-Logits.
- 2026-11-30: Looped Qwen3.8-27B, published; loop adapters for dense Qwen3.5-core models; Inkling 2's LoopCD-Hidden; typed decisions reasoning on near ties; hot expert placement; faster Inkling 2 UD-Q8_K_XL prefill.
- 2026-11-29: Faster Gemma 4, Flint, Qwen3.6-35B-A3B and GGUF decode.
- 2026-11-28: Up to 64 requests in every family; Qwen3.5-core MTP beside them; request parking; prompts paced to the decode round; router draining; shared prompt passes and prompt spans; faster many-request decode, Bonsai tensor parallelism and Inkling 2 prefill.
- 2026-11-27: Tess-4.5-26B-A3B; up to 64 requests in Qwen3.5-core models; wider sampling ranges; Gumbel-sampled DSpark drafts; a KV host tier; models from Hugging Face; an MTP attention window; expert route bias; Gemma 4 31B DFlash and DSpark drafters; a faster CPU expert share.
- 2026-11-26: Inkling 2 GSQ-RCO artifacts; IQ2_XS in the CPU expert share;
https://MCP servers in the WebUI. - 2026-11-25: Ternary Bonsai 2.5 27B, published; PTQ1_0 ternary blocks; Inkling 2 MXFP8 expert banks.
- 2026-11-24: Inkling 2 DFlash2 drafting and shared loop KV; faster Inkling 2 DSpark drafting and long prompts, and host and disk experts in every MoE family.
- 2026-11-23: vLLM's
bad_words;--no-structured-output-instruction; Inkling 2 on Turing; device profiles for six more GPUs; faster Inkling 2, Flint, Gemma 4, Flash-Next prefill and NVFP4 prompts. - 2026-11-22: POST /shutdown and POST /v1/answer_now; Inkling 2 and Flint KV formats; a disk context cache and session slots in every family; thinking budgets in more families; faster Inkling 2 long contexts.
- 2026-11-21: Inkling 2 Mini and its published artifacts.
- 2026-11-20: Faster GGUF prompts; device profiles for nine more GPUs.
- 2026-11-19: Gemma 4 31B, published; Basalt conversion; Q8PLE n-gram tables; Flash-Next FP16 KV.
- 2026-11-16: System One image boxes and image URLs; Qwen3.8-27B GGUFs with a condensed vocabulary.
- 2026-11-13: Edge0-145B and Edge0-120B, published; ggml's NVFP4 blocks; Flash-Next and Edge0 sharing n-gram tables; DSpine drafting with a Qwen3.8-27B drafter; adaptive MTP; DeepSeek-V4.1 hot Engram rows.
- 2026-11-12: Launch configuration files, one per launch recipe.
- 2026-11-11: Faster prefill and request preparation; disk expert reads from a second drive or into GPU memory; Gumbel-max sampling.
- 2026-11-10: DFlash2 for Qwen3.6-35B-A3B; Flash-Next Unsloth v3.1 artifacts; the hybrid cache with pipelines and tensor parallelism; DeepSeek-V4.1 FP8/FP4 caches and GPU drafter experts;
bf16pKV; faster Flash-Next prefill and decode, cached prompts and context lookup. - 2026-11-07: Flash-Next media prompts in the context cache and MTP drafts for media requests.
- 2026-11-06: Faster Q4_K prompts.
- 2026-11-05: Faster DeepSeek-V4.1 prefill tail, IQ1_M expert prompts and Engram reads.
- 2026-11-04: Flash-Next DFlash2 drafting; DeepSeek-V4.1 Coder and llama.cpp-layout conversion; faster Flash-Next tensor parallelism and host-expert concurrency, tensor-parallel prompts and expert parallelism.
- 2026-11-03: Faster tensor parallelism for Qwen3.5-core models; llama.cpp control vectors and LoRA adapters.
- 2026-11-02: Tensor-parallel peer writes.
- 2026-10-30: Bundled media libraries; pre-Blackwell NVFP4; Qwen3.5 FP32 logits; a faster first request; prefill pacing.
- 2026-10-29: Faster tensor-parallel prefill.
- 2026-10-27: Faster tensor parallelism; Qwen3.5 invariant attention; DeepSeek-V4.1's STQ drafter.
- 2026-10-26: Faster Flash-Next disk experts; tensor parallelism for every dense format and DFlash; expert parallelism in every MoE family; DeepSeek-V4.1 CPU expert share, DSpark drafting and images.
- 2026-10-25: DeepSeek-V4.1-Flash; tensor parallelism for dense Qwen3.5-core models.
- 2026-10-24: Faster Flint.
- 2026-10-23: Flint; native releases for Windows and Debian 13.
- 2026-10-22: Typed decisions; YaRN in every family.
- 2026-10-20: A CPU share of host experts.
- 2026-10-18: The hybrid prefix cache by default in the server.
- 2026-10-17: Pipeline stages across GPU architectures.
- 2026-10-16: Device profiles for 36 more GPUs; Gemma 4 and Qwen MoE experts in host memory or on disk.
- 2026-10-14: Turing: the TITAN RTX and RTX 20 series.
- 2026-10-12: Volta: the Tesla V100.
- 2026-10-11: Gemma 4 26B-A4B with MTP, images and video.
- 2026-10-06: Qwen3.8-Flash-Next.
- 2026-09-26: NInfer-all and Qwen3.8-27B GSQ-RCO IQ3_S.
- 2026-09-23: Ternary Bonsai 2 27B.
Download an artifact (all models) and serve it from the Docker image. The server speaks the OpenAI and Anthropic APIs on http://localhost:8080/v1, answers typed decisions there, and each card picks up its device profile on its own.
hf download WaveCut/Ternary-Bonsai-2-27B-NInfer-v3 Ternary-Bonsai-2-27B-ninfer-v3.ninfer --local-dir models
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 \
-v "$PWD/models:/models" -v ninfer-cache:/cache \
ghcr.io/iamwavecut/ninfer-all:cuda13.4 serve /models/Ternary-Bonsai-2-27B-ninfer-v3.ninfer \
--model-id bonsai2-27b --max-context 262144 --kv-capacity 262144 --kv-dtype rk8v4 \
--gdn-state-fp16 --spec dflash2 --draft-tokens 5
curl http://localhost:8080/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"model":"bonsai2-27b","messages":[{"role":"user","content":"Hello"}]}'
curl http://localhost:8080/v1/systemone -H 'Content-Type: application/json' -d '{
"state": {"ticket": "My card was charged twice for one order."},
"questions": {
"team": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "payments and refunds", "shipping": "deliveries"}},
"urgent": {"type": "noul", "instructions": "Does the customer need a reply within the hour?"}}}'The second request is a typed decision: each answer comes with the probability of every option, read from the model's first-token log probabilities of the labels.
Flags for every model and memory size, from an 8 GB card to the largest context: launch recipes,
each also a configuration file in configs/ that --config
reads.
Without Docker — the same flags on a build
ninfer-serve models/Ternary-Bonsai-2-27B-ninfer-v3.ninfer --model-id bonsai2-27b \
--max-context 262144 --kv-capacity 262144 --kv-dtype rk8v4 --gdn-state-fp16 \
--spec dflash2 --draft-tokens 5
# The same options from the repository's configuration file.
ninfer-serve --config configs/bonsai2-27b-dflash2.ini
# The repository in place of the path: the file is fetched into the Hugging Face cache first.
ninfer-serve WaveCut/Ternary-Bonsai-2-27B-NInfer-v3 --model-id bonsai2-27b \
--max-context 262144 --kv-capacity 262144 --kv-dtype rk8v4 --gdn-state-fp16 \
--spec dflash2 --draft-tokens 5A build listens on 127.0.0.1:8080 unless --host and --port say otherwise. Building shows
how to make one.
NVIDIA GPUs from Volta (compute capability 7.0) to consumer Blackwell (12.0), from 8 GB of memory:
Ternary Bonsai 2 27B runs on an 8 GB RTX 3060 Ti, and Qwen3.8-Flash-Next streams its experts from
host memory or disk through 8 GB. The two Docker images each contain all NInfer targets
for their CUDA version in a shared runtime: CUDA 12.9 includes Volta, and CUDA 13.4 includes Blackwell.
The native release pipeline also assembles a portable Windows or Linux package with both CUDA
backends: ninfer-<os>-x64-cuda12.9-13.4-<commit12>. Its small command executables share one
runtime per CUDA family. The launcher selects CUDA 12 for Volta, CUDA 13 for consumer Blackwell,
and prefers CUDA 13 on overlapping targets when the driver supports it. All selected --devices
must fit one backend. Use --cuda-backend auto|12|13 to select it explicitly. No CUDA Toolkit
installation is needed. Keep backends/ and help/ beside the executables. Linux also needs the
recorded Debian system libraries. --help and --version do not load CUDA.
Every card by name, with what has run on it: Supported GPUs.
Click a section to expand it.
Architectures and builds — six architectures, two CUDA variants
| Architecture | Compute capability | Build | CUDA | Docker tags | Status |
|---|---|---|---|---|---|
| Blackwell: GeForce RTX 50, RTX PRO Blackwell | 12.0 | 120a |
13.1 or newer, not 13.2.0 or 13.2.1 | cuda13.4 |
measured; built-in device profiles |
| Ada Lovelace | 8.9 | 89, or the 86 build |
12.8 or newer | both, native 89 |
measured; built-in device profiles |
| Ampere | 8.6 | 86 (the default) |
12.8 or newer | both | measured (the reference card); built-in device profiles |
| Ampere, A100 class | 8.0 | 80 |
12.8 or newer | both | built-in device profiles; not benchmarked |
| Turing | 7.5 | 75 |
12.8 or newer | both | measured; built-in device profiles |
| Volta | 7.0 | 70 |
12.8 or 12.9 | cuda12.9 |
measured; built-in device profiles |
| Hopper; data-center Blackwell; GB10; Pascal and older | none | no build |
What fits in your GPU memory — measured, from 8 GB to 48 GB
| GPU memory | Runs | Measured on |
|---|---|---|
| 8 GB | Ternary Bonsai 2 27B (24,576 tokens with rk4v4, no MTP); Qwen3.8-Flash-Next and Inkling 2 Mini with their experts in host memory or on disk |
RTX 3060 Ti; RTX 5060 for Inkling 2 Mini |
| 11 GB | Ternary Bonsai 2 27B (196,608 tokens with rk4v4; 139,264 with MTP) |
RTX 2080 Ti |
| 12 GB | Ternary Bonsai 2 27B (266,240 tokens); Qwen3.8-27B GSQ-RCO IQ3_S (8,192 tokens, no MTP); Inkling 2 Mini with its experts in host memory | RTX 3060; also the RTX 5070 for Inkling 2 Mini |
| 16 GB | Gemma 4 26B-A4B Q4_0 (61,440 tokens); Qwen3.8-27B IQ3_S (241,664 tokens); the official Qwen3.8-27B with --embedding-q4 --lm-head-q4; Inkling 2 Mini with its experts in host memory |
Tesla V100-SXM2-16GB; RTX 5080, 5060 Ti, 4080 Super, 4060 Ti and A4000 for Inkling 2 Mini |
| 24 GB | Ternary Bonsai 2.5 27B PTQ1_0 (1,032,192 tokens with rk4v4); Gemma 4 31B Q4_0 (101,376 tokens; 87,040 with MTP); the official Qwen3.8-27B and its MXFP8 tune; Qwen3.6-35B-A3B groupwise-int on an RTX 3090; Flash-Next with every expert on the GPU over two cards; DeepSeek-V4.1-Flash with its experts in host memory or on disk |
RTX 3090, RTX 4090, TITAN RTX |
| 32 GB | Qwen3.6-35B-A3B NVFP4 (Blackwell only) | RTX 5090 |
| 48 GB | Flash-Next Q2_0 with every expert on one card | L40S, RTX PRO 6000 |
Device profiles and limits — how a card gets its kernel routes
- Device profiles. A profile picks the kernel route of every operation and width. The binary
carries profiles measured on 67 GPU models, from the Tesla V100 and RTX 2060 Super to the RTX PRO
6000 (the Profile column of supported GPUs); a built-in profile applies to
the same GPU name, compute capability and SM count. Any other card is calibrated once at first
start, which takes from 12 seconds on a Tesla V100 to about six minutes on the smallest cards,
and the result is stored for later starts;
ninfer-calibratemeasures again after a driver or clock change (device profiles). The70build runs its own routes, so the V100 profiles hold only the GDN prefill switch, the GGUF load schedules and, for the SXM2 32 GB card, the Q8 MoE prefill frontier. - Architecture limits. NVFP4 expert weights need a
120abuild. The Turing and Volta builds replace instructions their GPUs lack and reshape kernels to their shared memory (Turing, Tesla V100). Configure accepts no other target, so Pascal and older, Hopper and data-center Blackwell have no build. - Speed per card. Performance lists the measured rates of every card.
Each name links to its Hugging Face card. hf download REPO FILE.ninfer --local-dir models fetches a file, and the
programs also take the repository itself in place of a path (artifacts from the Hub).
The Bonsai, GSQ-RCO, looped, Flash-Next, Edge0, Gemma 4, Flint, DeepSeek-V4.1-Flash and Inkling 2 artifacts use formats that only this engine reads.
Rows go from the fewest bits per weight to the most.
✓ means the artifact carries the component, — that it does not.
Drafting lists the drafters the artifact carries; a linked one is an artifact of its own.
Flash-Next, Edge0 and DeepSeek-V4.1-Flash models also need an n-gram table, an artifact of its own:
their Notes link it, and N-gram tables lists them all.
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Ternary Bonsai 2 27B | 8.87 | ternary, 2.125 bits | ✓ | MTP DFlash2 Proposal head |
Bonsai-trained MTP head and DFlash2 adapter |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| PTQ1_0 | 6.17 | ternary PTQ1_0, 1.75 bits | ✓ | MTP Proposal head |
PrismML's MTP head; the longest windows |
| PQ2_0 | 7.37 | ternary, 2.125 bits | ✓ | MTP Proposal head |
PrismML's MTP head; the faster prompts |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| GSQ-RCO IQ3_S | 13.99 | GGUF blocks, 3.5 bits | ✓ | MTP DFlash2 Proposal head DSpine |
ISTA-DASLab's GGUF blocks byte for byte with a Q6_K MTP head |
| Official | 19.03 | groupwise-int (Q4/Q5) | ✓ | MTP DFlash2 Proposal head DSpine |
The official artifact, which the reference tables use |
| Abliterated | 19.03 | groupwise-int (Q4/Q5) | ✓ | MTP DFlash2 Proposal head DSpine |
The official recipe |
| Uncensored, HauhauCS Aggressive | 19.03 | groupwise-int (Q4/Q5) | ✓ | MTP DFlash2 Proposal head DSpine |
The tune's MTP head |
| MXFP8-CRACK | 16.96 | groupwise-int | ✓ | MTP Proposal head DSpine |
Without bundled DFlash2 adapter |
| DSpine Drafter (Tencent) | 2.27 | Q8 layers and a BF16 code bridge | — | — | Drafter artifact loaded with --spec dspine --draft-model beside any Qwen3.8-27B artifact |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Loop adapter v3.1.2 | 0.23 | FP32, as published | — | — | An overlay: --loop-adapter attaches it to the official, GSQ-RCO IQ3_S, Ternary Bonsai 2 or 2.5 artifact above; with the official, a mean of 24.75 of 30 on AIME 2025 over four seeds under the release's protocol and grader, against 23.75 for the release's vLLM plugin on the BF16 weights (the base model: 21.75) |
The v3.1 loop adapter runs three passes over layers 24-39 with LoopCD-Hidden on the last; the base
artifact keeps its own drafters, and without --loop-adapter it runs as before
(looped Qwen3.8-27B).
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| NVFP4 | 21.04 | NVFP4 experts, Q8 projections | ✓ | MTP DFlash2 Proposal head |
RedHatAI's NVFP4 experts code for code, incoai's DFlash2 drafter; sm_120a GPUs only |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Coder GSQ-RCO IQ1_M | 30.76 | GGUF blocks | ✓ | MTP DFlash2 |
Expert-pruned coding build, 256 experts per layer; shared-Q8_0 MTP, incoai's Q4_0 DFlash2 drafter; requires an n-gram table (IQ4_NL or FP8) |
| GSQ-RCO Q2_0 | 38.23 | GGUF blocks: ISTA-DASLab's GSQ-RCO 2.4 bits | ✓ | MTP DFlash2 |
Shared-Q8_0 MTP, incoai's Q4_0 DFlash2 drafter; requires an n-gram table (IQ4_NL or FP8) |
| UD-IQ2_XS | 47.43 | GGUF blocks: Unsloth Dynamic v3.1 | ✓ | MTP DFlash2 |
Shared-Q8_0 MTP, incoai's Q4_0 DFlash2 drafter; requires an n-gram table (IQ4_NL or FP8) |
| GSQ-RCO IQ3_S | 54.24 | GGUF blocks: ISTA-DASLab's GSQ-RCO 3.5 bits | ✓ | MTP DFlash2 |
Shared-Q8_0 MTP, incoai's Q4_0 DFlash2 drafter; requires an n-gram table (IQ4_NL or FP8) |
| UD-IQ3_XXS | 54.66 | GGUF blocks: Unsloth Dynamic v3.1 | ✓ | MTP DFlash2 |
Shared-Q8_0 MTP, incoai's Q4_0 DFlash2 drafter; requires an n-gram table (IQ4_NL or FP8) |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Loop adapter | 0.26 | FP32, as published | — | — | An overlay: --loop-adapter attaches it to the Q2_0, IQ3_S, UD-IQ2_XS or UD-IQ3_XXS artifact above; the Coder IQ1_M build, with 256 experts a layer, refuses it |
The merged loop adapter (ckpt_final) runs two passes over layers 16-31; the base artifact keeps
its drafters, and without --loop-adapter it runs as before
(Looped Qwen3.8-Flash-Next).
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Edge0-120B q3k | 34.60 | Q3_K/IQ4_NL latent experts, Q4_0 encoders and decoders | ✓ | MTP | Edge0's release byte for byte, base model's Vision tower; every expert on one 48 GB card; requires an n-gram table (FP8 or IQ4_NL) |
| Edge0-145B q3k | 47.43 | Q3_K/IQ4_NL latent experts, Q8_0 encoders and decoders | ✓ | MTP | Edge0's release byte for byte, base model's Vision tower; experts in host memory or on disk on one 48 GB card; requires an n-gram table (FP8 or IQ4_NL) |
| Edge0-120B NVFP4 | 39.58 | NVFP4 latent experts, Q4_0 encoders and decoders | ✓ | MTP | Edge0's release byte for byte, base model's Vision tower; every expert on one 48 GB card; requires an n-gram table (FP8 or IQ4_NL) |
| Edge0-145B NVFP4 | 54.41 | NVFP4 latent experts, Q8_0 encoders and decoders | ✓ | MTP | Edge0's release byte for byte, base model's Vision tower; experts in host memory or on disk on one 48 GB card; requires an n-gram table (FP8 or IQ4_NL) |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Gemma 4 31B it heretic i1-IQ4_XS | 18.89 | GGUF IQ4_XS blocks | — | DFlash DSpark |
coder3101's heretic (decensored) tune in mradermacher's imatrix GGUF byte for byte; manateelazycat's DFlash drafter for the tune, Hikari07jp's DSpark drafter for the original 31B |
| Gemma 4 26B-A4B it QAT | 14.75 | GGUF Q4_0 blocks | ✓ | MTP | Google's QAT GGUF byte for byte; MTP is Google's QAT assistant |
| Gemma 4 31B it QAT | 17.77 | GGUF Q4_0 blocks | ✓ | MTP | Google's QAT GGUF byte for byte, the dense model; MTP is Google's QAT assistant for it |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Flint UD-Q4_K_XL | 23.38 | GGUF blocks, Q8_0 to IQ3_S | — | — | Unsloth's UD-Q4_K_XL GGUF byte for byte; drafts by context lookup |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| GSQ-RCO IQ1_M | 117.18 | GGUF blocks, IQ1_S to IQ2_S experts | ✓ | DSpark | ISTA-DASLab's GGUF byte for byte; experts in host memory or on disk; vision tower (images); DSpark drafter (--spec dspark) or context lookup; requires the Engram table |
| GSQ-RCO Coder IQ2_XXS | 71.85 | GGUF blocks, IQ1_M to IQ2_XS experts | ✓ | DSpark | ISTA-DASLab's expert-pruned coding build byte for byte, 192 of 384 experts per block; otherwise as the IQ1_M artifact; requires the Engram table |
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Loop adapters | 0.13 each | FP32, as published | — | — | Two overlays, checkpoints r5a-000300 and r5a-000250: --loop-adapter attaches either to the IQ1_M or Coder IQ2_XXS artifact above |
Either checkpoint runs two passes over blocks 24-35, r5a-000250 with LoopCD 0.3; the base
artifact keeps its drafter and vision tower, and without --loop-adapter it runs as before
(Looped DeepSeek-V4.1).
| Model | Size, GiB | Weights | Vision | Drafting | Notes |
|---|---|---|---|---|---|
| Inkling 2 Mini UD-IQ1_M | 8.87 | GGUF blocks, IQ1_S to IQ2_S [gate; up], Q2_0 down banks | ✓ | DSpark DFlash2 |
Unsloth's UD-IQ1_M GGUF byte for byte; otherwise as UD-IQ4_XS |
| Inkling 2 Mini GSQ-RCO IQ2_S | 9.75 | GGUF blocks, IQ1_S to IQ2_S [gate; up], Q2_0 and IQ4_NL down banks; BF16 token table and relative projections | ✓ | DSpark DFlash2 |
ISTA-DASLab's GSQ-RCO IQ2_S GGUF byte for byte; otherwise as UD-IQ4_XS |
| Inkling 2 Mini UD-Q2_K_XL | 10.07 | GGUF blocks, IQ1_S to IQ2_S [gate; up], Q2_0 and NVFP4 down banks | ✓ | DSpark DFlash2 |
Unsloth's UD-Q2_K_XL GGUF byte for byte, its one MXFP4 bank as the same values in Q8_0; otherwise as UD-IQ4_XS |
| Inkling 2 Mini GSQ-RCO IQ3_S | 12.03 | GGUF blocks, IQ1_S to IQ3_S [gate; up], IQ4_NL and Q2_0 down banks; BF16 token table and relative projections | ✓ | DSpark DFlash2 |
ISTA-DASLab's GSQ-RCO IQ3_S GGUF byte for byte; otherwise as UD-IQ4_XS |
| Inkling 2 Mini APEX-I MiniPlus V2.1 | 13.48 | GGUF blocks, IQ3_XXS and IQ3_S experts | ✓ | DSpark DFlash2 |
IsValorum's APEX-I MiniPlus GGUF byte for byte with its Q8_0 vision tower; Unsloth's DSpark drafter; otherwise as UD-IQ4_XS |
| Inkling 2 Mini UD-Q3_K_XL | 14.09 | GGUF blocks, NVFP4 and IQ3 experts | ✓ | DSpark DFlash2 |
Unsloth's UD-Q3_K_XL GGUF byte for byte; otherwise as UD-IQ4_XS |
| Inkling 2 Mini UD-IQ4_XS | 16.05 | GGUF blocks, NVFP4 experts in 20 of 24 layers | ✓ | DSpark DFlash2 |
Unsloth's UD-IQ4_XS GGUF byte for byte; Q8_0 vision tower (images); DSpark drafter, by default for one request at a time, incoai's DFlash2 drafter (--spec dflash2) or context lookup |
| Tess-4.5-26B-A3B NVFP4 | 17.69 | GGUF blocks, NVFP4 experts in 20 of 24 layers | ✓ | DSpark DFlash2 |
Migel Tissera's agentic-coding fine-tune of Inkling 2 Mini, the author's NVFP4 GGUF byte for byte; Q8_0 vision tower; IQ4_NL DSpark drafter |
| Inkling 2 Mini UD-Q8_K_XL | 19.07 | BF16 attention, head and token table; MXFP8 experts in layers 20-23, NVFP4 in the other 20 | ✓ | DSpark DFlash2 |
Unsloth's UD-Q8_K_XL GGUF byte for byte except layers 20-23's BF16 experts, the same values in MXFP8; a card of 24 GB, or host experts; otherwise as UD-IQ4_XS |
Tencent's DSpine drafter for Qwen3.8-27B
(2.27 GiB, Q8 layers and a BF16 code bridge) is an artifact of its own, which
--spec dspine --draft-model loads beside any Qwen3.8-27B artifact.
A model names the table it was converted with by digest; pass the table with --ngram-table.
Every Qwen3.8-Flash-Next and Edge0 model reads either of these two tables. The engine accepts any table of the model's shape, in any row format (another table of the same shape). Perplexity: the first 40 KB of WikiText, INT8 KV, one A40.
| Table | Size, GiB | Rows | Hot-row profile | Named by | Perplexity: Flash-Next Q2_0 · Edge0-120B-q3k |
|---|---|---|---|---|---|
| IQ4_NL | 26.92 | IQ4_NL blocks, 90 bytes a row: the GSQ-RCO and Unsloth releases' table byte for byte | ✓ | Flash-Next builds, Coder | 2.542153 · 5.017691 |
| FP8 | 48.38 | FP8 E4M3 codes and an FP16 scale, 162 bytes a row: Edge0's ple-fp8.gguf codes byte for byte, its one scale in every row |
✓ | Edge0 builds | 2.531971 · 4.964565 |
DeepSeek-V4.1-Flash models read the Engram table, the release's IQ4_NL rows with a hot-row profile
(--ngram-residency ram-hot).
| Table | Size, GiB | Rows | Hot-row profile | Named by |
|---|---|---|---|---|
| Engram | 103.32 | IQ4_NL blocks: the release's rows | ✓ | GSQ-RCO IQ1_M, Coder IQ2_XXS |
The official NInfer artifacts (Qwen3.6-27B, Qwen3.6-35B-A3B and Qwen3.8-27B, groupwise-int and
nvfp4) load too; the documentation map links them. Weight
conversion shows how the Bonsai and
GSQ-RCO artifacts are built.
Ternary Bonsai 2 27B decodes 397 tok/s on an RTX 5090 with DFlash2, and Ternary Bonsai 2.5 fills that card's 1,048,576-token window with every planted code found. Qwen3.8-Flash-Next decodes 138 tok/s with every expert on one RTX PRO 6000, and 96 tok/s with its experts in host memory on one RTX 5090. DeepSeek-V4.1-Flash decodes 52 tok/s on one RTX 5090, 48 on one RTX PRO 6000 and 39 on one RTX 4090 with its 106.7 GiB of experts in host memory. Inkling 2 Mini decodes 182 tok/s on an RTX 5090, 1.4 to 2.8 times llama.cpp's rate on 25 cards, and runs on an 8 GB card with its experts in host memory. Every table of every card is on the performance page.
Click a section to expand it.
Ternary Bonsai 2 27B — up to 397 tok/s, a million tokens of context
Measured in September 2026, one card each, greedy, one request unless the column says otherwise.
| Card | Short chat, DFlash2 7 drafts (tok/s) | After a 261K-token document (tok/s) | 261K-token prompt, to the first token | Largest context, all three codes found | Eight requests at once, MTP 3 (tok/s) |
|---|---|---|---|---|---|
| RTX 3090 | 202 | 90 | 215 s | 970,752 | 551 |
| RTX 4090 | 256 | 123 | 102 s | 958,464 | 824 |
| RTX 5090 | 397 | 218 | 82 s | 978,944 | 1,063 |
| RTX PRO 6000 | 381 | 218 | 78 s | 1,048,576, two of three codes | 1,155 |
The RTX PRO 6000 (96 GB) starts at the engine's ceiling of 1,048,576 tokens with every KV format and drafter. Filled to it, the model misses the code at 90% (about 943K); up to about 880K it found every code on every card.
Ternary Bonsai 2.5 27B — up to 349 tok/s, every code found at 1,048,576 tokens
Measured in November 2026, one card each, greedy, rk8v4 over a 262,144-token window, one request
unless the column says otherwise; the largest context is filled with rk4v4.
| Card | Short chat, PTQ1_0, no drafter (tok/s) | Short chat, PQ2_0, MTP 3 (tok/s) | After a 261K-token document, PQ2_0, MTP 3 (tok/s) | 261K-token prompt, PQ2_0, to the first token | Largest context, all three codes found | Eight requests at once, PQ2_0, MTP 3 (tok/s) |
|---|---|---|---|---|---|---|
| RTX 3090 | 94 | 189 | 95 | 199 s | 1,032,192 (PTQ1_0) | 576 |
| RTX 4090 | 126 | 232 | 110 | 91 s | 1,019,904 (PTQ1_0) | 943 |
| RTX 5090 | 189 | 345 | 170 | 74 s | 1,048,576 | 1,157 |
| RTX PRO 6000 | 188 | 349 | 170 | 73 s | 1,048,576 | 1,237 |
PTQ1_0 (6.17 GiB) decodes one request fastest without a drafter and holds the longest windows; PQ2_0 (7.37 GiB) is the faster one with MTP, with several requests and on prompts. Both decode faster than PrismML's own llama.cpp fork on the RTX PRO 6000, 5090 and 4090 (comparison).
Qwen3.8-27B — up to 237 tok/s, 872,448 tokens of context filled
The official groupwise-int artifact, measured in September 2026, one card each, greedy, one request unless the column says otherwise.
| Card | Short chat, DFlash2 7 drafts (tok/s) | Largest context, all three codes found | Eight requests at once, MTP 3 (tok/s) |
|---|---|---|---|
| RTX 3090 | 118 | 417,792 | 329 |
| RTX 4090 | 149 | 405,504 | 442 |
| RTX 5090 | 236 | 872,448 | 690 |
| RTX PRO 6000 | 237 | 1,048,576, two of three codes | 739 |
- RTX PRO 6000 against RTX 5090. Re-measured in October beside an RTX 5090, both at 600 W, the PRO 6000 came back within 2% of September wherever the drafts accepted the same share. One request's decode is bound by memory bandwidth, and both cards have 1.79 TB/s of GDDR7 (Bonsai 2 without speculation: 167.7 against 170.4 tok/s). The PRO 6000's 188 SMs against 170 show where compute decides: the 261K prompt is 2% faster and eight requests at once 6 to 7% faster (re-check).
- Draft length. DFlash2 with seven drafts is fastest on short answers; after long documents the best count is three to seven. MTP runs up to fifteen drafts and is fastest at three to five.
Qwen3.8-Flash-Next — 138 tok/s with the experts on a GPU, 98 tok/s from host memory
The Q2_0 release (35.9 GiB model and 26.8 GiB n-gram table), one request, greedy, October 2026. Decode of a short answer, in tok/s:
| Card | Every expert on the GPUs | Experts in host memory | Experts on disk, in the page cache | Experts on disk, cold |
|---|---|---|---|---|
| RTX PRO 6000 | 138 (one card) | 55 | 76 | 35 |
| RTX 5090 | 136 (two cards) | 98 | 72 | 38 |
| RTX 4090 | 97 (two cards) | 74 | 47 | 21 |
| RTX 3090 | 90 (two RTX 3090 Ti) | 39 | 28 | 20 |
Prefill of a 4,463-token prompt, in tok/s:
| Card | Every expert on the GPUs | Experts in host memory | Experts on disk, in the page cache | Experts on disk, cold |
|---|---|---|---|---|
| RTX PRO 6000 | 2,939 | 1,297 | 2,024 | 1,000 |
| RTX 5090 | 3,809 | 3,290 | 1,827 | 1,108 |
| RTX 4090 | 3,608 | 1,801 | 1,144 | 558 |
| RTX 3090 | 1,504 | 663 | 503 | 474 |
- The host matters. Host and disk rows depend on the host as much as on the card. The RTX 5090 host had PCIe 5.0 x16, the RTX PRO 6000 and RTX 4090 hosts PCIe 4.0 x16, and the RTX 3090 host PCIe 3.0 x16 and two sockets (the test ran pinned to the GPU's node). The host, disk and cold columns of the three GeForce cards were measured on October 26, the rest on October 5 and 6.
- Prompt spans. With host or disk experts a prompt prefills in spans of up to eight chunks (sixteen for one request at a time), so each layer's missing experts cross the bus once per span. From the CLI with Q2_0 disk experts in the page cache, a 7,680-token prompt prefilled at 1,830 tok/s on the RTX 5090 and the answer decoded at 115 tok/s, against 450 and 32 chunk by chunk (three cards).
- Other releases and cards. IQ3_S, the Coder IQ1_M build and the 8 and 12 GB cards are in the expert placements. Six reasoning requests at once on two RTX 5090s produced 193 tok/s of output with Q2_0.
DeepSeek-V4.1-Flash — 52 tok/s on one RTX 5090, 48 on one RTX PRO 6000 (DSpark: 1.3 to 2.1 times as fast), 34 to 39 on one RTX 4090
ISTA-DASLab's GSQ-RCO IQ1_M GGUF (112.7 GiB, and its 103.0 GiB Engram table), one request, greedy, thinking off, one GPU, October 2026. The routed experts stay in pinned host memory or in the file, the card caches as many as fit, and CPU threads compute a share of each decode call's missing host experts:
| Card | Experts cached on the card | Host experts: short answer (tok/s) | after 8,086 tokens (tok/s) | prefill of 8,086 tokens (tok/s) | Disk experts, page cache warm: short answer (tok/s) |
|---|---|---|---|---|---|
| RTX PRO 6000 | 74% | 48.0 | 45.3 | 1,310 | 37.4 |
| RTX 5090 | 15% | 51.5 | 42.2 | 912 | 16.7 |
| RTX 4090 | 7% | 33.8 | 27.5 | 915 | 9.5 |
| RTX 3090 | 7% | 19.8 | 15.2 | 416 | 6.0 |
The RTX PRO 6000 row is an earlier build that ran prompts chunk by chunk and copied every missing
expert; the others ran on October 26 on hosts with PCIe 5.0 (RTX 5090), 4.0 (RTX 4090) and 3.0
(RTX 3090) links (per card). On an RTX 4090 host with 64 CPU cores
the build decodes at 38.9 and 31.4 tok/s, against 33.5 and 26.6 when it copies every miss
(the CPU share); there Strata 0.2.6 decodes the same GGUF at
34 to 40 tok/s, computing about half the experts on its CPU threads, and prefills at 635 to 690
tok/s (measurements). With host experts the server peaks at 116
GiB of host memory. On October 27, with the release's DSpark drafter (--spec dspark, 3.58 GiB on
the card in the STQ encoding the artifact carries), an RTX PRO 6000 decoded five requests 1.28 to
2.07 times as fast as without it, and an RTX 4090 decoded code and reasoning 1.19 and 1.21 times as
fast, the other three requests 0.85 to 1.02 times, prefilling at plain speed
(the drafter). With --vision it reads images through
the release's vision tower (images).
Inkling 2 Mini — 182 tok/s on an RTX 5090, 1.4 to 2.8 times llama.cpp's decode, from 8 GB
Unsloth's UD-IQ4_XS GGUF with the vision tower and the DSpark drafter (a 15.4 GiB artifact), one request, F16 KV,
November 21, 2026, against llama.cpp on the same GGUF (Unsloth's build b12588-mix-c0c3de8; mainline
llama.cpp does not load it). A prompt of 10,000 tokens and a decode of 128, in tok/s, NInfer-all / llama.cpp:
| Card | Experts | Prefill of 10,000 tokens | Decode |
|---|---|---|---|
| RTX 5090 | on the card | 6,664 / 2,318 | 182.1 / 96.9 |
| RTX 4090 | on the card | 4,537 / 2,307 | 140.1 / 75.0 |
| RTX 3090 | on the card | 2,046 / 1,236 | 112.0 / 59.5 |
| RTX 5080 | in host memory | 3,238 / 1,377 | 116.5 / 41.3 |
| RTX 3060 12 GB | in host memory | 759 / 387 | 48.8 / 24.8 |
| RTX 5060 8 GB | in host memory | 1,074 / 293 | 33.1 / 14.7 |
On cards of 8 to 16 GB the routed experts stay in pinned host memory and the card caches the most used,
while llama.cpp places the model with its own --fit. From disk (--expert-residency disk) the RTX 5060
prefills 591 tok/s and decodes 9.6. While one request runs, the release's DSpark drafter decodes the same
text 1.06 to 1.33 times as fast with the experts on the card. Every card, the drafter and the hosts are in
Inkling 2 Mini's measurements.
With the Docker image, or the same --config on a
native release:
hf download WaveCut/Inkling-2-Mini-UD-IQ4_XS-NInfer-v3 Inkling-2-Mini-UD-IQ4_XS-ninfer-v3.ninfer --local-dir models
# 24 GB and more: every expert on the card, images, DSpark, a 64K-token context.
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
# 8 to 16 GB: the experts in 13.1 GiB of pinned host memory, a 32K-token context
# (the 8 GB RTX 5060 above ran with --max-context 12288).
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.iniClick a section to expand it.
Models and weight formats — Qwen3.5 family, GGUF block formats, Ternary Bonsai 2 and 2.5, loop adapters, Flash-Next, Gemma 4, Flint, DeepSeek-V4.1-Flash, Inkling 2 Mini
- Qwen3.5 family. Dense and MoE (
Qwen3_5ForCausalLM,Qwen3_5MoeForCausalLM) with MTP, DFlash (35B-A3B) and DFlash2 (Qwen3.8-27B, 35B-A3B) drafters, Vision for images and video, andgroupwise-int, FP8, NVFP4 and ternary weights. Native MoE routed experts can stay in pinned host memory or the artifact's files, brought into whole-layer GPU banks with an optional device cache (expert residency). NVFP4 expert banks prefill through W4A4 and need a120abuild. - GGUF block formats. Releases that pick a ggml type per tensor, such as ISTA-DASLab's GSQ-RCO, convert without requantization and multiply their blocks in place. The 3.5-bit Qwen3.8-27B IQ3_S release holds 10.95 GiB of weights instead of 15.9, scores WikiText-2 perplexity 7.071 (the official artifact: 7.286) and decodes at 59.9 tok/s against the official artifact's 40.3 on an RTX 3090 (GGUF block formats).
- Ternary Bonsai 2 27B. PrismML's ternary Qwen3.8-27B
runs from
t2_g128_fp16weights: 2.125 bits per weight, imported without rounding, with the Hadamard rotations fused into the norms and gates and integer activations for its projections. Thebonsai2_27b_ternaryrecipe adds ProCreations' MTP head and DFlash2 adapter and an exact proposal head. - Ternary Bonsai 2.5 27B. PrismML's second ternary release
in both of its forms: PQ2_0 as
t2_g128_fp16, and PTQ1_0 (1.75 bits per weight) as its own 28-byte blocks, multiplied in place by kernels of their own. Both artifacts carry PrismML's MTP head in its Q4_0 blocks, the release's Vision tower and an exact proposal head (measurements). - Loop adapters. Jason Titus's Looped Qwen3.8-27B adapter runs the
core layers 24-39 three times a token with low-rank updates and LoopCD-Hidden on the last pass,
over any Qwen3.8-27B artifact of its geometry: the official and GSQ-RCO IQ3_S weights and Ternary
Bonsai 2 and 2.5.
--loop-adapterattaches the published adapter, an overlay file of its own, to any of them. Every pass keeps its own keys, values and states; the context cache, CUDA Graphs, every drafter, pipeline stages and tensor parallelism run per visit, and--loop-passes,--loop-cd-omegaand--loop-cd-refchange the depth and LoopCD at startup. His Looped Qwen3.8-Flash-Next adapter runs layers 16-31 of Flash-Next twice a token the same way, its router and shared expert updated too, with the experts on the GPUs, in host memory or on disk, and his Looped DeepSeek-V4.1-Flash adapter runs blocks 24-35 of DeepSeek-V4.1-Flash twice, each pass entering its four hyper-connection streams anew. - Qwen3.8-Flash-Next. The 125B-parameter MoE (512 experts, about 6B active) from the GSQ-RCO
GGUF releases, with its experts on the GPUs, in pinned host memory with a GPU cache
(
--expert-residency host) or in the artifact's files read into a GPU cache (--expert-residency disk, under 1 GB of RAM). It serves up to eight requests with prefix reuse, structured output, images and video, and MTP drafting. On two RTX 5090s the Q2_0 release scores 93.3% on AIME 2025 and 86.4% on GPQA-Diamond (Qwen3.8-Flash-Next). - Gemma 4 26B-A4B. Google's QAT Q4_0 GGUF release, imported block for block (13.4 GiB), or a
mixed-format GGUF of it: the sliding-window and full-attention blocks (the latter caching values
only), the dense MLP beside 128 routed experts, every
--kv-dtypeformat, up to eight concurrent requests with prefix reuse through host memory and shared system prompts, tool calls and structured output, images and video through the release's vision tower (on the GPU, streamed from pinned memory or on CPU threads), and Google's multi-token-prediction assistant for speculative decoding. On an RTX 3090 it prefills a 10,000-token prompt at 6,045 tok/s and decodes at 215 tok/s, 190 after 10,000 tokens, against llama.cpp's 4,697, 169 and 152 on the same GGUF; with two drafts a round chat answers decode at 291 tok/s instead of 209 (Gemma 4). - Gemma 4 31B. The dense model from Google's QAT Q4_0 GGUF (16.4 GiB on the GPU) with its own QAT assistant and the vision tower, on one 24 GB card: on an RTX 3090 it holds 101,376 tokens of F16 context and decodes 42 tok/s plainly, 95 to 110 tok/s with two drafts a round (Gemma 4 31B).
- Flint. Recursive's 39.8B coding MoE (2.5B active), from a llama.cpp GGUF such as Unsloth's UD-Q4_K_XL, imported block for block (23.4 GiB): sliding-window and position-free full-attention blocks with learned sinks, 256 routed experts beside a shared one, up to eight concurrent requests with prefix reuse through host memory, the model's own reasoning, GLM-4.7 tool calls, structured output, typed decisions, context-lookup drafting, and experts on the GPU, in pinned host memory or in the artifact's files. On an RTX 5090 it prefills a 10,000-token prompt at 14,656 tok/s and decodes at 348 tok/s, 315 after 10,000 tokens, against llama.cpp's 8,679, 223 and 209 on the same GGUF; on an RTX 3090, with its experts in host memory, at 5,755, 161 and 140 against llama.cpp's 2,553, 80 and 77 with four blocks' experts on the CPU (Flint).
- DeepSeek-V4.1-Flash. DeepSeek's 40-block MoE (384 routed experts, 6 per token) from ISTA-DASLab's GSQ-RCO IQ1_M GGUF, imported block for block, with its Engram table: four-stream hyper-connections, latent attention over a 128-position window and indexer-selected compressed latents with the release's FP8 and FP4 roundings, Engram rows read from the table's file or RAM, up to eight concurrent requests with prefix reuse through host memory, reasoning, DSML tool calls, structured output, typed decisions, images through the release's vision tower, the release's DSpark drafter and context-lookup drafting. Its 106.7 GiB of routed experts stay in pinned host memory or in the artifact's files, read into bounded buffers rather than mapped, and CPU threads compute a share of each decode call's missing host experts. Prompts run block by block in spans of up to 16,384 tokens, so each block's experts cross the bus once per span. On one RTX 4090 with its experts in host memory it decodes at 31.4 to 38.9 tok/s and prefills 8,086 tokens at 938 tok/s; on the same host Strata 0.2.6 decodes at 34 to 40 tok/s and prefills at 635 to 690 (DeepSeek-V4.1-Flash).
- Inkling 2 Mini. Thinking Machines' looped 26.4B MoE (3.4B active per token), the engine's
first looped transformer, from Unsloth's UD-IQ4_XS GGUF (15.4 GiB), its UD-IQ1_M to UD-Q3_K_XL (8.2 to 13.4 GiB), its UD-Q8_K_XL (18.5 GiB),
IsValorum's APEX-I MiniPlus (12.8 GiB) or ISTA-DASLab's GSQ-RCO IQ2_S and IQ3_S (8.4 and 10.6 GiB) imported block for block: 24 stored layers run as 48 visits, the 12 core layers three
times with messages between passes, sliding-window and full attention with a learned distance
table and sinks, depth attention over the earlier layers' states, 128 routed experts, up to eight
concurrent requests with prefix reuse through host memory, the model's own reasoning and tool-call
blocks, structured output, typed decisions, images through the release's vision tower, the
release's DSpark drafter, incoai's DFlash2 drafter (
--spec dflash2) and context-lookup drafting, and experts on the GPU, in pinned host memory or in the artifact's files. On an RTX 3090 it prefills a 10,000-token prompt at 2,031 tok/s and decodes at 111.4 tok/s, 95.9 after 10,000 tokens, against llama.cpp's 1,228, 58.6 and 55.9 on the same GGUF; DSpark decodes greedy answers 1.14 to 1.41 times as fast (Inkling 2 Mini). - CPU share of host and disk experts. With Flash-Next, Gemma 4, Flint, Inkling 2 or native Qwen3.5/3.6
MoE experts off the GPU, or DeepSeek-V4.1-Flash's experts in host memory, CPU threads compute a
share of each decode call's cache misses from host memory while the GPU copies the rest, bit for
bit equal to the GPU's products (
--expert-dma-share auto). The pool takesmin(physical cores, usable CPUs / 2)threads by default, where usable CPUs are the affinity mask bounded by a container's CPU quota (15 threads on a 30-CPU quota);--expert-cpu-threads Nsets another count (common options).
Speculative decoding — MTP, DFlash, DFlash2, DSpark, DSpine, n-gram copying and context lookup
- MTP, DFlash and DFlash2 with 1 to 15 drafts; the artifact's proposal head drafts by default when it stores one. Under MTP and DFlash a sampled request keeps a draft only while it equals the model's own keyed draw, so every emitted token is the model's sample; DFlash2 verifies its proposal distribution by rejection sampling.
- Gemma 4 drafts with Google's multi-token-prediction assistant (
--spec mtp, 1 to 7 drafts), four blocks that read the model's own KV cache; its verification rows are bit for bit plain decode rows, so the output is the one plain decoding gives. - DeepSeek-V4.1-Flash drafts with the release's DSpark drafter (
--spec dspark, 1 to 5 drafts kept while its confidence holds): three blocks that read the backbone's last three blocks' streams. Its verification rows are bit for bit plain decode rows. In beamster's STQ encoding, which the published artifact carries (3.58 GiB on the card), it decodes 1.28 to 2.07 times as fast on an RTX PRO 6000; on an RTX 4090, whose expert cache it shrinks, it decodes code and reasoning 1.19 and 1.21 times as fast and other requests 0.85 to 1.02 times. - Inkling 2 Mini drafts with the release's DSpark drafter (
--spec dspark, 1 to 7 drafts), three non-causal blocks over the target's tapped states and a recurrent head that corrects the target head's logits; without--specit drafts while the Engine serves one request at a time, 3 drafts a round adapting to their survival, and the output is plain decoding's. On an RTX 3090 it decodes greedy answers 1.14 to 1.41 times as fast and sampled ones 0.99 to 1.24 times; over two RTX 3090s with--tensor-parallel, where it also drafts by default, 1.33 to 1.70 and 1.18 times. - A DSpine drafter is an artifact of its own (
--spec dspine --draft-model PATH): 1 to 15 drafts on Qwen3.5-core models and Qwen3.8-Flash-Next, 1 to 7 on Gemma 4, Flint, DeepSeek-V4.1 and Inkling 2. Tencent's drafter for Qwen3.8-27B, converted, decodes a code answer 3.08 times and a prose answer 1.86 times as fast as plain decoding on an RTX 5090, where DFlash2 reaches 3.29 and 2.05 (measurements). - Flint, which has no drafter, DeepSeek-V4.1-Flash without
--specand Inkling 2 draft by context lookup (--lookup-ngram N, 1 to 7 drafts): what followed the last N tokens' earlier occurrence (the one the sequence was already copying while it still matches, else the newest), verified in one pass of decode rows. --adaptive-mtppicks each round's width from measured draft survival and round cost: an MTP round's, and on Qwen3.5-core models a DFlash, DFlash2 or DSpine round's (--draft-tokensor half).- N-gram copy drafting beside the neural drafter (on with
--spec) verifies up to 15 tokens copied from earlier prompt, tool-result or output text (ngram copy proposals).
Context and memory — ten KV formats, up to 1,048,576 tokens, a context cache with a disk tier
- Ten KV formats, from
bf16tork2v4-e8at 216 bytes per token and KV head;rk8v4is the all-round choice,rk4v4holds the native 262,144-token window of Qwen3.8-27B on a 24 GB card, andbf16pkeeps BF16's bits in 784 bytes instead of 1,024 (context and memory). - Up to 1,048,576 tokens of context, four times the native window, with plain RoPE or YaRN
(
--rope-yarn, for Qwen3.5, Qwen3.8-Flash-Next and Gemma 4; Flint's full-attention blocks and Inkling 2's attention carry no rotation and DeepSeek-V4.1's compressed blocks the release's own YaRN, so none of them takes scaling). - A hybrid prefix cache by default, which shares content-addressed KV blocks and sparse state
snapshots across requests on the device and in pinned host memory; or a checkpoint catalog
(
--use-original-prefix-caching) with an optional disk tier that survives restarts (--disk-kv-path,--disk-kv-restore) and endpoint and branch anchors that let an edited or regenerated turn resume where it left the conversation. Gemma 4, Flint, DeepSeek-V4.1, Inkling 2 and Flash-Next keep state images in pinned host memory with a disk tier, a prefix cache file and session slots of their own (Serving). - Precision trades that buy context:
--embedding-q4,--lm-head-q6,--gdn-state-fp16(quality trades). - A token embedding kept in mapped host memory, which frees its VRAM for context with no change to
the output: the server's default for Qwen3.5-family models on Linux whose KV pool takes free
memory and that run without drafting or with more than eight requests
(
--embedding-residency auto), orhostexplicitly.
Serving — OpenAI, Anthropic and llama.cpp APIs, typed decisions, model suspend, several models behind one server
- OpenAI Responses and Chat Completions, Anthropic Messages, llama.cpp's
/completion,/tokenize,/detokenize,/apply-template,/v1/rerank,/metrics,/slotsand/props, streaming, tool calls, structured output through xgrammar (--structured-output), token log probabilities and prompt grafts (HTTP serving). - Typed decisions.
/v1/systemone(TypeSafe's System One API, as llama.cpp, vLLM and Ollama serve it) and/v1/decisions(OpenAI's Decisions API) answer choice, yes/no and score questions about a state with the served chat model: one prompt per question, the answer read from the first token's exact label log probabilities, the state prefilled once and every question run after it as a branch of one read; up to 200 questions, 255 options, Runoff's order-independent choices, a conversation as the state, images and video as data URLs (with--vision), and a margin by which a client escalates near ties (typed decisions). - Model suspend.
--model-suspendlets an idle server give its device memory back without exiting and take it again on the next request, retained conversations included. Ternary Bonsai 2 27B on an RTX 3090: 7.9 GiB down to 0.3 GiB in 0.33 s, back in 1.1 s (model suspend). - Several models behind one server. With
--models-diror a llama.cpp-style--models-preset,ninfer-serveis a router with llama.cpp's model API; with--model-suspenda model sleeps instead of unloading: two 27B models on one 24 GB RTX 3090 swap in 1.8 s instead of an 11.6 s cold load (several models). - Control vectors and direction LoRA adapters. Qwen3.5-core models load llama.cpp control
vectors and the rank-one LoRA adapters that abliteration tools write, such as AtomicChat's for
Ternary Bonsai 2 27B; a request sets adapter scales through llama.cpp's
lorafield (LoRA adapters and control vectors). GET /statsand a monitoring dashboard, request logs with rotation, and llama.cpp's WebUI, built into the Linux packages and the Docker images.
Kernels and devices — route profiles per card, pipeline stages, FP8 and NVFP4 tensor-core routes
- Device route profiles. Each card's measured profile picks the kernel route for every operation and width: built in for the cards in supported GPUs, measured once at first start on any other (device profiles).
- Pipeline stages.
--devices 0,1,...splits the layers over up to eight GPUs on Linux, each stage owning its weights, KV and state; the cards may differ where the build runs on each, such as RTX 30 with RTX 40 cards on the86build (pipeline stages).--tensor-paralleldivides every layer over the devices instead: each holds a share of the GDN heads, of the attention's KV heads with their cache and of the dense FFN rows or MoE experts in any weight format, sized to the card, and reads only those per token (tensor parallelism), Qwen3.8-Flash-Next its GDN key heads, attention KV heads and routed experts. Gemma 4, Flint, DeepSeek-V4.1-Flash and Inkling 2 divide only their routed experts this way. - FP8 A8 and NVFP4 W4A4 tensor-core routes on every
120abuild, an FP4 tensor-core prompt kernel for an NVFP4 KV cache, and programmatic dependent launches on Blackwell.
The release pipeline packages two Debian 13 / Linux x64 images from the native Linux archives. Each image contains one executable with all NInfer architectures supported by its CUDA variant. The image build does not compile NInfer again.
| Image tag | Toolkit | Embedded GPU architectures |
|---|---|---|
ghcr.io/iamwavecut/ninfer-all:cuda12.9 |
CUDA 12.9.2 | sm_70, sm_75, sm_80, sm_86, sm_89 |
ghcr.io/iamwavecut/ninfer-all:cuda13.4 |
CUDA 13.4.3 | sm_75, sm_80, sm_86, sm_89, sm_120a |
Choose cuda12.9 for Volta and cuda13.4 for Blackwell. Both cover Turing, Ampere and Ada.
Both support a layer pipeline (--devices) across different architectures included in that image.
The host needs a compatible NVIDIA driver and the
NVIDIA Container Toolkit.
Windows archives, Linux archives and Docker images use the same two architecture sets:
Each archive and image contains all device images inside its outline. These are the project's build targets, not the complete list of architectures supported by NVIDIA's Toolkits. See the release process for build and verification status.
Commands, volumes and tags — what the container runs
- Tags.
cuda12.9andcuda13.4update after both Linux CUDA builds and both Docker jobs succeed for the currentmaster. Windows builds do not block them. Pin a build withcuda12.9-<commit12>orcuda13.4-<commit12>, wherecommit12is the first 12 hexadecimal characters of its commit SHA. Both images must build before either floating tag moves. The pipeline no longer updateslatestormultitags. - Volumes.
/modelsholds artifacts,/cachethe device profile measured on first start, and/grafts/<model>/optional prompt grafts. - Verification. The new image variants still need a complete build and GPU inference checks. Earlier image tests on RTX 3090 and RTX 5090 do not establish these variants' runtime behavior.
The container's command chooses what runs:
| command | runs |
|---|---|
serve, ninfer, perplexity, calibrate [args] |
that binary with any artifact and flags; serve listens on 0.0.0.0:8080 unless its flags or --config files give host or port. The image keeps the configuration files in /opt/ninfer/configs: docker run -w / ... serve --config /opt/ninfer/configs/<file>.ini |
run <model> [profile] (the default: run qwen38-27b) |
the launcher profiles of scripts/run.sh for the official qwen38-27b and qwen36-35b-a3b, with its NINFER_* overrides (-e NINFER_SPEC=mtp, -e NINFER_CONTEXT=131072, ...) |
download <model> |
scripts/download-model.sh into /models: qwen38-27b, qwen36-27b or qwen36-35b-a3b |
The official Qwen3.8-27B with the measured tuned profile, on http://localhost:8080/v1:
docker run --rm -v "$PWD/models:/models" ghcr.io/iamwavecut/ninfer-all:cuda13.4 download qwen38-27b
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 \
-v "$PWD/models:/models" -v ninfer-cache:/cache \
ghcr.io/iamwavecut/ninfer-all:cuda13.4 run qwen38-27bcompose.yaml wires the GPU, the port and the volumes for the same:
docker compose run --rm ninfer download qwen38-27b, then docker compose up -d.
NINFER_CUDA_TAG=cuda12.9 docker compose up -d selects the Volta-capable image; Compose defaults
to cuda13.4. The published images use their multiarch binary automatically.
docker build -t ninfer . builds a separate Ubuntu image from source (--build-arg ARCHS=86 for one architecture,
--build-arg 'ARCHS=75;86;120a' for the multi-architecture build).
scripts/fetch-media-sources.sh
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=86
cmake --build build --target ninfer-serve ninfer-calibrateThe first command downloads the FFmpeg and dav1d releases that a Linux build compiles in.
CMAKE_CUDA_ARCHITECTURES takes one build from supported GPUs, or a list of them
for a pipeline across cards of different architectures
(several architectures).
Toolchains and options — CUDA versions per target, guides
120a runs the mma.sync compatibility path, which the ternary route needs. CUDA 12.8 or newer builds
75, 80, 86 and 89, and 70 needs CUDA 12.8 or 12.9. A 120a build needs CUDA 13.1 or newer except
13.2.0 and 13.2.1: those releases, 12.8 and 12.9 miscompile sm_120a kernels, and configure refuses them
(CUDA toolkits). The Linux
and Windows guides cover dependencies, the opt-in build options and the
launcher scripts; tests and benchmarks have their own guides.
Apache-2.0, as upstream. The Bonsai artifacts' weights come from PrismML, ProCreations and Qwen, all Apache-2.0; their cards list the notices. The Qwen3.8-Flash-Next artifacts carry the Qwen Community License 1.0 of their model.