Skip to content
Projects

About

C++/CUDA single-GPU inference engine for Qwen3.8 (incl. Qwen3.8-Flash-Next with offloaded experts) on the RTX 5090; grew from NInfer

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
+2
in 7 days
+10
in 15 days
+32
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Infernix

Fast local agents on one RTX 5090: leading Qwen models and Inkling 2 Mini, Windows first.

Infernix is a C++/CUDA inference engine for running agentic workloads on one NVIDIA RTX 5090. It began as a fork of NInfer by Neroued and reads NInfer's .ninfer artifacts as well as its own .infernix files.

AI disclaimer: everything added since the fork from NInfer, including most of this README, was written with AI (mostly Claude Opus 5.5 and Qwen3.8-27B running on Infernix). It is likely to be neither complete nor entirely accurate. This is hobby development.

Why Infernix

  • Made for one GPU and agent work. Built and tuned for the RTX 5090 (and the similar RTX PRO 6000 Blackwell) to run coding and agent workloads on the leading local models: Qwen3.8-Flash-Next (its experts stream from system RAM), Qwen3.8-27B, Qwen3.6, Ornith-1.5-122B and Thinking Machines' Inkling 2 Mini.
  • Windows first. Native Windows builds and a release zip, measured on Windows 11 and designed around Windows' GPU memory rules: it can use the VRAM the per-process budget holds back (--vram-past-budget), pins experts within Windows' page-locking limit and opts out of power throttling. Linux and WSL2 build too.
  • A launcher. A web interface to download, configure, load and switch models, with one OpenAI- and Anthropic-compatible endpoint for all of them and live statistics.
  • A prefix cache that pays off on real work. Built for Qwen's linear-attention layers (64-token KV blocks plus recurrent-state snapshots) across VRAM, RAM and disk, and kept across restarts. In an agentic coding replay it served 84-91 % of the prompt tokens, the most or tied for the most in every comparison, and Infernix reached the first token in 1.7-2.6 s on average against 2.4-13.3 s for the other engines. In agent work that counts for more than raw tok/s.
  • Fast by default. --spec auto loads the drafter measured fastest for each model (DFlash2, DSpark or MTP) and --draft-tokens auto sets the draft length round by round; --max-context auto sizes the context to your GPU, and the launcher starts every model from its recommended settings.
  • Quality kept. By default activations stay at the precision the checkpoint specifies, every routed expert runs and every logit is computed. Measured against the exact model, Infernix's output is as close as llama.cpp's and NInfer's (on Inkling 2 Mini closer than NInfer's in prompts, up to 5 % further in decode) and closer than vLLM's decode and Basalt's on Flash-Next. On Inkling 2 Mini, whose checkpoint gives its experts 4-bit activations, llama.cpp and Basalt decode about 20 % closer with 8 bits (quality). Lower-precision speed options are opt-in.
  • Many KV-cache formats. Rotated INT8 (recommended), K8V4, FP8, NVFP4, the 2-4-bit VQ2 and K4V2, BF16, and bf16p: BF16 packed losslessly into about 12 bits a value, so the same memory holds 1.31 times the tokens with exactly BF16's output.
  • The APIs agents use. OpenAI Chat Completions and Responses and Anthropic Messages, streaming, with the options Claude Code, Codex, Qwen Code, Zed and GitHub Copilot send; recovery of broken tool calls and deferred tools for large MCP catalogs; constrained output (JSON Schema, GBNF, regex, choice); /v1/decide for decisions from token probabilities, queued ahead of generating requests; images and PDFs; and runtime LoRA adapters, such as Harness Hub's for Pi, OpenCode and Hermes on the Qwen3.8-27B.
  • Dynamic ablation. Removes refusals only in the conversations that meet them (Inkling 2 Mini for now, with more models to come). Every conversation starts on the stock model; a small gate reads the model's own hidden states at the end of each of your messages and moves a conversation to the refusal-cut model when a message needs it, and everything else runs on the stock model. In its checks none of 100 ordinary requests and none of the 132 requests of a coding-agent session were cut, and 84 of 87 harmful test prompts were (and about 40 of 100 harmless prompts written to look harmful). The requests it left alone took no measurably longer to the first token (dynamic ablation).
  • Open. Apache 2.0 and developed in the open. Issues and pull requests are welcome.

At a glance

One RTX 5090 under Windows 11, every engine at its latest release with its own recommended settings and drafter (2026-11-27/28). The agentic workload replays coding-agent sessions two requests at a time; the other columns are one request at about 8K to 250K tokens of context (230K on the 27B).

Model Infernix vs Agentic workload, wall time Agentic workload, mean first token Decode, one request
Qwen3.8-Flash-Next, NVIDIA NVFP4 Strata 5.0 vs 11.6 min 2.6 vs 12.6 s Infernix 4-11 % faster
Basalt 5.0 vs 6.4 min 2.6 vs 5.7 s Basalt 16 % faster at 8K, level from 128K
Qwen3.8-Flash-Next, IQ3_S GGUF Strata 4.8 vs 9.1 min 2.4 vs 10.1 s level (−4 to +1 %)
Basalt 4.8 vs 4.4 min 2.4 vs 4.2 s Basalt 1.2-1.6× faster
llama.cpp 4.8 vs 19.9 min 2.4 vs 13.3 s Infernix 4.6-7× faster
Qwen3.8-27B NVFP4 NInfer 11.3 vs 22.5 min 1.7 vs 4.6 s Infernix 14-48 % faster with drafting, level without
Ignis level: 11.3 vs 11.4 min 1.7 vs 2.4 s Ignis 3 % faster at 8K, Infernix 2-10 % from 128K

With one long prompt, Infernix reaches the first token sooner than Strata and Basalt on NVFP4 (1.2-1.5×), NInfer (1.8-2.5× from 128K) and llama.cpp (5.5-6×); on IQ3_S, Basalt (1.25-1.3×) and Strata (4-6 %) are sooner from 128K, and Ignis is sooner at every length (1.3× from 128K). On the IQ3_S GGUF, Strata, Basalt and llama.cpp compute with 8-bit activations and Basalt takes its logits from a 2-bit copy of the output head, where Infernix keeps 16-bit activations and the GGUF's own head. Ignis ran at its shipped defaults, which compute the KV cache, prompt attention and some weights with fewer bits. Full tables: Benchmarks.

Get started

With the launcher (recommended)

The launcher's dashboard: the loaded model, its inference gauges and the computer's load

  1. Download infernix-<version>-windows-x64.zip from the latest release and unzip it. You need an RTX 50-series GPU with NVIDIA driver 580 or later (no CUDA toolkit), and the Visual C++ redistributable if it is not installed already.
  2. Run infernix-launcher.exe. It opens http://127.0.0.1:1234 in your browser.
  3. On Discover, pick a model (the recommended ones are a good start) and press Download. The launcher also suggests the drafter and n-gram volume the model needs. Models you already have: add their folder on Models.
  4. On Models, press Load. Each model starts from its recommended settings; Configure changes any option, and Will it fit? checks a configuration against your GPU and RAM.
  5. On Connect, copy the settings for Claude Code, Codex, Zed, Qwen Code or Hermes. Tools use http://127.0.0.1:1234/v1 (OpenAI) or http://127.0.0.1:1234 (Anthropic), and the launcher loads whichever model a request names.

The dashboard shows decode and prefill speed, cache hits and the computer's load; the launcher also has a chat, token usage by model and client, a watchdog and an Ablation page. Everything else: the launcher guide. On Linux, build and run build/apps/infernix-launcher.

From the command line

infernix-serve.exe, in the same folder, runs one model and serves the same APIs on http://127.0.0.1:8080 (/v1 for OpenAI clients). Download the model's files from its repository (Models), then:

Qwen3.8-27B (fits in 32 GB of VRAM):

infernix-serve.exe Qwen3.8-27B-NVIDIA-NVFP4-QAD-Infernix-Exact.infernix --max-context auto --max-concurrency 2 --spec dflash2 --draft-tokens auto --ngram-draft-tokens auto --kv-dtype int8 --preserve-thinking --tolerant-tool-calls

For long agent and coding sessions, the DSpine drafter in the repository's drafter folder decodes 12-17 % faster on code at one request but 5-6 % slower on short chats: put --spec dspine --draft-model drafter\Qwen3.8-27B-DSpine-b16-Infernix.infernix in place of --spec dflash2.

Qwen3.8-Flash-Next (experts in system RAM; with the DFlash2 drafter and the FP8 n-gram volume):

infernix-serve.exe Qwen3.8-Flash-Next-NVIDIA-NVFP4-QAD-Dense8-Infernix-00001-of-00003.infernix --ngram-volume Qwen3.8-Flash-Next-NVIDIA-NVFP4-Infernix.ngram --kv-dtype int8 --max-context 262144 --spec dflash2 --draft-model Qwen3.8-Flash-Next-DFlash2-Infernix.infernix --draft-tokens auto --lm-head-draft --max-concurrency 2 --vram-past-budget

Every Flash-Next conversion takes the same options with its own file name; the two FP4-Local conversions take FP4-Local's n-gram volume. --vram-past-budget (Windows) gives the expert cache the ~0.6 GiB of VRAM the per-process budget withholds; leave it out when another program needs that memory.

Inkling 2 Mini (add --vision for images, and --vision-offload on to keep the vision tower in system RAM, using VRAM only while it encodes an image):

infernix-serve.exe Inkling-2-Mini-Infernix.infernix --max-context auto --kv-dtype int8 --spec dspark --draft-tokens auto --lm-head-draft

Ornith-1.5-122B (experts in about 70 GiB of RAM):

infernix-serve.exe Ornith-1.5-122B-NVFP4-Infernix-00001-of-00003.infernix --max-context 262144 --max-concurrency 2 --kv-dtype int8 --spec mtp --draft-tokens auto

Without --spec, Infernix picks the drafter itself (--spec auto). infernix-serve.exe --help lists every option, --config FILE reads them from a TOML file (example) and --prefix-cache-file PATH keeps the prefix cache across restarts. More: recommended settings per model, serving, and the Qwen3.8-Flash-Next, Inkling 2 Mini and Qwen3.5-122B-A10B guides.

Models

Every model below runs on the latest release. Each repository's model card gives its files, requirements, quality and speed. To convert your own checkpoints: python -m tools.convert (weight conversion).

Qwen3.8-Flash-Next

The routed experts (63 GiB at NVFP4, 46.9 GiB at IQ3_S) live in system RAM behind a VRAM cache; an SSD tier reads what does not fit. With less RAM than that, an expert stripe on a second NVMe drive (--expert-stripe) made agent turns of 3-4K new tokens about a fifth faster at 32 GiB of expert RAM (SSD expert tier).

Repository From Notes
Qwen3.8-Flash-Next-NVIDIA-NVFP4-QAD-Dense8-Infernix nvidia/Qwen3.8-Flash-Next-NVFP4-QAD Recommended. NVIDIA's quantization-aware-distilled NVFP4, dense layers in 8 bits
Qwen3.8-Flash-Next-NVIDIA-NVFP4-QAD-Infernix the same Every weight exactly as NVIDIA stores it
Qwen3.8-Flash-Next-NVIDIA-NVFP4-Dense8-Infernix nvidia/Qwen3.8-Flash-Next-NVFP4 NVIDIA's NVFP4, dense layers in 8 bits; the one benchmarked
Qwen3.8-Flash-Next-NVIDIA-NVFP4-Infernix the same Every weight exactly as NVIDIA stores it
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-Infernix ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF (IQ3_S) The GGUF bit-exact: the least RAM (46.9 GiB of experts) and the fastest decode, slower long prefill
Qwen3.8-Flash-Next-FP8-Infernix Qwen/Qwen3.8-Flash-Next-FP8 Qwen's FP8: the most accurate and the slowest (its 112.6 GiB of experts need the SSD tier on 96 GB)
Qwen3.8-Flash-Next-NVIDIA-FP4-Local-Infernix nvidia/Qwen3.8-Flash-Next-FP4-Local NVIDIA's quantization-aware-distilled FP4, 16-bit expert activations
Qwen3.8-Flash-Next-Uncensored-NVFP4-Infernix orcarouter/Qwen3.8-Flash-Next-Uncensored-NVFP4 Abliterated (refusals removed)
Huihui-Qwen3.8-Flash-Next-abliterated-FP4-Local-Infernix edp1096/Huihui-Qwen3.8-Flash-Next-abliterated-FP4-Local FP4-Local with Huihui's abliteration
Swift-1.5-Qwen3.8-Flash-Next-NVFP4-Dense8-Infernix ukisai/Swift-1.5-Qwen3.8-Flash-Next-NVFP4 UkisAI's fine-tune that thinks in fewer tokens (smoke-tested only)

Drafter (recommended for every conversion, 776 MB): Qwen3.8-Flash-Next-DFlash2-Infernix, Inco AI's DFlash2 drafter in 8 bits, 5-17 % faster than the model's own MTP.

N-gram volume (required, on an NVMe drive; any one runs any conversion). The QAD, uncensored, Huihui and Swift repositories carry none, so download one of these:

Volume Format Size Use
Qwen3.8-Flash-Next-NVIDIA-NVFP4-Infernix.ngram FP8 52.4 GB Recommended (a copy is in the Dense8 repository)
Qwen3.8-Flash-Next-NVIDIA-FP4-Local-Infernix.ngram NVFP4 29.1 GB Recommended for the two FP4-Local conversions
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-Infernix.ngram IQ4_NL 29.1 GB The IQ3_S conversion's own
Qwen3.8-Flash-Next-BF16.ngram BF16 109.2 GB Qwen's own table
Qwen3.8-Flash-Next-BF16-P12.ngram BF16 P12 81.9 GB The BF16 values bit for bit in 12.8 bits each

Qwen3.8-27B

Resident in VRAM.

Repository From Notes
Qwen3.8-27B-NVIDIA-NVFP4-QAD-Infernix-Exact nvidia/Qwen3.8-27B-NVFP4-QAD Recommended. NVIDIA's quantization-aware-distilled NVFP4, bit-exact, with MTP, a DFlash2 drafter and a proposal head (Infernix only)
Qwen3.8-27B-NVIDIA-NVFP4-QAD-NInferV3 the same The same checkpoint in NInfer's form (NInfer and Infernix)
Qwen3.8-27B-NVIDIA-NVFP4-NInferV3 nvidia/Qwen3.8-27B-NVFP4 NVIDIA's NVFP4
Qwen3.8-27B-Quasar-NVFP4-NInferV3 QUASAR-QAT/Qwen3.8-27B-QUASAR-NVFP4 QAT-trained NVFP4
Qwen3.8-27B-Uncensored-NVFP4-NInferV3 orcarouter/Qwen3.8-27B-Uncensored-NVFP4 Abliterated (safety alignment largely removed)
Swift-Qwen3.8-27B-NVFP4-NInferV3 ukisai/Swift-Qwen3.8-27B-NVFP4 UkisAI's token-efficient fine-tune (smoke-tested only)
neroued/Qwen3.8-27B-nvfp4-NInfer Qwen/Qwen3.8-27B NInfer's official NVFP4 artifact; the one benchmarked
neroued/Qwen3.8-27B-NInfer the same NInfer's official groupwise-int artifact

DSpine drafter (any 27B NVFP4 artifact, 1.53 GiB, for long agent and coding sessions): drafter/Qwen3.8-27B-DSpine-b16-Infernix.infernix in the QAD-Exact repository, Tencent's DSpine drafter with parts in NVFP4 (--spec dspine --draft-model FILE).

Qwen3.6

Repository From Notes
neroued/Qwen3.6-27B-NInfer Qwen/Qwen3.6-27B NInfer's official groupwise-int artifact
neroued/Qwen3.6-27B-nvfp4-NInfer the same NInfer's official NVFP4 artifact
neroued/Qwen3.6-35B-A3B-NInfer Qwen/Qwen3.6-35B-A3B NInfer's official groupwise-int MoE artifact, with a DFlash drafter

The neroued artifacts are NInfer's, loaded unchanged; every card's source is versioned in model-cards/.

Qwen3.5-122B-A10B

The routed experts (60.75 GiB) live in system RAM behind a VRAM cache (guide).

Repository From Notes
Ornith-1.5-122B-NVFP4-Infernix ornith-ai/Ornith-1.5-122B-NVFP4 The checkpoint's weights as stored, with its MTP drafter, the DFlash2 drafter, vision and a proposal head
Ornith-1.5-122B-UNCENSORED-NVFP4-Infernix dealignai/Ornith-1.5-122B-UNCENSORED-NVFP4 The refusal-removed export, with the same drafters, vision and proposal head

Inkling 2 Mini

Thinking Machines' looped model, resident in VRAM (guide).

Repository From Notes
Inkling-2-Mini-Infernix thinkingmachines/Inkling-2-Mini The checkpoint bit-exact, with its DSpark drafter, vision tower and a token ranking for --lm-head-draft; one file of about 20.3 GB

DFlash2 drafter (515 MB): incoai's drafter in the repository's drafter folder, faster than DSpark on short prompts and slower on long contexts and in agentic use (measured).

Adapters and sidecars

  • LoRA adapters (--lora, the Qwen3.8-27B artifacts and Inkling 2 Mini): a Hugging Face PEFT adapter applied at runtime, such as Harness Hub's adapters for the Pi, OpenCode and Hermes agent harnesses. The launcher finds them under Discover → LoRA adapters (LoRA adapters).
  • Loop adapters (--loop-adapter, the Qwen3.8-27B artifacts): Jason Titus's Looped Qwen3.8-27B recurrent-depth adapter applied at runtime. Its core layers run --loop-passes times per token, and a request can choose a shallower depth with loop_passes (Looped Qwen3.8-27B).
  • Ablation sidecars (--ablate): refusal removal applied to a model at runtime. Make one for your model on the launcher's Ablation page (ablation sidecars). On Inkling 2 Mini, --dynamic-ablation on cuts only the conversations a gate in the sidecar selects and leaves the rest to the stock model (dynamic ablation); a ready sidecar is in the Inkling 2 Mini repository.

Benchmarks

RTX 5090 (32 GB) on PCIe Gen5 x8, Core i9-13900K, 96 GB DDR5, Windows 11, 2026-11-27/28 (Inkling 2 Mini 2026-11-29/30). Every engine ran its latest release natively on Windows with its own recommended settings and drafter and the same 84 GiB RAM budget; in the agentic replay each engine also had the same system RAM for itself and its prompt cache. Gen5 x16 reads Flash-Next's prompts up to twice as fast. TTFT: time to the first token; bold: best in its row. The full tables, what each engine computes, Infernix's precision options, drafter comparisons and methods: Engine comparisons.

Qwen3.8-Flash-Next NVFP4: Infernix vs Strata and Basalt

Infernix runs the Dense8 conversion of NVIDIA's checkpoint with Inco AI's DFlash2 drafter; Strata v0.2.22 and Basalt v0.5.7 run NVIDIA's checkpoint as their own packs with the model's MTP drafter.

Context TTFT: Infernix Strata Basalt Decode tok/s: Infernix Strata Basalt
~8K 1.91 s 2.89 s 2.68 s 184 176 214
~128K 12.21 s 15.90 s 15.40 s 178 161 179
~250K 24.47 s 31.30 s 29.97 s 204 186 202
Agentic replay (two at a time, three seeds) Strata Basalt Infernix
Mean TTFT 12.6 s 5.7 s 2.6 s
90th-percentile TTFT 27.2 s 13.4 s 6.8 s
Prompt tokens from cache 39.0 % 83.5 % 84.6 %
Output tok/s, one request 117 187 175
Output tok/s, batched 67 142 169
Wall time 11.6 min 6.4 min 5.0 min

In decode Strata and Basalt run the experts' activations at 8 bits (the checkpoint specifies 4, as Infernix runs them), and Basalt every other quantized projection's at 8 bits where Infernix keeps 16. Basalt reads its n-gram table from the SSD here: in RAM it does not fit beside its experts.

Qwen3.8-Flash-Next IQ3_S: Infernix vs Strata, Basalt and llama.cpp

All four run ISTA-DASLab's GSQ-RCO IQ3_S GGUF: Infernix its bit-exact conversion with the DFlash2 drafter, Strata and llama.cpp b12810 the GGUF itself, Basalt its IQ3_S pack.

Context TTFT: Infernix Strata Basalt llama.cpp Decode tok/s: Infernix Strata Basalt llama.cpp
~8K 1.31 s 1.67 s 1.30 s 7.15 s 226 224 362 46
~128K 17.86 s 16.84 s 13.74 s 107.50 s 193 191 305 42
~250K 35.59 s 34.16 s 28.50 s 217.18 s 263 273 326 37
Agentic replay (two at a time, three seeds) Strata Basalt llama.cpp Infernix
Mean TTFT 10.1 s 4.2 s 13.3 s 2.4 s
90th-percentile TTFT 22.2 s 10.3 s 37.1 s 5.5 s
Prompt tokens from cache 49.7 % 76.7 % 83.8 % 84.4 %
Output tok/s, one request 171 307 48 190
Output tok/s, batched 97 239 41 185
Wall time 9.1 min 4.4 min 19.9 min 4.8 min

All four hold the GGUF's weights as published, but Strata, Basalt and llama.cpp compute their matrix multiplies with 8-bit activations, and Basalt also reads the hyper-connection matrices from an 8-bit copy and takes its logits from a 2-bit copy of the output head. Infernix keeps 16-bit activations; with 8-bit ones (--a8-activations, an option) it finishes the replay in 4.1 min, and Basalt still decodes 1.2-1.5× as fast.

Qwen3.8-27B: Infernix vs NInfer and Ignis

Infernix and NInfer 40dec5ff3 serve NInfer's Qwen3.8-27B-nvfp4-NInfer, each with its own recommended drafter. Ignis* v0.11.1 reads only NInfer's older container format, so it runs its own conversion.

Context TTFT: Infernix NInfer Ignis* Drafting tok/s: Infernix NInfer Ignis* No drafting tok/s: Infernix NInfer Ignis*
~8K 0.61 s 0.70 s 0.56 s 220 179 227 76 75 90
~128K 17.90 s 31.76 s 14.07 s 194 170 176 64 63 65
~230K 46.10 s 114.52 s 34.91 s 187 126 184 57 56 53
Agentic replay (two at a time, five seeds) NInfer Ignis* Infernix
Mean TTFT 4.6 s 2.4 s 1.7 s
90th-percentile TTFT 11.2 s 5.5 s 4.6 s
Prompt tokens from cache 91.0 % 86.4 % 91.0 %
Output tok/s, one request 91 196 192
Output tok/s, batched 129 239 245
Wall time 22.5 min 11.4 min 11.3 min

* Ignis ran at its shipped defaults, which compute below the others: an hq-e8-2b KV cache (the others ran INT8), FP8 weights for the layers its conversion keeps out of NVFP4, and FP8 attention in prompts. Its quality was not measured.

Inkling 2 Mini: Infernix vs NInfer, Basalt and llama.cpp

2026-11-29 (agentic replay) and 2026-11-30 (cold prefill and quality). Each engine serves Thinking Machines' release from its own file with its own DSpark drafter and an 8-bit KV cache, and had 70 GiB of system RAM for itself and its prompt cache: Infernix its bit-exact artifact with INT8 KV; NInfer 22c225b60 its artifact (the release's expert codes with offline-calibrated static W4A4 multipliers) with FP8 KV, as its Inkling attention has no INT8 profile, and no prompt cache in RAM (its Inkling route keeps it on the GPU only); Basalt v0.6.0 its pack (the release's NVFP4 experts, its MXFP8 experts and the attention, gate, convolution and output projections in Q8_0, the head rounded to Q8_0) with INT8 KV; llama.cpp b12844 ggml-org's NVFP4 GGUF (the release's NVFP4 experts, the rest Q8_0) with Q8_0 KV.

Each path's speed and quality NInfer Basalt llama.cpp Infernix
Prefill tok/s, cold 8K / 64K prompt 24.7K / 20.4K 17.4K / 16.3K 5.1K / 3.3K 17.3K / 13.4K
Prompt path: × honest rounding 1.12× 0.72׹ 0.99× 1.01×
Decode tok/s, one request 293 387 133 330
Decode path: × honest rounding 1.01× 0.76× 0.79× 1.00×

× honest rounding: mean KL divergence from the exact model over WikiText-2 (611 chunks) divided by that of an ideal implementation rounding at every step; lower is closer (quality). NInfer reads prompts fastest and furthest from the exact model; Basalt and llama.cpp decode closest to it, with the experts' activations at 8 bits where the checkpoint, and Infernix by default, keep 4 (detail). Prefill and quality 2026-11-30, decode from the replay below.

  1. Basalt's prompt path writes no logits: this is the first token after a cold prefill, read through a decode window, on every 16th position; on those positions Infernix's prompt path is 0.95×.
Agentic replay (two at a time, three seeds) NInfer Basalt llama.cpp Infernix
Mean TTFT 0.7 s 1.3 s 5.6 s 0.8 s
90th-percentile TTFT 1.5 s 3.4 s 9.9 s 1.3 s
Prompt tokens from cache 89.1 % 89.2 % 89.4 % 89.8 %
Output tok/s, one request 293 387 133 330
Output tok/s, batched 319 323 99 307
Wall time 6.0 min 5.6 min 17.0 min 5.5 min

NInfer read uncached prompts 1.5× as fast as Infernix here (18,800 against 12,200 tok/s; Infernix has since become 4 % faster at it), which gives it the lower mean first-token time. Basalt decodes fastest, with its dense projections at 8 bits where the release keeps them at 16. Wall times overlap: they vary by up to 20 % between seeds, as each engine samples its own replies.

Quality

How far each engine's output is from the exact model: mean KL divergence with llama.cpp's statistics on WikiText-2 (580 chunks of 512 tokens; the same PC, 2026-11-28), against Infernix's lossless route on the same weights (every operation correctly rounded). Honest rounding, an ideal implementation off by at most one unit in the last place at every rounding, shows how sensitive the model itself is to rounding; × is the multiple of it, and lower is closer. Full results with 95 % intervals: Quality.

Weights Engine Prompt: mean KLD Decode: mean KLD Decode: perplexity vs exact
Qwen3.8-27B NVFP4 (honest rounding 0.00160) Infernix 0.01690 (10.5×) 0.00437 (2.73×) −0.12 %
NInfer 40dec5ff3 0.01660 (10.4×) 0.00436 (2.72×) −0.02 %
vLLM 0.34.0² 0.01788 (11.2×) 0.01770 (11.0×) +0.85 %
Qwen3.8-Flash-Next IQ3_S (honest rounding 0.01601) Infernix 0.01465 (0.91×) 0.01443 (0.90×) −0.04 %
llama.cpp b12810 0.01526 (0.95×) 0.01531 (0.96×) −0.01 %
Strata v0.2.22 0.01517 (0.95×) −0.03 %
Basalt v0.5.7 0.01922 (1.20×) +0.47 %
Qwen3.8-Flash-Next FP4-Local¹ (honest rounding 0.01475) Infernix 0.01354 (0.92×) 0.01335 (0.90×) +0.08 %
Inkling 2 Mini³ (honest rounding 0.01381) Infernix 0.01370 (0.99×) 0.01376 (1.00×) +0.04 %
NInfer 22c225b60 0.01479 (1.07×) 0.01309 (0.95×) +0.03 %
  • 27B: every engine's prompt path is about 10× honest rounding, because the artifact specifies 4-bit and 8-bit activations there. Decoding with 16-bit activations, Infernix and NInfer come down to 2.7×; vLLM stays at 11×.
  • Flash-Next: Infernix, llama.cpp and Strata sit at or slightly below honest rounding. Basalt is at 1.20× and the only one there whose perplexity rises measurably.
  • Inkling 2 Mini: Infernix sits at honest rounding on both paths. NInfer's prompt path is the further (1.07×, 8 % above Infernix's); its decode path is the closer (0.95×, 5 % below Infernix's). With INT8 KV (Infernix's recommendation) Infernix's rows rise by at most 0.0003. With 8-bit KV, llama.cpp's and Basalt's decode paths are about 20 % closer (0.79× and 0.76×), with the experts' activations at 8 bits where the checkpoint gives them 4: Infernix's --a16-activations reaches 0.74× and decodes 6 % slower.
  • Not measured yet: NVIDIA's NVFP4 weights of Flash-Next, and Ignis. Strata and Basalt compute no prompt logits, so they have decode rows only.
  1. FP4-Local was measured on 200 chunks, so its intervals are wider.
  2. vLLM cannot load NInfer's artifact, so it ran Unsloth's checkpoint of the same model with the artifact's embedding. KV cache: BF16 on the 27B, 8-bit on Flash-Next (INT8; llama.cpp Q8_0).
  3. Inkling 2 Mini: all 611 chunks, 2026-11-29, each engine its own artifact of the checkpoint's weights, BF16 KV and BF16 logits. With each engine's replay KV (2026-11-30), prompt / decode: Infernix (INT8) 0.01398 / 0.01377, NInfer (FP8, its sliding windows too) 0.01552 / 0.01399, llama.cpp (Q8_0) 0.01370 / 0.01092, Basalt (INT8; prompt: the first token after a cold prefill) 0.00998 / 0.01048.

Build from source

Windows

Prerequisites: Visual Studio 2026 (or 2022, MSVC 14.44) with its C++ CMake tools (they bring Ninja); the CUDA 13.4 toolkit (CMake refuses an older one; later ones are untested, and 13.5's device link may need over 46 GB of RAM: build system); FFmpeg, libjpeg-turbo and curl from vcpkg (x64-windows, at C:\vcpkg; adjust the paths at the top of build_native.bat); and Python 3.11 or later for the PDFium download.

py -3 -I tools\deps\fetch_pdfium.py
build_native.bat configure
build_native.bat build

The server and launcher are in build-windows\apps\Release, with their DLLs beside them. Without PDFium the build succeeds and PDF documents are refused; fetch_pdfium.py --archive FILE unpacks a copy you already downloaded, and PDFIUM_ROOT names a tree elsewhere (run build_native.bat configure again after adding it).

To run on another PC, copy the DLLs beside the executables; it needs an RTX 50-series GPU, NVIDIA driver 580 or later and the Visual C++ redistributable. packaging\windows\package_release.ps1 packs the server, launcher, DLLs and licences into a release zip (third-party notices); it needs a build with PDFium.

Linux and WSL2

Tested on Ubuntu 24.04 with CUDA 13.4 and GCC 13.3. Prerequisites: CUDA 13.4 (CMake refuses an older toolkit: CUDA 13.2 miscompiles sm_120a code), CMake 3.28+, a C++20 compiler, Ninja, pkg-config, the FFmpeg, libjpeg-turbo and curl development packages, and Python 3.11 or later for the PDFium download:

sudo apt-get install -y build-essential cmake ninja-build pkg-config libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libjpeg-turbo8-dev libcurl4-openssl-dev
python3 -I tools/deps/fetch_pdfium.py   # PDF documents (PDFium); prints the tree for PDFIUM_ROOT
cmake --preset release -DPDFIUM_ROOT="$PWD/build-deps/pdfium/chromium-8152/linux-x64"
cmake --build build -j

The server is build/apps/infernix-serve and the launcher build/apps/infernix-launcher. The server loads libpdfium.so from the PDFium tree, so keep it in place or put the library on the loader path. Ubuntu 24.04's FFmpeg (6.1) refuses animated WebP images, which need FFmpeg 8.

Under WSL2, use the Windows NVIDIA driver (install none inside WSL) and keep models in the Linux filesystem (/mnt/ reads are slow). Infernix plans RAM against the VM's memory (.wslconfig's memory=), which Windows cannot see it use: keep that limit below what Windows can spare, or set --host-context-mib.

Docker

The Dockerfile builds the server in a CUDA 13.4 image, for Docker or Podman with the NVIDIA Container Toolkit on the host. Mount the model's folder and publish the port:

docker build -t infernix .
docker run --rm --gpus device=0 -v /models:/models -p 8080:8080 infernix infernix-serve /models/<artifact>.infernix --host 0.0.0.0 --port 8080

Podman takes the same commands, with --device nvidia.com/gpu=0 in place of --gpus device=0.

Documentation

Launcher, CLI, serving, Qwen3.8-Flash-Next, Qwen3.5-122B-A10B, Inkling 2 Mini, LoRA adapters, loop adapters, ablation sidecars, performance, quality and the documentation map.

Support

Infernix is developed with Claude Code. To help pay for that subscription, you can sponsor me on GitHub.

Thanks and contributing

Infernix exists because of Neroued, who created NInfer and built the engine, artifact format and kernels this project grew from: thank you, and please support NInfer's creator on Ko-fi. Thank you also to Niko1221, whose Strata set the bar for Qwen3.8-Flash-Next on one GPU and guided this implementation, and to Strata's community, whose ideas (wangmeng's reasoning-loop recovery and eddoursul's host-thread placement among them) shaped several features here.

And to everyone whose issues, pull requests, forks and research Infernix has drawn on: Michael Dementii, Minnnn, DuncanBetts, Valerio Dolci, Thireus, remesis, Valeriy Selitskiy (iamwavecut), Hector Ramon Jimenez (hecrj), giveen, bingchengcc, pkochubey, paq85, Macasacker, Sha1rholder, adubkov, Gideon Zenz (gzenz), cometkim (Hyeseong Kim), Woesch-Nich, Hundsbuah, lonelystarCX, gpillon (ignis), CaptainArni, David Oelfke, Fedor Suchkov, Yunado, IST-DASLab (llmq), the authors of HyperQuant and Four Over Six, the Qwen team for the models, and NVIDIA for the NVFP4 checkpoints.

Issues and pull requests of any kind are welcome: bug reports, questions, measurements on other GPUs and machines (PCIe x16 especially), fixes, features and documentation.

Explore related projects

Loading…