CLI Reference
Infernix CLI Flags & TOML Reference
Every production flag for infernix-serve.exe explained—from reclaiming Windows VRAM headroom to enabling lossless 12-bit bf16p KV caching.
No local RTX 5090 (32 GB) or 64 GB+ RAM? Run this setup per-second on cloud Blackwell GPUs.
VRAM, Context & Windows Memory Flags
| Flag | Recommended Value | Technical Behavior |
|---|---|---|
--vram-past-budget | Boolean (Windows) | Reclaims ~0.6 GiB of per-process VRAM held back by Windows WDDM for expert caches. Omit if another GPU app actively needs that memory. |
--max-context | auto or 262144 | auto sizes the context window to available VRAM after model weights and drafter allocation. |
--max-concurrency | 2 | Sets simultaneous in-flight requests. Agentic coding replays (e.g., main agent + subagent) perform best at 2. |
--ngram-volume | PATH.ngram | Required for Qwen3.8-Flash-Next conversions. Place on a fast NVMe SSD (29.1 GB to 109.2 GB depending on precision). |
--vision-offload | on | Keeps the vision encoder (e.g., Inkling 2 Mini with --vision) in system RAM, moving to VRAM only during image encoding. |
Speculative Decoding & Drafter Flags
Infernix supports multiple speculative decoding architectures. Passing --spec auto selects the fastest measured drafter for the loaded checkpoint.
--spec dflash2: Uses Inco AI's 8-bit DFlash2 drafter (776 MB for Flash-Next). Benchmarks 5–17% faster than the model's native MTP head.--spec dspine --draft-model FILE: Loads Tencent's 1.53 GiB DSpine drafter forQwen3.8-27B NVFP4. Decodes 12–17% faster on long coding/agent sessions (5–6% slower on short chats).--spec dspark: Recommended drafter mode forInkling 2 Mini.--spec mtp: Uses the checkpoint's built-in Multi-Token Prediction head (default forOrnith-1.5-122B).--draft-tokens auto: Dynamically tunes speculative draft length round-by-round based on acceptance rate.--lm-head-draft: Accelerates draft verification on MoE models like Flash-Next and Inkling 2 Mini.
KV-Cache Quantization Formats (--kv-dtype)
Choosing the right --kv-dtype is the fastest lever for expanding context length on a 32 GB RTX 5090 without hurting coding accuracy:
| Format | Memory Footprint | Best Use Case |
|---|---|---|
int8 (Rotated INT8) | ~0.5× BF16 | Recommended default for 128K–256K coding-agent sessions with negligible quality drift. |
bf16p | ~12 bits/value (1.31× capacity) | Lossless packed BF16. Produces bit-exact BF16 outputs while fitting 31% more tokens in the same VRAM. |
k8v4 / fp8 / nvfp4 | 0.25×–0.5× BF16 | High-concurrency or extreme context budgets where minor quantization noise is acceptable. |
vq2 / k4v2 | 2–4 bits/value | Ultra-dense experimental context compression. |
Persistent Prefix Cache (--prefix-cache-file)
Infernix caches 64-token KV blocks alongside recurrent-state snapshots for Qwen's linear-attention layers across VRAM, system RAM, and disk. Pass --prefix-cache-file C:\cache\infernix.pcache so your codebase system prompts survive server restarts.
Agent Reliability & Config File Flags
--tolerant-tool-calls: Recovers malformed JSON tool arguments emitted by local models during long agent loops.--preserve-thinking: Keeps reasoning traces structured cleanly for agent harnesses that inspect thinking blocks.--config infernix.toml: Loads all launch parameters from a reproducible TOML file instead of long CLI lines.