Repository navigation
Releases
NInfer-3090 v0.21.0 - four long agent sessions at once on one 3090, faster Flash-Next with tools, NVIDIA NVFP4 QAD 27B
NInfer-3090 v0.21.0
Four long agent sessions now run at the same time on one RTX 3090 (total decode 98.7 -> 114.5 tokens per second, the slowest session's wait for its first word 41 s -> 13 s), requests that offer tools on Qwen3.8-Flash-Next now decode with speculation (Tesla V100: 44 -> 70 tokens per second on an explanation, 46 -> 115 on code), and NVIDIA's NVFP4 QAD build of Qwen3.8-27B, which is closer to full precision, is a second 27B you can run. If you run one chat at a time on a 3090 with the default launcher, your speed is unchanged and your model files still load; what moved is listed under "Breaking changes".
What this means for you
- You run several coding agents against one 3090 (
NINFER_CONCURRENCY=3or more,NINFER_SPEC=mtp). The launcher now sizes one shared memory pool for all the sessions instead of reserving one context per session. In the test, four sessions of 75-84K tokens all ran at once; before, only two of the four did and the others queued. Each request is capped at 131,072 tokens in this mode (see "Breaking changes"). - You run Qwen3.8-Flash-Next with tools (coding agents, chat clients). Any request that offered tools used to decode with no speculation at all. It now speculates. Output is byte-identical; only the speed changes.
--no-mtp-constrainedturns it off. - You want the most accurate 27B.
./run.sh qwen38-27b-qad(run qwen38-27b-qadon Windows) serves NVIDIA's NVFP4 QAD checkpoint. It decodes slower than the default 27B. It has been measured on a Tesla V100 only, not on an RTX 3090, so treat it as a preview there. - You run a router that switches between models, or run near the memory limit. An unload now returns freed memory to the system and saves the model's conversations first, and a model whose conversation store cannot fit is decided before its weights are loaded, so a switch loads once instead of twice.
- You run Inkling-2 and need JSON. Inkling-2 now serves
response_formatJSON, JSON schema, grammar, choice and regex constraints. It used to refuse them. - You have a Tesla V100. The NVFP4 QAD 27B runs there (details below), and the V100 server binary is about 60% smaller (524 MB, was 1.37 GB), so its archive is far under GitHub's size limit and
ninfer_benchis back in it. - You do nothing and nothing changes if you run one chat at a time on a 3090 with a model already working: no flag was removed and no launcher variable was dropped.
Breaking changes
A diff of every ninfer-serve and ninfer flag between v0.20.0 and this release shows one flag added (--no-mtp-constrained) and none removed. No NINFER_* launcher variable was dropped. These defaults and behaviours moved:
- Flash-Next with
--spec mtpnow speculates on constrained requests by default (JSON schema, grammar, and any request that offers tools; #646). Before, this needed--mtp-constrained, which is still accepted. Use--no-mtp-constrainedfor the old behaviour. It uses about 1 MiB more memory. qwen38-27bprofiles keep only the first 8,192 rows of the token embedding in video memory (every profile exceptnone; #642). The other 644 MiB is read from pinned system RAM, so the server now pins about 644 MiB more host RAM. The output is bit-for-bit the same and no speed change was measured (DFlash2 on 8 chat prompts 129.4-129.8 vs 129.8-129.9 tok/s; a 98K-token prompt 91.5-91.7 vs 91.7-91.8). The 622 MiB freed goes to the KV cache.NINFER_HOT_EMBEDDING_ROWS=0keeps the whole table in video memory, andNINFER_EMBEDDING_Q4/NINFER_EMBEDDING_Q6turn it off. The newqwen38-27b-qadprofile is not affected: its embedding is Q8.NINFER_SPEC=mtpwithNINFER_CONCURRENCYof 3 or more now caps each request at 131,072 tokens and uses a shared pool (--kv-capacity auto --device-state-slots 0, no--fit-context; #642). Before, the cap was the launcher's longer default. One and two lanes, and DFlash2 at any lane count, are unchanged.NINFER_CONTEXTsets the cap yourself.- The Windows
run.batmenu has a fifth entry (Qwen3.8-27B, NVIDIA NVFP4 QAD), so a script that answers the prompt must now choose from 1-5. - The dashboard now remembers the API key in the browser's
localStorage(it usedsessionStorage; #640). It survives closing the browser, is stored per host and port, and anyone with access to that browser profile can read it. The Forget button clears it. - An idle server no longer writes throughput lines to the log or the request log (#626); they appeared every 5 seconds before.
- Release builds no longer compile with
-lineinfo, and the V100 build carries no PTX (#633). This changes nothing about speed (the machine code is identical) but a profiler's source view needs-DNINFER_CUDA_LINEINFO=ON. - Linux archives ship
ninferas a link toninfer-serve(#628): started under the nameninfer, the server runs as the command-line tool. A copy of the folder made with a tool that does not preserve symbolic links will lose that link. Windows still ships a separateninfer.exe. - The Windows launcher's
--fit-contextdefault for DFlash2 is unchanged at 188,416 tokens. It was re-measured on 2026-11-26 with the desktop holding 1.5 GiB: it starts with 1.61 GiB free; 196,608 started once in two tries, so it was not raised.
Four long agent sessions on one RTX 3090
RTX 3090, Windows 11 with the desktop holding 1.4-1.9 GiB, 315 W, MTP3, rk4v4 KV cache, overlay vision, 75-84K-token sessions where about 95% of each follow-up is already cached, 1,700 tokens out each, two runs:
Launcher at NINFER_CONCURRENCY=4 |
KV pool | Sessions running at once | Worst wait for first word | Whole batch | Total decode |
|---|---|---|---|---|---|
| v0.20.0 | 212,992 | 2 of 4 | 41.0 s | 68.9 s | 98.7 tok/s |
| This release | 330,240 | 4 of 4 | 13.4 / 13.8 s | 59.4 / 59.4 s | 114.5 / 114.4 tok/s |
A second change speeds this exact case: with two or more sequences in one verification, the attention kernels now pick a split count that fills the 3090's 164-CTA waves. Four sessions past 79,360 keys went from 114.6 / 114.1 to 119.9 / 119.5 tok/s (batch 59.4 -> 56.8 s, worst wait unchanged at 13.4 s; #643). On its own the kernel takes 19-20% less time at 4x80K keys, 6.6% at 131K and within noise on one sequence.
Cost and caveat: do not set an explicit --kv-capacity close to the card's limit. At 335,872 tokens (200 MiB free) Windows paged video memory to RAM and decode fell to 1-5 tokens per second, which is why the launcher keeps the automatic pool's margin. An image request through overlay vision was not exercised with the 8,192-row embedding on; startup and text requests were. The none profile (no speculation) leaves the rows off, because without them overlay vision's evictable tail is below one image-encode window.
Single-session decode on the RTX 3090
Qwen3.8-27B, DFlash2 with the launcher's settings (rk4v4, n-gram copies), Windows, 315 W: a 98K-token prompt decodes at 92.9-93.0 tok/s against 90.6-91.0 before (+2.3%) in an A/B in one session with identical output; measured alone afterwards it is 93.8-94.0 tok/s, which is the figure the README, docs/performance.md and the model card carry. Short-context code is unchanged (189.5-189.6 vs 189.2-189.6 tok/s). On its own the INT8-family verify attention kernel takes 11-16% less time at 98K-131K keys (#641).
Flash-Next with tools, on the V100
Tesla V100, 200 W, greedy, thinking off, the router's Flash-Next flags (7 drafts, 32,768 context), same output byte for byte (#646):
| Request | Before | Now |
|---|---|---|
| 7 tools offered, explanation | 43.0-44.7 | 70.3-70.6 |
| 7 tools offered, code | 45.4-46.8 | 114.3-115.5 |
| 7 tools offered, story | 45.5-46.0 | 72.2-72.4 |
| JSON schema | 21.4-21.8 | 112.8-114.3 |
These are V100 figures; Flash-Next was not re-measured on an RTX 3090 for this change. Qwen3.5-family models (27B, 35B) already speculated under grammar masks.
NVIDIA's NVFP4 QAD build of Qwen3.8-27B
qwen38-27b-qad is NVIDIA's quantization-aware-distilled checkpoint of Qwen3.8-27B (19 GB; NVIDIA reports scores within about 0.3 points of the 16-bit model on GPQA Diamond and IFBench). The converter now reads NVIDIA ModelOpt's NVFP4 and FP8 tensors directly (#635, #636); the artifact is a download (download-model.sh qwen38-27b-qad), with vision, MTP3 and, from the 2026-11-27 revision, a DFlash2 drafter (NINFER_SPEC=dflash2).
Tesla V100, 200 W, greedy, thinking off, 400-token answers, one request at a time (#639, #647):
| Prompt | QAD, MTP3 | QAD, DFlash2 K=7 | Q4/Q5 27B, DFlash2 |
|---|---|---|---|
| Code | 90.1-91.1 | 116.0-116.4 | 139.1 |
| JSON | 93.2-94.1 | 114.6-114.8 | 151.3 |
| Explanation | 66.5-67.1 | 63.6-63.7 | 84.3 |
| Story | 58.5-59.0 | 49.1-49.3 | 63.4 |
| French | 58.0-58.4 | 46.7-46.9 | 59.7 |
MTP3 is the default because DFlash2 is faster only on predictable text. Reading a 3,754-token prompt runs at 745.8 tok/s, matching the Q4/Q5 build (741.9). Perplexity is lower than the Q4/Q5 build on the three domains measured (wikipedia_en 5.520 vs 5.547, wikipedia_zh 8.961 vs 9.287, arxiv 6.401 vs 6.425); the other three domains were not run. Costs: decode is about 4% slower in plain generation and 17-24% slower than the default 27B under DFlash2 on code and JSON, and the artifact is 1.3 GiB larger. It was measured on a Tesla V100 only. The RTX 3090 has the model and launcher entries, but no RTX 3090 download, launch or speed run was done before release.
Routers: unloading, memory and model switches
NInfer-3090 v0.20.0 - Tesla V100 27B at 136 tok/s, the 35B on the V100 launcher, faster server starts
NInfer-3090 v0.20.0
A Tesla V100 now decodes Qwen3.8-27B at 136 tokens per second on code (was 111), serves Qwen3.6-35B-A3B from the V100 launcher at 254 tokens per second, reads a 4,000-token prompt of the 35B in about a second, and every card gets a long-context crash fix and a server that starts in 15 seconds instead of two and a half minutes. If you run a 3090 and nothing else, no default moved and no flag was removed; the visible changes for you are the start-up time and the fixes below.
What this means for you
- You have a Tesla V100 32 GB. Download
ninfer-v100-linux-x64-0.20.0-rtx3090.tar.gzand run./run-v100.sh qwen38-27b,qwen38-flash-nextor the newqwen36-35b-a3b. The 27B, Flash-Next and the 35B all got faster (tables below). One default moved on the V100: verification now runs on 8-bit activations (see "Breaking changes"). - You run a 27B with very long conversations (about 168K tokens and up), on any card. A kernel wrote past the end of a shared-memory table once a request's cache grew beyond about 168K tokens, which could end the server with an illegal-address error. That is fixed on both the RTX 3090 and the V100.
- You run a server that restarts often, or loads the 35B on a 3090. Opening a model file took 19 seconds, eight times per start. A start of Qwen3.6-35B-A3B now takes 15 seconds from "starting engine" to "engine ready", where it took 2 minutes 15 seconds.
- You run an always-on server near its memory limit. With the Host context cache full, the engine could spend minutes choosing what to evict while every running request waited (decode at 0 tokens per second, GPU nearly idle). It now lets running requests decode between eviction steps.
- Your clients send a system message that is not the first message (many do, on
/v1/messages). A model file converted with the stock Qwen template used to answerSystem message must be at the beginning.. The server now notices that template and uses NInfer's bundled one.--chat-template FILEstill wins. - You do nothing and nothing changes on an RTX 3090 for a model already running well: no default moved, and your model files still load.
Breaking changes
Nothing was removed or renamed. A diff of every ninfer-serve and ninfer flag between v0.19.0 and this release shows two flags added (--verify-a8 and --no-verify-a8) and none removed, and no NINFER_* launcher variable was dropped.
- Tesla V100 only: verification now runs on 8-bit activations by default (
--verify-a8). This is what makes the 27B's MTP3 decode 110 tokens per second on code (up from 82) and DFlash2 reach 136. It is lossy at the noise floor: against the full-precision kernels the decode-path KL divergence is 7.2e-4 to 7.8e-4 and 98.9-99.2% of tokens keep the same top choice. Pass--no-verify-a8for the old behaviour (the MTP3 output was then byte-identical to the previous release's on all six text prompts tested). The RTX 3090 does not compile the kernel and is unchanged. --mtp-draft-vocabhas a new value,tokenizer, and on a V100autonow meanstokenizer: the draft list is derived from the model's own tokenizer instead of read from<model>.draft-vocab. The output is unchanged (drafts are always verified by the full model).- The request log's server-options record gains a
verify_a8field. A tool that parses it with a fixed list of fields should tolerate that.
Qwen3.8-27B on the V100
Measured on one V100-PCIE-32GB at 200 W, no thermal throttling sampled, 2026-11-24, with run-v100.sh defaults:
| What | Before | Now |
|---|---|---|
| Code, DFlash2 K7 | 111 tok/s | 136 |
| Thinking, DFlash2 K7 | 102 | 125 |
| Structured JSON, DFlash2 K7 | 146 | 177 |
| Code, MTP3 | 82 | 110 |
| Story, Chinese, French, MTP3 | about 57 | 77-81 |
| Two requests at once, MTP3 (total) | 74 | 122 |
| MTP3 at 43K tokens of context | 53.0 | 69.5 |
| MTP3 at 172K tokens of context | 26.4 | 56.7 |
Long conversations gain most: attention over a long cache now runs on the V100's tensor cores instead of re-reading the whole cache for every token (#608). The cost of the 8-bit activations is described under "Breaking changes".
Qwen3.6-35B-A3B on the V100
./run-v100.sh qwen36-35b-a3b now serves the tuned profile with resident vision and two lanes. Before, the launcher had no entry for it and fell through to a profile whose vision mode the server refuses on this card. Requesting NINFER_VISION_RESIDENCY=overlay is now refused before the server starts, with a message that says what to set instead.
Measured at 200 W (2026-11-25):
| What | Before this series | Now |
|---|---|---|
| Reading a 4.2K-token prompt (prefill) | 765 tok/s | 3,984 |
| Reading a 40K-token prompt | 1,098 | 3,118 |
| Code, MTP3 + draft head | 253.7 tok/s | |
| Thinking, structured JSON | 265, 303 | |
| Story, Chinese, French, conversation | 172.6-192.7 | |
| Structured JSON, DFlash K7 | 293 | 319 |
| Two requests at once (total) | 197-200 |
The "before" figures are the baselines in the PRs that changed them (#616, #621, #618); decode before this series has no single baseline, so none is claimed. Context was tested to 65,536 tokens on this model, not further. Two V100-only bugs were fixed along the way: a prompt of 2.7K-3.9K tokens aborted the server with cudaErrorCooperativeLaunchTooLarge, and a verification of 9-16 tokens produced NaN logits (DFlash or MTP with 8-15 drafts accepted nothing).
Qwen3.8-Flash-Next and Inkling-2-Mini on the V100
| What | Before | Now |
|---|---|---|
| Flash-Next, code (MTP7 + draft vocabulary) | 123 tok/s | 129.6 |
| Flash-Next, French | 72 | 77 |
| Flash-Next, thinking | 100 | 103-106 |
| Inkling-2-Mini, 8K prompt, default chunk | 2,069 tok/s | 2,170 |
Inkling-2-Mini, 8K prompt, --prefill-chunk 8192 |
2,687 | 2,727 |
Flash-Next decode stays flat from 10K to 221K tokens. These are V100 figures only; no RTX 3090 figure for these models changed.
Also fixed
- Long prompts, 27B, any card: a kernel overran a shared-memory table above about 168K keys (see above; compute-sanitizer reported 1,614 errors on master and 0 with the fix).
- A busy server with the Host cache full no longer shows decode at 0 tokens per second while evicting.
- Servers no longer take two silent minutes between "starting engine" and "loading weights" on large model files.
/v1/messageswith a system message that is not first no longer fails on stock-template model files; the "only text system blocks" error now names the block type it received.run.batandrun.shexplain theruntime reservation requires ... available for runtime capacityfailure (an explicitNINFER_CONTEXTturns--fit-contextoff).- Inkling-2-Mini's prefill on the V100 is 3-9% faster at the default chunk.
The Tesla V100 archive
ninfer-v100-linux-x64-0.20.0-rtx3090.tar.gz(1.5 GB) withSHA256SUMS-v0.20.0-linux-v100.txt, Linux only,sm_70only: it does not start on an RTX 3090, and the 3090 archives do not start on a V100.- It no longer contains
ninfer_bench. Eachsm_70binary is 1.37 GB, and with three of them the tarball was 2,246,329,497 bytes, over GitHub's 2 GiB (2,147,483,648) limit for one download. It holdsninfer-serve,ninferand the launchers. To benchmark on a V100, build it from source:scripts/v100_build.sh ninfer_bench(CUDA 12.8). The 3090 archives still ship it. run-v100.shnow servesqwen36-35b-a3bas well asqwen38-27bandqwen38-flash-next. It listens on every network interface; setNINFER_API_KEYbefore you start it (it warns when you have not).
Under the hood
For profiling on a V100 under nsys, NINFER_NO_COOPERATIVE_KERNELS=1 turns off the cooperative launches nsys cannot trace. It slows the kernels and is for measurement only. NINFER_SM70_VERIFY_ATTN_HMMA=0, NINFER_GGML_STAGED=0 and NINFER_INKLING2_BANK_EXPERTS=0 restore the previous V100 routes, for comparison. The 35B's experts and projections, the 27B's drafter and Flash-Next's verify now run on the V100's FP16 tensor cores or on dp4a instead of emulated Ampere instructions. The README leads with new Tesla V100 comparison charts; per-model figures and every source are in docs/tesla-v100.md.
Verification
Tests: this release builds only the three products (ninfer, ninfer-serve, ninfer_bench); the full test suite and the real-model tests were not run for the release itself. The changes in it were tested in their own PRs.
What was checked, on the build machine (Windows 11, and Ubuntu 24.04 under WSL), before publishing:
- Windows zip: every file matches its inner
SHA256SUMS.txt, and the zip matchesSHA256SUMS-v0.20.0-windows.txt.ninfer.exeandninfer-serve.exestart from an extracted copy with only Windows onPATH(the cuBLAS DLLs ship in the zip). Its default launcher,run.bat qwen38-27b, loaded Qwen3.8-27B and answered a chat completion on the RTX 3090. - Linux RTX 3090 archive: inner and outer checksums match,
./ninfer-serve --helpand./run.sh --helprun from a fresh unpack, andrun.sh qwen38-27bloaded the model under WSL and answered a chat completion on the RTX 3090. The server holdssm_86code and nosm_70code. No dynamic library is missing, and itslddlist is identical to v0.19.0's. - Linux Tesla V100 archive: built and checked, not run on a V100 before this release was published. Inner and outer checksums match, the server holds
sm_70code and nosm_86code,--versionand--helprun,run-v100.shfinds the server beside it, and itslddlist is identical to the 3090 archive's. Serving a model on a V100 from this archive was not done before publishing; the V100 figures above come from source builds of master on a V100. If./run-v100.sh qwen38-27bfrom the archive does not start on your card, please open an issue. - The version string: the Windows executables report `0.20.0-rtx3090+04d5fc343-di...
NInfer-3090 v0.19.0 - Tesla V100 download, Inkling-2-Mini, faster Flash-Next on V100
NInfer-3090 v0.19.0
The Tesla V100 32 GB is now a first-class card with its own download, and this release adds Inkling-2-Mini (a new 26B model that runs on both the V100 and the RTX 3090) and a much faster Qwen3.8-Flash-Next on the V100. If you run a 3090 and only the Qwen3.8-27B profile, nothing you use changes: no default moved and no flag was removed.
What this means for you
- You have a Tesla V100 32 GB. Until now you built NInfer from source. Download
ninfer-v100-linux-x64-0.19.0-rtx3090.tar.gzinstead, run./run-v100.sh qwen38-27b, and you are serving. It runs Qwen3.8-27B, Qwen3.8-Flash-Next and Inkling-2-Mini. - You run an RTX 3090 and want a second model. Inkling-2-Mini now runs on the 3090, on Windows and on Linux, with images and a 137,216-token context.
- You drive coding agents from a V100 box. Flash-Next decodes code at 123 tokens per second (the 27B on the same card does 76-86). See "Qwen3.8-Flash-Next on the V100".
- You serve fine-tuned models. One server can now hold the base Qwen3.8-27B and up to eight LoRA adapters and pick one per request.
- You run an always-on server on a shared or rented GPU. The 27B can now keep its cache in a smaller footprint (per-layer KV mixes, below), and the dashboard shows medians, means and peaks, so you can see whether a slow stretch was a blip.
- You do nothing and nothing changes. No default for Qwen3.8-27B or Qwen3.6-35B-A3B moved, and your existing model files still load.
Breaking changes
Nothing was removed or renamed. A diff of every ninfer-serve / ninfer flag between v0.18.0 and this release shows 16 flags added and none removed, and no NINFER_* launcher variable was dropped. One behaviour is stricter:
- Flash-Next-only options on a Qwen3.5, 3.6 or 3.8 dense model are now an error. Before,
ninfer-serveaccepted options such as--ngram-ram-mibor--hot-embedding-rowsfor a dense model and silently ignored them. It now refuses to start and names each flag that was set. No shipped profile or launcher sets any of them, so this only affects a hand-written command line.--vram-headroom-mibis still valid with--fit-context. - The request log and
GET /v1/modelsshape are unchanged, except that the log's server-options record now has adefault_lorafield andkv_cachecan read as a per-layer spec (for examplerk4v4x12,int8x4) when you use one. A tool that parses the log with a fixed list of fields should tolerate both.
The Tesla V100 archive
- New download:
ninfer-v100-linux-x64-0.19.0-rtx3090.tar.gz, withSHA256SUMS-v0.19.0-linux-v100.txt. Linux only; the V100 is built forsm_70and the archive holds that code and nothing else. It does not start on an RTX 3090, and the 3090 archives do not start on a V100. Pick the one for your card. - It carries
run-v100.sh, which is the V100's measured launcher (MTP3 with INT8 KV for the 27B; the full Flash-Next flag set), the downloader, the server, the CLI and the benchmark tool. - Requirements: glibc 2.38+, the CUDA 12.8 runtime libraries including cuBLAS, FFmpeg 6, libcurl and libzstd. CUDA 12.8 is the newest toolkit that still targets Volta. Flash-Next wants about 59 GiB of RAM.
run-v100.shlistens on every network interface so your other machines can reach it. SetNINFER_API_KEYbefore you start it; it warns when you have not.- This archive was built and dependency-checked, but was not run on a V100 before this release was published. See "Verification".
Qwen3.8-Flash-Next on the V100
Measured on one V100-PCIE-32GB over an OCuLink PCIe Gen3 x4 link, 59 GiB host, with run-v100.sh defaults (2026-11-23, 200 W, warm cache):
| What you type | Decode |
|---|---|
| Code | 123 tok/s |
| Thinking | 100 tok/s |
| Story and Chinese | 79-81 tok/s |
| French | 72 tok/s |
| Plain decode, no speculation (250 W) | 53 tok/s |
Decode does not slow down with context: it stays flat from 10K to 221K tokens. A 3.8K-token prompt prefills in 3.8 s (about 990 tok/s at 250 W). This comes from a reduced draft vocabulary for the speculative head and seven drafts per round, plus the earlier CPU-assisted verification. Cost: French is 14% slower with seven drafts than with three; NINFER_DRAFT_TOKENS=3 restores the old behaviour. These are V100 figures only.
Flash-Next now has a second build to choose between: Unsloth's UD-IQ3_XXS (qwen38-flash-next-iq3), which reads about 7% better by perplexity than the 2-bit build at roughly half the speed, text only. And on the V100 a Flash-Next server keeps its context cache on disk across restarts, so a restart no longer makes a long conversation prefill from scratch (112K tokens took about 5 minutes).
The refusal-steering vector for Flash-Next can now be applied through --graft, per request or always on.
Inkling-2-Mini (new model)
Thinking Machines' Inkling-2-Mini is a 26B-total looped mixture of experts with 128 experts (5.4B active per token), with images and its own DSpark speculative drafter. The file NInfer serves is Unsloth's UD-Q8_K_XL converted without changing a single tensor byte. With DSpark on, greedy output equals plain greedy decode, and a sampled request draws the tokens plain sampling would draw under the same seed.
| Card | Context | Prefill | Decode, one stream | All lanes |
|---|---|---|---|---|
| Tesla V100 32 GB | 262,144 with DSpark and images | 1,930 tok/s at 8K | 78.8 plain; 93-94 with DSpark (12 chats); 120.7 on maths | 198 tok/s at 8 requests |
| RTX 3090 (WSL) | 137,216 plain; 89,088 with DSpark and images | 2,421 tok/s at 8.4K | 104 plain (101.8 on Windows); 115.5 best with DSpark | 282 tok/s at 8 requests |
V100: 2026-11-22, master dad1623b, 250 W. RTX 3090: 2026-11-23, 315 W limit. On the 3090, the full 262,144 tokens with images and DSpark needs the opt-in --kv-dtype rk4v4 (lossy). The 3090 holds the experts of layers 20-23 in an exact 8-bit (MXFP8) re-encoding so it fits; that is the default there. Up to eight requests decode in one batch (--max-concurrency 8), bit-identical to one at a time; DSpark applies when one request is running.
Where it is rough: there is no launcher profile for it yet, so you start ninfer-serve on the artifact yourself (the V100 archive README shows the command); download it with download-model.sh inkling2-mini (22.3 GiB).
Also new for Qwen3.8-27B and the dense models
- LoRA adapters per request.
ninfer-serve model.ninfer --lora pi=/path/to/peft-dir, then"lora": "pi"in the request (Chat Completions, Responses and Anthropic Messages). One server holds the base model and up to eight adapters in the same decode rounds. Unknown names return400 unknown_lora. Validated on a V100 with the real 27B and theharness-hub/Qwen3.8-27B-pi-adaptedadapter. PEFT directories only; GGUF LoRAs are not loaded. - Per-layer KV mixes. The 27B's 16 attention layers are not equally sensitive to a lossy cache: the last four carry half of
rk4v4's quality penalty and the first four carry none.--kv-dtype rk4v4x12,int8x4halves that penalty for 22% more bytes thanrk4v4(+1.69 millinats against +3.56 forrk4v4, measured on a V100 over 391K tokens).rk4v4x4,int8x12matchesint8within noise in 12% fewer bytes. Opt-in and lossy; no default changed. - Control vectors (GLP and llama.cpp format) on the dense models.
- Log probabilities on
/v1/chat/completions(logprobs: true,top_logprobs0 to 20, every generated token, non-streaming) and/v1/responses. Useful for classification and multiple-choice scoring. - Dashboard: under each tile, the median, mean and max over the chart window;
run.shandrun.batprint a ready-to-open dashboard link that carries your key in the part of the address the server never sees. - Responses API accepts tool names the engine cannot carry directly (they are mapped and mapped back), and honours
include=[reasoning.encrypted_content]. - Flash-Next launchers:
NINFER_REASONING_LOOP,NINFER_PRESENCE_PENALTYandNINFER_MIN_Pnow apply to it too (off unless you set them), and it starts without MTP (NINFER_SPEC=noneor a plain artifact).
Also fixed
- Starting the Inkling-2 server under WSL's memory-lock limit no longer fails; a startup that would spill is refused with a clear message instead of running slowly, and
--fit-contextis honoured with one lane. - DeepSeek-style thinking prompts start in reasoning.
qwen4_exprefuses--engram-dirfor a model that has no Engram instead of ignoring it.- The
download-model.batand the Windows build now cover Inkling-2. - Steadier prefill tokens-per-second on the dashboard in the middle of a request.
Under the hood
Many Volta (sm_70) routes moved off emulated Ampere instructions onto the V100's FP16 tensor cores (vision, two-lane verification, short prompts over long histories). The V100 decode attention stages the next K/V tile in registers, with the same output. A large body of DeepSeek-V4.1-Flash groundwork (converter, tokenizer, kernels and a first Engine path) merged; it is not a supported model in this release and there is no download for it.
Verification
Tests: this release builds only the three products (ninfer, ninfer-serve, ninfer_bench); the full test suite and the real-model tests were not run for the release itself. The changes in it were each tested in their own PRs.
What was checked, on the RTX 3090 build machine (Windows 11, and Ubuntu 24.04 under WSL), before publishing:
- Windows zip: every file matches its inner
SHA256SUMS.txt, and the zip matchesSHA256SUMS-v0.19.0-windows.txt.ninfer.exeandninfer-serve.exestart from an extracted copy with only Windows onPATH(the cuBLAS DLLs ship in the zip). Its default launcher,run.bat qwen38-27b, loaded Qwen3.8-27B and answered a chat completion on the RTX 3090. - Linux RTX 3090 archive: inner and outer checksums match,
./ninfer-serve --helpruns from a fresh unpack, an...
NInfer-3090 v0.18.0 - long screenshot sessions keep working, deferred tools, and a safer default server
NInfer-3090 v0.18.0
Long agent sessions with many screenshots no longer fail with media_budget_exceeded, Claude Code's deferred tools work against /v1/messages, and a keyless server now refuses requests from a web page on a foreign origin. A launch script that worked on v0.17.2 still works: no flag or launcher variable was removed.
Changes: #381, #394, #438 to #444, #446 to #448, #451, #452. This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU and has not been run (see "Verification").
Upgrade notes
- Nothing was removed or renamed. The
--flaglists ofninfer-serveandninferat v0.17.2 and at this release were compared: every v0.17.2 flag is still accepted, and the only differences are additions. The launcher scripts keep everyNINFER_*variable they read before. - Changed behaviour you can hit without touching anything:
- Host and Origin checks (new, on by default for a server without
--api-key). The server answers requests whoseHostis an IP address, its own name, or a name you add with--allowed-host NAME(launchers:NINFER_ALLOWED_HOST=NAME, a plain host name, no wildcard). It refuses a request with a foreignhttp(s)Originand anySec-Fetch-Site: cross-site. This stops a web page you visit from reaching your server through DNS rebinding. If you reach the server by a name such asgpubox.lanor through a reverse proxy, add that name or the request is refused. Curl, SDKs, Claude Code and browser extensions are unaffected. With--api-keyset the Host check is skipped. API keys are now compared in constant time. GET /slotsis served again, in llama.cpp's array shape (v0.17.2 did not serve it). The waiting queue is onGET /v1/load.- Over-budget images are shrunk instead of rejected (below). A request that used to get
400 media_budget_exceedednow succeeds. - The n-gram keep-alive period dropped from 100 ms to 40 ms (Flash-Next n-gram volume). CPU expert workers are no longer pinned to cores. Neither changes output.
- Host and Origin checks (new, on by default for a server without
- Added:
GET /dashboard(a live page),--config FILE.json(the launcher profiles are now such files),--allowed-host, and the opt-in options listed under "Opt-in options". New/metricsseries:ninfer_gpu_power_limit_watts,ninfer_admission_overtakes_totalandninfer_spec_decode_relaxed_kept_tokens_total. No existing series was renamed. - Request log: schema version 32 (was 30). It adds
preparation.degraded_media_itemsandpreparation.dropped_media_items, and with--configtheeffective_argvandsetting_sourcesof the start-up record.
What this means for you
- You drive a coding agent that sends screenshots every turn: a long session used to die once the sum of all earlier images passed the vision budget. Now the oldest images shrink first and the newest stays sharp (#452).
- You use Claude Code (or any client) with deferred tools against
/v1/messages:defer_loadingandtool_referenceblocks no longer return 400 (#448). - You expose the server on a LAN or behind a proxy: add your host name with
--allowed-host/NINFER_ALLOWED_HOST. Otherwise you do nothing. - You use MTP with prompts of tens of thousands of tokens and images: a prefill failure
scatter: expected src [D,V], indices [V], dst [D,T](reported on v0.17.2 with prompts of about 59k tokens, failing again on retry) is fixed (#447). - You run the tests or develop: four fixes to flaky or root-sensitive tests (#440, #446).
- You use none of this: speed and output are the same as v0.17.2 with every new option off. #394 compared the 27B's greedy output against master for DFlash2, MTP and no speculation (24 prompts each, all identical).
Long screenshot sessions (#452)
When a request's images exceed the vision budget (the processor cap, less the prompt's text tokens and 1,024 tokens of headroom), the server now:
- shrinks the oldest images to a 64-token ceiling (about 256x256), oldest first, and stops at 60% of the budget so later turns have room;
- if that is still too much, replaces the oldest images with the text
[image omitted: too many images for the context].
The newest image stays full size unless nothing else is left. Decisions depend only on image order and size, so appending one image keeps the earlier decisions and the cached prefix stays reusable. A shrunk image costs one extra decode and resize, then it is cached. The counts appear only in the request log (media_shrunk=, media_dropped=), not in an API response.
- Videos are never shrunk this way.
count_tokensdoes not know the context size, so for an over-budget request it is an upper bound. - If the text plus the omission notes alone exceed the context, the request fails with
context_length_exceeded. - Not measured on a card: the PR's new tests are CPU tests; a long screenshot session replay (or the
vision-envelope-degradebench case) was not run before this release.
Deferred tools for Claude Code (#448)
defer_loading: true tools are parsed but kept out of the system-prompt tool block. A tool_reference inside a tool_result writes the named tool's definition into that result and makes the tool callable from then on, in full at the first reference only. The system prompt is untouched, so discovering a tool appends to the prefix instead of invalidating the cache. Errors match Anthropic's API (tool_reference_not_found, all_tools_deferred, deferred_tool_cache_control, deferred_tool_not_loaded).
- Top-level
tool_referenceblocks and Anthropic's server-sidetool_search_tool_*are still rejected. OpenAI tool search on/v1/responsesis still unsupported; its rejections now say so and what to do instead. - Not measured: whether Qwen reliably calls a tool whose schema sits inside a tool result. If it proves unreliable, the fallback is re-rendering discovered tools into the system block, at the price of a cache miss per discovery.
Server safety and visibility (#394)
- Host and Origin checks, as above. Costs and limits: on a wildcard bind, start-up does one DNS lookup for the machine's name (a broken resolver delays start-up by its timeout; a loopback bind never does it). Without ports on either side the server cannot tell plain HTTP from a TLS proxy, so
https://127.0.0.1andhttp://127.0.0.1count as one origin. On a keyed server a rebound page can still readGET /healthand the static dashboard, as before. /dashboardshows lanes, queue, throughput and memory from/metrics,/v1/loadand/slots.--config FILE.jsonreads options from a file; the command line wins. The start-up log says which setting came from where.--admission-affinity(opt-in): a waiter that resumes a prefix held on the GPU may overtake the queue; overtakes are counted.
Opt-in options
All are off by default. Turn one on only if it matches your situation.
--numeric-tripwire(NINFER_NUMERIC_TRIPWIRE=on, #443): logs one line naming the first NaN, Inf or overflow in decode and carries on. Measured on an RTX 3090 (Vast, 285 W cap): MTP 68.90 tok/s off and on, DFlash2 64.07 off and 64.04 on, token ids identical. It found nothing on a clean answer. Limits: no prefill probe, one prompt, one request at a time; Flash-Next and multi-GPU are rejected.--adaptive-draft-tokens 3(#444, with--spec dflash2and--draft-tokensabove 3): switches to a 3-token draft window while recent acceptance is low. It missed its own target: +2.9% decode on a low-acceptance prompt at one request at a time (target was +5%), within 0.5% either way elsewhere, no effect at 2 or 4 concurrent requests. It can change greedy output when it switches width. Leave it off unless you serve mostly low-acceptance text at one lane.--relaxed-drafting(#394, 27B): accepts more drafts under sampling; DFlash2 +2.3% and MTP +3.8% median at temperature 0.7, and it changes the output distribution.--draft-context-rows(#394, 27B): refused above one lane (a second concurrent request changed the first's output).--mtp-rows-verify(#451, needs--mtp-joint-acceptance): batched MTP verification for two or more requests. Do not enable it. With it on, two-request decode measured 61 tok/s aggregate against 120 with it off, because one row's acceptance collapses; the cause is not found. Output is still correct.- Flash-Next speed options (#394):
--mtp-constrained,--mtp-joint-acceptance,--shared-expert-stream,--moe-precast-input,--moe-gate-up-registers,--moe-fused-route,--cpu-verify-misses,--gdn-head-map,--ggml-decode-mma,--ngram-prefetch,--ngram-flag-wait,--partial-ram-residency,--prefill-cpu-share,--hot-embedding-rows,--gdn-async-commit,--hc-fused-read, and numerics option--hc-int8. Per-option numbers and what was verified are indocs/serving.mdanddocs/maintainer/flash-next-plan.md. The 16 Flash-Next "everything off equals master" checks could not run on the test box (its memory lock limit blocks both builds), so that comparison is unverified. - Formats: IQ2_XS, IQ3_XXS, Q4_K and Q5_K GGML blocks and the GSQ-RCO IQ3 packs load. A fresh Flash-Next install can start from a shipped default expert state.
- A Hadamard rotation probe found no benefit for the 27B's Q4/Q5 weights (#381); nothing ships from it.
Also fixed
- A prefill failure with MTP,
--vision-residency overlayand an image starting right after a chunk boundary (#447). ninfer_context_store_testno longer races its start-up refresh (#440).- Test fixes for fake-engine lane release, a directory read as a file, and permission checks that root bypasses (#446).
- The Vast release scripts refuse a rented card whose power limit the host lowered (#441). Maintainers only.
Under the hood
New maintainer tools: a GPU-free performance model with...
NInfer-3090 v0.17.2 - a bad token ends one request, not the server
NInfer-3090 v0.17.2
A request that makes the model pick a token it cannot say no longer takes the whole server down, a follow-up to a /v1/responses call now finds the model that answered it when you run several models, and clients that ask for thinking.display: "omitted" work instead of getting a 400. No flag, endpoint or default was removed or changed.
Changes: #408, #409, #411, #412, #416, #418, #419, #420, #422, #423, #425, #435. Also #413, #414, #415, #417, #421, #424 (tests and docs). This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU and has not been run (see "Windows archive: built, not run").
Upgrade notes
- Nothing was removed or renamed. Every
ninfer-serveflag, launcher variable and endpoint of v0.17.1 is still there (the flag lists of the two versions were compared and are identical), so a launch script that worked on v0.17.1 works unchanged. No default changed. - Added:
/v1/messagesand its token-count endpoint now acceptthinking.display: "omitted"(they answered 400thinking_display_not_supportedbefore). Three new/metricsseries for the context store:ninfer_context_store_logical_bytes,ninfer_context_store_shared_bytesandninfer_context_store_remote_only_dropped_total. No existing series was renamed. - One value changed meaning: with
--context-store-peer,ninfer_context_store_used_bytes(what--context-store-max-gibis enforced against) is now this engine's share of the physical size, so a chunk shared by hard link counts once between the engines instead of in full for each. If you size a box from that gauge, see "Context store" below. run.batnow prints nothing on stderr while reading variables (it used to printFINDSTR: Cannot open >nul84 times per start).
What this means for you
- You run agent traffic on MTP or DFlash speculation: a draft token outside the model's vocabulary used to raise inside the engine, fail every request in flight and stop the process (one reporter saw 7 engine exits in 27 hours). Now only the request that hit it ends, with HTTP 500
numerical_failure, and the rest carry on (#412). - You serve several models behind the router (
--models-*):GET/DELETE /v1/responses/{id},.../input_items,.../canceland a new response withprevious_response_idwent to whichever model was used last, so they returned not-found whenever another model had served in between. They now go to the model that owns the response, loading it again if it was unloaded (#425). - Your client sends
thinking.display: "omitted"(some clients and gateways do by default): it works. Replayed empty thinking blocks are restored from a bounded in-memory store, so the prompt still matches the cache and tool loops keep their cache hits (#408). - You use the context store with a bucket or with
--context-store-peer: the directory now stays inside--context-store-max-gib, startup restore stops at its time limit instead of hanging on a slow bucket, and retired sessions cannot be republished (#411, #416, #418, #420, #422). - You run on a full Host cache or use pause/resume: demotions and pauses now choose victims by whether the freed memory forms a run big enough to use, not by total bytes (#409, #419, #423).
- You launch from Windows with
run.bat: the stderr noise is gone and the double-quote guard on environment variables works (#435). - You use none of this: nothing changes for you.
A bad token ends one request, not the server (#412; issue #410)
A sampled or licensed token outside the public vocabulary threw from the Qwen 3.5 collect paths. The worker's catch-all then failed every request and latched the engine (exit 2). Reported upstream (Neroued#426), most likely with MTP or DFlash drafts.
- The token is replaced with 0, the row is marked, and that one request is released through the same path a grammar dead end uses: HTTP 500, code
numerical_failure, message "the model selected a token outside its vocabulary after N generated tokens". Other rows and the engine carry on. - Forced tokens and replay still throw, since they are not sampled.
- Not measured: there is no fault-injection hook, so this was not reproduced on a card. A request that hits the new 500 under
--spec noneand--spec mtp:3next to a healthy one has not been observed.
Several models behind the router (#425; issue #336)
Each routed model keeps its own Responses store and a response id carries no routing information. The router now keeps a bounded id-to-model map (capacity --response-store-max-records times the number of models). It reads the new id from the first 64 KiB of a successful POST /v1/responses reply, including streamed ones, before the bytes reach the client, so an immediate follow-up finds the owner.
- A follow-up that names no model goes to the owner. A model the client names is honoured even if wrong (that model answers not-found). A successful
DELETEforgets the id. - An id that fell out of the map routes as before and the model answers not-found. The map lives in the router process, so it starts empty after a router restart.
- Tested with fake per-model Responses stores on a Mac; the real HTTP routes of a loaded model were not exercised in the PR.
thinking.display: "omitted" (#408)
Responses carry thinking blocks with empty thinking plus the signature; streams send the signature_delta but no thinking_delta; reasoning tokens still count in output_tokens. The hidden reasoning is kept in a bounded, process-local LRU store (sized by the response-store limits) keyed by the signature, and put back into the prompt when the client replays the empty block.
- After a restart or eviction the reasoning is dropped like a closed turn: output stays correct, only cache reuse is lost from that turn.
thinking.type=disabledwith adisplayis still a 400. Not included: persisting the store across restarts, encryptedredacted_thinking,between_tools.- Not measured on a card: that turn 2 of a tool loop with
omittedreads the same cached tokens as withsummarized.
Host memory: placement and pause (#409, #419, #423; issues #304, #406, #398)
The Host arena never compacts, so total free bytes is not the same as room for a page or a state image.
- #419: demotion victims are chosen until a simulation of the free runs can place the destination, not until a byte total is reached. On a fragmented Host the old choice could free enough bytes and still leave every run too short, and the demotion failed again.
- #409: when a state demotion has no free run for its image, only whole Host state images count as room (all images are the same size, so each leaves a fitting run).
- #423: a pause snapshot's fit is decided by replaying the allocations on a model of the arena (checked against the real arena on 4,000 random layouts), so mixed KV strides are no longer refused by a bound that rounded every run down to the larger stride. Victims may now come from inside the pause reserve.
- With an unfragmented Host, or a model without the query (qwen4_exp), nothing differs. None of this was run on a card; the PRs were tested on a Mac with CPU tests only.
Context store (#411, #416, #418, #420, #422)
- #411: with
--context-store-peer, a chunk is charged asceil(size / st_nlink), so engines sharing it pay once between them. Measured on a live 2x3090 box before the change: 42.7 GB per engine at a 40 GiB cap, 50.6 GB physical. After a peer evicts its link this engine's share rises until its next put, maintain or metrics scrape. - #416: bucket manifests that no local chunk backs may take at most a quarter of
--context-store-max-gib(oldest dropped first, registered again when there is room). Before, they were counted but never evicted, so a large bucket grew the directory past the cap. New metricninfer_context_store_remote_only_dropped_total. - #418: every bucket request now ends at
--context-store-restore-seconds, not only the start of new ones, including a slow trickle that never trips the stall timeout. - #420: retiring a session writes a tombstone per version, so an engine still holding it cannot put the old manifest back. Cost: one extra HEAD per registered manifest and per upload. Limits are listed in the PR and tracked in #428.
- #422: which peer supplied a chunk is tracked per chunk, and an image imported from a peer is marked on disk so it stays the peer's to upload after a restart.
- All covered by tests with in-memory and loopback buckets; no real S3 bucket and no card were used.
Also fixed
run.batprintedFINDSTR: Cannot open >nul84 times per start and its quote guard never fired (#435; thanks to Pawls for the report and the fix). Written without a Windows machine; verified by the reporter in cmd.- Credit for the state-image demotion fix (#409) goes to kyhoavuong (#413).
- Tests only: route-level tests for the router relay and the suspend/residency API (#421, #424), fault injection for the shared-prefix scan (#415), a seam for the packager's import check (#417), a follow-up to #409 (#414).
Not verified in this release
- Windows: built and dependency-checked only; nothing was started or served on Windows. The
run.batfix (#435) has not been run by us. - None of the fixes above was exercised on a card under the conditions it addresses (no out-of-vocabulary token, no fragmented Host, no router with several loaded models, no real bucket). Their PR tests passed, mostly on a Mac.
- No test program was run on the release commit, neither the CPU nor the GPU suite; the release only builds the three products.
- The Linux library list was not diffed against v0.17.1's; no CMake or dependency file changed.
Verification
Checked on 2026-11-07 on a rented RTX 3090 (Ubuntu 24.04, CUDA 12.8.1), against the release commit's c...
NInfer-3090 v0.17.1 - no more minutes-long stalls when the Host cache is full
NInfer-3090 v0.17.1
A server whose Host memory is full of cached history no longer freezes for 10 to 27 minutes on a long prompt, a long conversation stays warm instead of being thrown away when a short request arrives, and every ninfer-serve setting can now be set from the launcher with an environment variable. No default changed and nothing was removed.
Changes: #401, #403, #404, #405. Also #400 (release tooling). This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU and has not been run (see "Windows archive: built, not run").
Upgrade notes
- Nothing was removed or renamed. Every flag, launcher variable, endpoint and
/metricsseries of v0.17.0 is still there, so a launch script that worked on v0.17.0 works unchanged. No default changed. No flag or endpoint was added toninfer-serve; the new variables are read byrun.shandrun.batonly. - The two cache fixes change which cached history is kept when memory is tight (see below). With plenty of free memory nothing differs.
What this means for you
- You run long agent sessions with the Host cache full: a cold prompt of about 130K tokens could sit for 10 to 27 minutes making no progress while
/healthstill answered 200. That stall is gone (#404). - You keep one or two very long conversations going next to short requests (a shared system prompt, small side tasks): the long conversation's cached history used to be dropped when a short request reused the shared system prompt, so its next turn read the whole prompt again (85 to 95 seconds at 130-140K tokens on a 3090). It stays cached now (#401).
- You drive the server through
run.shorrun.bat: anyninfer-servesetting that has no launcher variable of its own can be set asNINFER_<FLAG>, for exampleNINFER_PREFILL_STALL_BUDGET_MS=50 ./run.sh qwen38-27b(#403). - You use none of this: nothing changes for you.
No more minutes-long stall when the Host cache is full (#404, #405; issue #402)
Reported on a 3090 running a long agent session. When the Host tier was full, the engine priced every possible eviction against every cached checkpoint, and the price grew with the square of the number of checkpoints being removed. A cold 130K-token prompt on the 27B made no progress for 10 to 27 minutes; a profile put about 95% of the engine thread's time in that one function.
- #404: the pricing is now close to linear. The answer it gives is the same (a test compares it with a copy of the old algorithm on 3,000 random cache layouts and matches exactly). With a full Host tier of 64 sessions of 64 checkpoints each and one action releasing 16 session tails, it does 512 comparisons where the old code did about 1.0e9. Timed on a Mac, one call went from about 380 ms to 0.4 ms. The same code was copied in
qwen4_exp; both models now share one version. - #405: when the Host's free memory was split into pieces too small to hold a page or a saved state, a move from the card to the Host was still planned against the total free bytes, failed, and was planned again on the next pass. The issue counted about 3,000 failed moves in one run. Only memory that can really take the move now counts. With an unfragmented Host, nothing differs.
Not measured: a replay of the reporter's stall on a card. The speed-up above is the function's cost in a test, not a measured end-to-end request.
A long conversation stays cached beside short requests (#401; issue #397)
The cache protects recently reused history, up to 3/4 of each resource. On the 27B, a dialogue of about 139K tokens holds about 2,200 of the 2,560 card KV pages, above that limit. A short request that reused the shared system-prompt checkpoint made that checkpoint the newest protected entry and the dialogue the oldest, so the dialogue lost its protection and its deepest Host checkpoint was released. With two state slots the limit was one slot, so two dialogues could never both stay protected.
The 3/4 limit now applies to Host bytes only, because only the Host tier loses work when an entry goes; moving a checkpoint from the card to the Host loses nothing. The ratio, the ranking and the eviction order are unchanged. The reporter measured 0 of 149 cold switches in a replay with this change and a second one together; it was not measured with this change alone. Not measured: whether pressure on the card now moves protected dialogues to the Host more often under real traffic. That is the intended trade.
Every serve setting from the launcher (#403)
run.sh and run.bat only had variables for about a dozen settings. A setting with no variable of its own is now read from NINFER_<FLAG>: the flag upper-cased, dashes to underscores (--prefill-stall-budget-ms is NINFER_PREFILL_STALL_BUDGET_MS).
- Value flags are passed as
--flag valuewhen the variable is set. Switch flags takeonoroff(NINFER_CORS=on); any other value stops the launcher with exit code 2 and a message. - Unset passes nothing, so every profile's arguments are unchanged. It applies to all profiles.
- Covered: sampling, auth and logging, prefill scheduling, media, response store, context store and S3 tuning, suspend and idle, weight transcodes,
--host-pause-reserve-miband the--lossy-prefill-*settings.run.batalso passes the Flash-Next-only flags. Left out: settings a profile sets itself, the repeatable--graftand--context-store-peer, and router mode (--models-*). - No default moved. The newer settings stay opt-in because each one is a trade-off (for example
--prefill-order shortestand the stall budget help a neighbour stream at the cost of prompt speed, and lossy prefill means the model does not see part of the prompt). docs/maintainer/launcher-profiles.mdand the README describe it.
Also changed
- Release tooling:
scripts/vast/vast-up.shnow rents the Vast offer that costs least for the whole job (GPU hours plus the host's per-GB download and upload prices) instead of the lowest price per hour (#400).
Not verified in this release
- Windows: built and dependency-checked only; nothing was started or served on Windows. In particular the
NINFER_<FLAG>handling inrun.bat(#403) has not been run; it was written without a Windows machine. - The cache fixes (#401, #404, #405) were not exercised under the conditions they fix: no full Host tier, no 130K-token dialogue and no fragmented Host was reproduced on the card. Their tests passed (see Verification), but the 10-27 minute stall and the cold re-reads were not replayed, so the real-traffic effect is unmeasured.
- Only five test programs were run on the release commit, not the full CPU or GPU suite.
- The Linux library list was not diffed against v0.17.0's. No CMake or dependency file changed since v0.17.0, and
lddreports nothing unresolved.
Verification
Checked on 2026-10-29 on a rented RTX 3090 (24 GB, Ubuntu 24.04, CUDA 12.8.1, GCC 13), against the release commit's code, before publishing:
- Build (Linux): a clean
git archiveof the release commit,-DCMAKE_CUDA_ARCHITECTURES=86 -DBUILD_TESTING=OFF -DNINFER_BUILD_BENCHMARKS=ON, targetsninfer,ninfer-serve,ninfer_bench;ninfer-serve --versionreports0.17.1-rtx3090. - Linux archive: the outer and inner checksums match; the packaged
ninfer-serve --versionand--helprun, and./run.sh --helpruns from a fresh unpack;scripts/check-linux-scripts.shpasses;lddreports no unresolved library. - Launcher smoke test: the unpacked archive's own
./run.sh qwen38-27bserved Qwen3.8-27B with the default profile and answered a chat completion ("Hello there, how are you?"). - Tests that exercise the changed code, on the card:
ninfer_recovery_loss_test,ninfer_resource_manager_test,ninfer_host_context_arena_testandninfer_qwen4_exp_context_cache_testpass.ninfer_qwen3_5_native_transactions_testpasses with the Qwen3.8-27B artifact (without one it skips). - Not run: the rest of the test suite, and any serving check beyond the one chat completion (streaming, tools, the context store, lossy prefill and the new flags were checked for v0.17.0 and were not repeated).
Windows archive: built, not run
ninfer-rtx3090-windows-x64-0.17.1-rtx3090.zip was compiled with CUDA 12.8.1 and Visual Studio 2022 on a Windows machine that has no NVIDIA GPU, so the programs could not be started there. It is the same source as the Linux archive. What was checked: the zip matches the SHA-256 in SHA256SUMS-v0.17.1-windows.txt, and every DLL the programs and libraries import is either shipped in the zip, a Windows system DLL or an NVIDIA driver DLL. Starting the programs, run.bat and a chat completion on an RTX 3090 have not been tested. If it fails to start for you, please report it; v0.16.0 remains the last Windows archive that was run on a card.
Install and upgrade
Linux: unpack ninfer-rtx3090-linux-x64-0.17.1-rtx3090.tar.gz next to your models folder and run ./run.sh <profile>; docs/release-archive-linux.md lists the glibc 2.38, CUDA 12.8, cuBLAS, FFmpeg 6, libcurl and libzstd requirements. Windows: unpack the zip and run run.bat <profile>. Check the SHA256SUMS file for your platform. Upgrading from v0.17.0 needs no change to a working launch script.
NInfer-3090 v0.17.0 - the context store stops rewriting itself, and long prompts stop holding up short ones
NInfer-3090 v0.17.0
A busy server stops stalling itself: the context store no longer rewrites the same conversations in a loop (that was cutting single-stream decode from about 85 to 21-27 tokens/s on a production box), stays inside its disk cap, and can be told to save everything before a box goes. Three new opt-in settings let short prompts get ahead of long ones, keep room for paused requests, and, experimentally, read very long prompts about three times faster by skipping the parts that matter least. No default changed.
Server changes: #384 to #387, #389, #391 to #393, #395, #396. Also #378 (re-measured figures), #380 and #388 (release tooling), #390 (README). This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU and has not been run (see "Windows archive: built, not run").
Upgrade notes
- Nothing was removed or renamed. Every flag, launcher variable, endpoint and
/metricsseries of v0.16.2 is still there, so a launch script that worked on v0.16.2 works unchanged. No default changed: every new setting below is off until you turn it on. - Added flags:
--prefill-order rotate|shortest,--host-pause-reserve-mib N,--lossy-prefill-min-tokens Nwith its tuning knobs (--lossy-prefill-*), and--request-log-lossy-detail. Added endpoint:POST /v1/context-store/flush.ninfer-serve --helpanddocs/serving.mddescribe each. - If you use
--context-store, it behaves differently in these ways:- A conversation the store removed on its own (for space or age) is written again only once it changes (its next turn). Before, it was written straight back and pushed out another one. With a store too small for all your conversations, one that was let go is lost when it leaves memory, unless it has changed since.
- The store now keeps at least 1 GiB of the disk free and refuses a write it has no room for (
context store volume is full: ...), evicting the least recently used sessions first. - With a bucket, files waiting to upload now count against
--context-store-max-gib. When the directory is full, the oldest waiting upload is given up and that conversation is uploaded at its next write. Up to 64 uploads can wait (was 16). - Progress anchors (
--progress-anchors-shared) are no longer written to the store.
- If you use
--admission-fit-check: it now also counts the part of each running request's prompt that is not read yet, so two long prompts arriving together are queued one behind the other instead of both starting. Expectninfer_admission_fit_deferrals_totalto rise and pauses (ninfer_preemptions_total) to fall. ninfer_host_context_geometry_failures_totalcounts much less. It used to count every size tried while placing pages; it now counts one per placement that failed. A dashboard alert on its rate will go quiet. That is expected.- The archive now contains
THIRD_PARTY_NOTICES.txt, the license notice for the code the summary strategy ports from hermes-vcc-engine (Apache-2.0).
What this means for you
- You run a context store with little disk or a small
--context-store-max-gib: the rewrite loop is gone, and so is the decode slowdown it caused. On the production box where it was found (two engines, a 4 GiB store each, 8.5 hours of live traffic), 85-89% of all store writes rewrote a session that had not changed, and single-stream decode ran at 21-27 tokens/s in the windows where only those writes happened, against 81-88 without them. Replaying that box's write log under the new rules gives 87-90% fewer writes. Nothing to configure. - You run several boxes behind one bucket and replace boxes: call
POST /v1/context-store/flushwhen you start draining a box. It saves every conversation and uploads what the bucket does not have yet, while the server keeps serving, then answers{"written": N, "unsaved": 0, "uploaded": true, "seconds": ...}. With that in place you can set a long--context-store-s3-upload-delay-secondsand send far less upload traffic. - You run coding agents that send long prompts and short ones at the same time: try
--prefill-order shortest. A short request that already has a lane gets past a long prompt still being read, and two long prompts run one after the other instead of both finishing late. - Your Host memory fills with cached history and
--yield-long-prefill-msstopped doing anything: set--host-pause-reserve-mibto keep room for paused requests (size below). - Your agents send cold prompts of 30K tokens and more, and you can accept that the model does not see all of it:
--lossy-prefill-min-tokens 30000is the experimental path. Read its section first. - You use none of the above: nothing changes for you.
Context store fixes (#389, #391 to #393, #396)
All found on one production box running v0.16.2 (two engines on a 36 GB disk, a 4 GiB store each, an R2 bucket and a peer link).
- Rewrite loop (#389). Any session the store removed (which happens on every turn, as a new turn replaces the old one) made the engine forget which conversations were already stored, so it wrote them all again, which evicted more, which started it again. One 110K-token session was written 763 times in two hours, and each engine handed the store 8-11 TiB in 8.5 hours. Now a conversation is written once per state. New counters:
ninfer_context_store_idle_writes_totaland_idle_export_seconds_total. - Store over its cap and a full disk (#391). One engine's store held 10.0 GB against a 4 GiB cap and the disk reached 91%; writes then failed. The cap now counts files waiting for upload, the store keeps 1 GiB of the disk free, and "cannot write" errors now say why (
No space left on device). - Good sessions deleted as "corrupt" (#391). Reading a session while a write evicted its files counted it as damaged and deleted it. A session being read is now protected until the read ends, and a missing file is fetched from the bucket again. The peer link also stopped trying (and failing) to link sessions the other engine only knew from the bucket: 5,184 failures on that box.
- Bucket lookups added about 3.4 s to request start and almost never found anything (#392). A request now reads only its own conversation's entries from the bucket, and connections to the bucket are reused instead of paying a new TLS handshake per call. A download that cannot finish before the request's wait ends stops there instead of holding up the reads queued behind it. The latency gain on a real bucket has not been measured.
- Copying sessions in and out is faster (#393, #396). Each save and each read used a fresh buffer of the session's size; most of that time was page faults. Copying 1.6 GB took about 690 ms into a fresh buffer against about 90 ms into one already in use (Linux RTX 3090 box). The engine now reuses the last buffer, at most 8 GiB, and frees it after 30 s without use. The effect on decode and request start on live traffic has not been measured.
- Why things fail is now visible:
ninfer_context_store_hydration_failures_by_reason_total{reason},_corrupt_by_reason_total{reason},_remote_download_failures_by_reason_total{reason},_lookup_hits_total,_remote_uploads_dropped_total, plus one warning line per failed hydration.
Flush before a box goes (#395)
POST /v1/context-store/flush, optional body {"budget_seconds": N} (1-3600, default 600). It writes every conversation the store does not hold as it is now, one a second between steps so requests carry on, then uploads everything waiting for the bucket without its delay. It answers when nothing is left or the budget is spent. Stop routing new turns to the box first, and call it again if unsaved is not 0 or uploaded is false. Without --context-store it answers 409 context_store_off. The reason it exists: on the production box, uploading every turn 30 s after it happened sent about 150 GB per engine in 8.5 hours, about $1.50 of bandwidth against $2.80 of rent.
Long prompts and short ones (#385 to #387, from issue #332)
-
--prefill-order shortest(defaultrotate, unchanged). Reading a prompt (prefill) already uses the whole card, so two prompts read in turns finish no sooner than one after the other; taking turns only makes the first one late. In the #332 runs (two 44K-token prompts, the second sent 10 s after the first) taking turns gave 40.1 s and 43.4 s; running them one after the other gave 27.6 s and 42.7 s. Withshortesteach request gets a deadline (when it arrived plus its predicted reading time) and the earliest deadline goes first, so short prompts overtake and a long prompt is never passed over for good. It orders only requests that already have a lane: at--max-concurrency 1a short request still waits in the queue. Measured for this release on a rented RTX 3090 with Bonsai 2 27B (two lanes, MTP, each arm run twice, ABBA):two 32K-token prompts, the second sent 3 s after the first first word, first prompt first word, second prompt rotate(default)25.6 s, 26.9 s 26.6 s, 26.9 s shortest15.6 s, 15.7 s 26.8 s, 26.9 s With one long prompt and one short one, the two settings gave the same times (the short one's first word in 1.6 s either way), because taking turns already lets a short prompt in at the next step. While a long prompt is being read, the other lane's reply is still slowed: a 32-token answer took about 9-15 s beside a 52K-token prefill under either setting.
-
--host-pause-reserve-mib N(default 0, off). Keeps N MiB of the Host budget that cached history can never fill, so pausing a request saves its progress without evicting anything, and--yield-long-prefill-mskeeps working when the cache is full (on #332 it fired 0 times with 11.7 of 12.8 GB of the Host holding history). Size it for one paused request: its share of the KV pool (the startup `capa...
NInfer-3090 v0.16.2 - shared conversation stores resume across machines and use far less bandwidth
NInfer-3090 v0.16.2
If you share conversations between machines through a context store bucket (S3 or R2), they now actually resume on the other machine, and the bucket traffic that was costing more than the GPU rental drops sharply. If you do not use --context-store-s3-endpoint, nothing about how this release serves changes.
Four pull requests change the server (#366, #373, #374, #363) plus build, CI and documentation work (#361 to #365, #371, #376, #377). This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU or driver and has never been run (see "Windows archive: built, not run"); v0.16.0 remains the last Windows archive that was run on a card.
Upgrade notes
- No flag, launcher variable or
/metricsseries was removed or renamed since v0.16.1. A launch script that worked on v0.16.1 works unchanged. - One flag was added:
--context-store-s3-upload-delay-seconds N(default 30). It needs--context-store-s3-endpoint, like the other bucket flags; giving it without one is rejected at start-up. - Sessions stored in a bucket by v0.16.0 or v0.16.1 are not reused after upgrading. Stored sessions are now matched on the artifact's own id instead of its file's download time, so the key they are filed under changes once. The first request of each conversation after the upgrade prefills in full; later turns resume as before. Old objects are never read again. They expire under the bucket lifecycle rule, so if you have not set the 7-day expiration rule on the prefix (
docs/serving.md), add it, or the old objects stay. - Sessions written to a bucket are uploaded 30 seconds late, by default. A newer turn of the same conversation replaces one still waiting, so a burst of turns is sent once. Shutdown uploads immediately. Set
--context-store-s3-upload-delay-seconds 0for the old behaviour. - Start-up no longer downloads sessions from the bucket. It restores only what is already on the disk; a bucket session is downloaded when a request asks for it. A fresh box therefore starts faster and cold, and the first request of a conversation that moved here pays for the download.
- Prompt grafts: sessions that start from a configured graft still match by the graft file's size and modification time, so they pass between machines only when the graft file is the same copy.
What this means for you
- You run several boxes behind one bucket (rented GPUs, drained and replaced boxes): a conversation that moves to another box now resumes from its stored session instead of prefilling from scratch. Before this release it never did, because two machines that downloaded the same model file gave it different timestamps and so different keys. Reported on a fleet of RTX 3090 boxes: 0% cached tokens on prompts of 78K to 100K tokens that had moved boxes.
- You pay for bucket traffic: see the numbers below. Nothing to configure; the defaults changed.
- You use
json_schemawithminLength/maxLength: string limits are handled by a smaller, shared grammar (#366). - You build from source with CUDA 13 or MSVC: three source changes let the tree compile there (#363). CUDA 12.8 behaviour is unchanged.
- You use one box and no bucket, or a local-disk context store: nothing changes for you.
Bucket traffic (#374)
Measured on one vast.ai RTX 3090 box on v0.16.1 with Cloudflare R2, over 6.5 hours and 212 text requests: about 186 GB downloaded and 51 GB uploaded, which cost more than the rental. The causes and what changed:
- Earlier turns of a conversation stayed in the bucket and were downloaded again on every refresh, more each turn (0, 1, 3, 6, 10, 15 manifests over six turns of one conversation). Now a turn's upload deletes the turns it supersedes, so the bucket holds one session per conversation.
- Every turn was uploaded at once, though the next turn replaced it seconds later. Now it waits (the 30 seconds above).
- A session's index (the per-token header) was re-sent in full every turn, 2 to 6 MB. Now it is stored in pieces and a turn re-sends about 0.5 MB whatever the context length; a session's manifest is a few KB.
- Saved recurrent states moved every turn, so unchanged ones were uploaded again. Each is now stored on its own, so one that did not change is never sent again.
- Sessions that share an opening (an agent's system and tools prompt) store that opening once, in the bucket and on the disk, and a box that holds it downloads only a conversation's own part. Shared openings are evicted last.
- Bucket keys sit under a folder named by a hash of the model and settings, so a box lists only sessions it could use.
- Downloads were invisible in the counters.
ninfer_context_store_remote_manifest_download_bytes_totaland_remote_manifest_downloads_totalnow count them. Also new:_lookups_total,_lookup_seconds_total,_remote_retired_total,_remote_uploads_skipped_totaland_remote_fetch_bytes_per_second.
These are the causes found in the logs of that one box; the reduction in bandwidth has not been measured on a real bucket for this release, only reproduced as CPU tests (for example, six turns of one conversation: no manifest re-downloads, against 0/1/3/6/10/15 before). Expect the quadratic growth to be gone; do not expect a particular percentage.
Known limit (#375): deleting a superseded session from the bucket is best effort. If another engine re-publishes an old one, or a crash loses a pending delete, a stale manifest can come back; the conversation's next turn removes it again, at the cost of a few KB of download per occurrence.
Also changed
- Length-bounded JSON strings in constrained output (
minLength/maxLength) compile to counted repetitions instead of one rule per length, so the rule count and mask size stop growing with the limit (#366, from upstream). Output is unchanged; the schema test ran about 3x faster in the PR's small sample. - Build: the tree compiles with CUDA 13 and MSVC (#363). CI now builds and runs 38 CPU tests without
nvccon every pull request (#376). - Docs: the fit calculator is shown in the README and served on GitHub Pages (#377), with model-card charts and a llama.cpp comparison (#361, #362), README badges and a demo (#364, #365).
Not verified in this release
- Windows: built and dependency-checked only; nothing was started or served on Windows.
- The context-store changes (#373, #374) were not run against a real bucket, and not on a GPU. Their tests are CPU tests (an in-memory bucket and a GPU-free fake model). The two-box check in #373 (second engine's
remote_downloads_totalandhydrations_totalrise on a copy of the artifact with a different file time) has not been run, andqwen3_5checkpoint export (export_checkpoints) was compiled but not run on a GPU. - #363 was written without a CUDA 13 compiler; it is known to compile only on CUDA 12.8 (this release's toolkit).
- The full GPU test suite on the release commit.
Verification
Checked on 2026-10-24 on a rented RTX 3090 (24 GB, Ubuntu 24.04, CUDA 12.8.1, GCC 13), against the release commit's code, before publishing:
- Build (Linux): a clean
git archiveof the VERSION commit,-DCMAKE_CUDA_ARCHITECTURES=86 -DBUILD_TESTING=OFF, targetsninfer,ninfer-serve,ninfer_bench;ninfer-serve --versionprints0.16.2-rtx3090. - Linux archive: the outer and inner checksums match; a fresh unpack runs
./ninfer-serve --version,./ninfer-serve --helpand./run.sh --help;scripts/check-linux-scripts.shpasses;lddreports no unresolved library for the three executables. The dependency list was not diffed against v0.16.1's. - Real-card smoke test: the unpacked archive's own
./run.sh qwen38-27b(Qwen3.8-27B) was ready in 19 s,/healthreported0.16.2-rtx3090, and a chat completion answered ("Hello there, how are you"). The context-store bucket paths were not exercised (no bucket flag was set). - Tests: none were run for this release; it builds the three products only. The pull requests carry their own CPU tests (see their descriptions).
Windows archive: built, not run
ninfer-rtx3090-windows-x64-0.16.2-rtx3090.zip was compiled with CUDA 12.8.1 and Visual Studio 2022 on a Windows machine that has no NVIDIA GPU, so the programs could not be started there. It is the same source as the Linux archive. What was checked: the zip matches the SHA-256 in SHA256SUMS-v0.16.2-windows.txt, and every DLL the 13 programs and libraries import is either shipped in the zip, a Windows system DLL or an NVIDIA driver DLL. Starting the programs, run.bat and a real chat completion on an RTX 3090 have not been tested. If it fails to start for you, please report it; v0.16.0 remains the last Windows archive that was run on a card.
Install and upgrade
Linux: unpack ninfer-rtx3090-linux-x64-0.16.2-rtx3090.tar.gz next to your models folder and run ./run.sh <profile>; docs/release-archive-linux.md lists the glibc 2.38, CUDA 12.8, cuBLAS, FFmpeg 6, libcurl and libzstd requirements. Windows: unpack the zip and run run.bat <profile>. Check the SHA256SUMS file for your platform. Upgrading from v0.16.1 needs no changes to a working launch script (see "Upgrade notes" for what a bucket does after the upgrade).
NInfer-3090 v0.16.1 - long prompts stop freezing the streams beside them, constrained JSON fixed
NInfer-3090 v0.16.1
A long prompt no longer has to freeze the streams next to it: five new opt-in controls cut the stall from about 3 seconds to about 0.4 seconds or let a short request jump the queue, constrained JSON output stops coming back corrupted, and one server can now hold several models. Nothing changes unless you turn something on, with one exception: JSON output layout (below).
About 35 merged pull requests since v0.16.0 (#291 to #359). This release ships a Linux x86-64 archive and a Windows x64 archive. The Windows archive was built on a machine with no NVIDIA GPU or driver and has never been run (see "Windows archive: built, not run" below). Windows users who want a tested build can stay on v0.16.0. Nothing in this release removes a flag, a launcher variable or a metric.
Behaviour that changed
- Constrained JSON output (
response_formatjson_object/json_schema) is laid out the way the model writes it, not compacted. v0.16.0 forced compact text, which pushed the model off its normal tokens and produced replies that parsed as JSON but were wrong: empty keys, punctuation as values, scalars wrapped in arrays. Measured on the 27B: before,{"city":", ","country":"France",...}; after, correct, indented JSON. The same values come back, with spaces and newlines between tokens (runs of whitespace are capped at 32 characters). If you diff or hash the raw text, expect a different layout.json_objectwith"schema":{"type":"object"}(what llama.cpp-style clients send) is now accepted (#335, fixes #331).
No other defaults moved. There are no removed flags, launcher variables or /metrics series since v0.16.0. API parsing only got more permissive (#317, #335).
What this means for you
- You run agent fleets next to long prompts and a 100K-token paste stalls every other stream for seconds: pick
--prefill-layer-slices 8(smallest gap) or--prefill-stall-budget-ms 500, and add--yield-long-prefill-msif short requests queue behind the long one. Numbers below. - Your clients cancel and retry long prompts (timeouts, dropped connections):
--progress-anchor-tokens N --progress-anchors-sharedkeeps the work done so far, so the retry restarts near where the first attempt stopped (57.8 s down to 24.5 s on a 108K-token prompt). - You share the card with a game or another program:
--model-suspendhands the GPU memory back while idle and takes it again on the next request. - You want several models behind one address:
--models-dir DIRor--models-preset FILE(router mode). - You scrape
/metrics: GPU utilization, memory, temperature, power and cumulative energy are now exported. - You do nothing: your server behaves as before, apart from the JSON layout above.
Long prompts next to other streams (all opt-in, default off)
A prompt that is not in any cache is read in chunks. While one chunk runs, a neighbouring stream gets no tokens, and a short request behind it waits for the whole prompt. Measured on the release commit's code, on one RTX 3090, Qwen3.8-27B (--prefill-cublas --kv-dtype int8 --max-concurrency 2 --prefill-chunk 4096), a stream at 48 tokens/s next to one 108K-token uncached prompt, a fresh server for each row:
| setting | neighbour's longest wait for a token | the 108K prompt takes |
|---|---|---|
| none (as before) | 3.01 s | 57.7 s |
--prefill-stall-budget-ms 500 |
0.52 s | 73.6 s |
--prefill-layer-slices 8 |
0.39 s | 61.2 s |
--prefill-stall-budget-ms 500 --prefill-decode-share 50 |
0.52 s, and the stream runs at its normal pace in between | 146.9 s |
--prefill-layer-slices N(#352) runs each chunk as N groups of layers and lets the neighbour decode between groups: a 7.7x shorter stall for 6% more prompt time. Text prompts only; not with media, DFlash or a multi-GPU split.--prefill-stall-budget-ms N(#341) shrinks the chunk while a neighbour decodes. Simple, but it slows the prompt by 28%.--prefill-decode-share P(#342) gives the neighbour P percent of the prefill's time as extra decode rounds. It makes the prompt take 2.5x as long at 50%; use it only when the stream must not pause at all.--yield-long-prefill-ms N(#343) pauses a long prompt when a short request is waiting for a lane. A short request sent 10 s into the 108K prompt got its first token after 1.05 s instead of 47.9 s; the long prompt finished about 1 s later (58.7 s against 57.7 s).--progress-anchor-tokens N(#338) with--progress-anchors-shared(#340): a cancelled prompt leaves its work behind. Cancel at 35 s and resubmit: the retry took 24.5 s instead of 57.8 s, with 73,728 tokens reused. Without--progress-anchors-sharedthe anchors are private and a cancel drops them.--admission-fit-check(#337) queues a prompt that cannot fit beside the requests already running, instead of starting it and having it paused. Two 50K-token prompts into a 70K-token pool: one preemption fewer, the first prompt finished in 20.5 s instead of 27.3 s, the pair in the same 40.8 s.ninfer_prefill_backlog_secondsand theprefill_backlog_secondsfield of/v1/load(#344) report how much prefill work is queued ahead of a new request (24.9 s with one 50K prompt running and another queued).
Output is unchanged: greedy text of a 56K-token prompt beside a stream and a short request was identical with and without each option and with all of them together. tools/bench/run_prefill_stall.py (#345) reproduces these measurements on your own card; docs/maintainer/long-prefill-handoff.md has the method and the time model (#353).
One server, several models; giving the GPU back
- Router mode (#316):
ninfer-serve --models-dir DIRor--models-preset FILE.iniserves every model in the folder on one address. Models load on first request; at--models-maxthe least recently used idle model sleeps or unloads. Measured with two copies of the 27B: first request 6.0 s, later swaps about 4.0 s. Multi-GPU router mode was not exercised. - Model suspend (#315):
--model-suspendreturns the model's GPU memory while idle (15.4 GiB on the 27B in about 0.15 s) and takes it back on the next request (3.3 s from the artifact, 1.9 s from a host copy).--sleep-idle-seconds Ndoes it automatically. - GPU metrics (#348, #349):
ninfer_gpu_utilization_percent,ninfer_gpu_memory_*,ninfer_gpu_temperature_celsius,ninfer_gpu_power_wattsandninfer_gpu_energy_joules_total(NVML, loaded at run time; a missing driver never stops startup).
Cached conversations
- Peer stores (#329):
--context-store-peer DIRlets two engines on one box share the conversations they finish, by hard link; one directory has one writer, enforced by a lock. Hard links need both directories on the same volume. - Compression (#328):
--context-store-compresswrites zstd chunks. On a real 3-conversation workload the store was 7.9% smaller and reading it back was 25 to 30% slower. Off by default. prompt_cache_keyon Chat Completions (#317) keeps a resumable point for tool-calling loops, as Responses and Anthropic requests already did; keys up to 256 bytes are accepted (was 64 on Chat).
Models
- Ternary Bonsai 2 27B (#323):
scripts/download-model.sh bonsai2-27b. A 2.125-bit ternary build of Qwen3.8-27B: 6.7 GiB of weights instead of 14.6, 88 tokens/s plain and 297 tokens/s with DFlash2 on the 3090 (this fork's 6-bit 27B: 48 and 195 on the same prompt), prefill about 2.8K tokens/s. - Qwen3.8-Flash-Next two lanes (#291, Windows preview):
--max-concurrency 2is available but opt-in; it missed its throughput target (1.07x against 1.15x) and shipped for the 6% shorter makespan on bursts.
Also fixed
- A paused request keeps its snapshot when the Host arena is fragmented, instead of replaying its whole prompt (#334). This was written without a GPU and its test is a CPU test; a before/after on a fragmented arena has not been run.
- A shared-prefix export failing on one candidate no longer drops the others (#308); overlay vision on a multi-GPU split works (#314).
- Linux builds:
ninfer_qwen4_exp_memory_plan_test, the chunked-reservation compile and the model-registry test link all build on GCC 13 now (#339, #354, #357, #359).
Not verified in this release
- Windows: the archive was built and its dependencies checked, but none of its executables were started and nothing was served on Windows for this release. See "Windows archive: built, not run".
- The model suspend, router, Bonsai, peer store, compression and GPU metrics numbers above come from their pull requests, which measured them with the Windows build; they were not re-measured on Linux for this release. The long-prompt numbers (the table, yield, anchors, admission fit) were measured on Linux on a 3090 for this release or on the branches merged into it.
- Pipeline stages and router mode on two physical GPUs, and model suspend with a cold page cache.
- A before/after for #334 (fragmented Host arena) and for the context-store changes on Flash-Next.
- The full GPU test suite on the release commit. The slow op tests and the other real-model tests were not run; what ran is listed under Verification.
- One known timing flake:
ninfer_qwen4_exp_ngram_volume_test(a 20 ms check) can fail under load.
Verification
Checked on 2026-10-22 on a rented RTX 3090 (24 GB, Ubuntu 24.04, CUDA 12.8.1, GCC 13), against the release commit, before publishing:
- Windows: built and dependency-checked only (see above); not run.
- Build (Linux): a clean
git archiveof the VERSION commit,-DCMAKE_CUDA_ARCHITECTURES=86 -DBUILD_TESTING=OFF, targetsninfer,ninfer-serve,ninfer_bench;ninfer-serve --versionprints0.16.1-rtx3090. - Linux archive: the outer and inner checksums match; a fresh unpack runs
./ninfer-serve --version,./ninfer-serve --helpand./run.sh --help;scripts/check-linux-scripts.shpasses;...
NInfer-3090 v0.16.0 - faster long prompts, a cache that keeps conversations, Flash-Next on 24 GB (breaking flag changes)
NInfer-3090 v0.16.0
Long prompts are read faster, agent turns that copy text back decode up to 87% faster, cached conversations are reused far more often, and Qwen3.8-Flash-Next can now be served on a 24 GB card. Upgrading needs action if you start ninfer-serve with your own flags or call /slots: about 15 serving flags, the /slots endpoint, several launcher settings and the old /metrics names are gone.
About 75 merged pull requests since v0.15.1 (#212 to #307).
Breaking changes: read before upgrading
The context cache was replaced by a new engine (#214). It sizes itself, so the knobs that used to
size the old one no longer exist. ninfer-serve stops at startup with unknown argument: <flag>
if you pass a removed flag, so a stale launch script fails loudly instead of running differently.
| Removed | What to do instead |
|---|---|
--host-state-slots, --max-shared-prefixes, --max-private-continuations, --auto-prefix-grid, --host-kv-mib, --max-long-anchors-per-continuation, --auto-long-anchors, --progress-anchor-tokens, --max-cache-markers-per-request |
Delete them. One pinned Host budget now holds every cached conversation: --host-context-mib N (default 8,192 MiB plus 8 StateImages), or --auto-host-cache to size it from the RAM still free. |
--max-prefill-lanes, --prefill-max-skip, --decode-rounds-per-prefill |
Delete them. The scheduler decides how prompts and decoding share the card. (v0.15.1's default of reading two long prompts at once no longer applies.) |
--output-reservation-tokens |
Delete it. A request now takes KV pages as it decodes. |
--lookup-ngram |
--ngram-draft-tokens and --ngram-min-match (see below). |
--slot-save-path and the GET / POST /slots endpoints |
--context-store DIR keeps cached conversations across restarts (off by default, see below). |
Other changes that can break a script, dashboard or client:
/metricsseries are renamed.ninfer:*becameninfer_*(Prometheus reserves colons), for
exampleninfer:requests_totalis nowninfer_requests_total{outcome="completed"}and
ninfer:prefix_cache_hit_tokens_totalisninfer_prompt_tokens_cached_total. The old names are not
emitted and there is no alias period. Thellamacpp:*series are unchanged. The full old-to-new
table is in the description of #214. Counters now count from when the server attached its engine
after warmup, not from process start. Update dashboards and alerts.- Launcher environment variables. Removed from
run.sh/run.bat:NINFER_HOST_STATE_SLOTS,
NINFER_FALLBACK_BASE_CHUNK,NINFER_FALLBACK_BASE_CONTEXT,NINFER_FALLBACK_BASE_SLOTSand
NINFER_FALLBACK_RUNG. The launcher now starts at the largest context that fits instead of failing
and reloading, andNINFER_FALLBACK=offstill turns that off. The host budget is set with
NINFER_HOST_CONTEXT_MIB;NINFER_AUTO_HOST_CACHE=onand theNINFER_HOST_CACHE_*limits still work. - Tool calls are grammar-constrained by default (
tool_constraints: "basic"). A client that sends
stopstrings orignore_eoswithout settingtool_constraintsfalls back to free tool calls
rather than getting an HTTP 400. - API changes from the spec audit (#289, #306). A string message
nameis now accepted and
ignored on every role instead of returning 400.safety_identifiermay be up to 128 characters
(was 64). A Responses request withasync: trueon a function tool is rejected with
async_tools_not_supported; Anthropicthinking.type: "between_tools"returns
thinking_type_not_supported. - Request-log schema is now v29. Anything that parses the JSON request log should accept the new
fields. - Builds from source:
ninfer_coreandninfer_opsare built without relocatable device code by
default (NINFER_CUDA_RDC=OFF, #307). The release binaries are built this way. Measured on a
27B benchmark the speed is the same within about 1%, but the compiler produced different register
allocation for roughly a third of the kernels, so this is a codegen change.
What this means for you
- You run
run.sh/run.batwith the stock profiles. Upgrade and do nothing. The launchers were
moved to the new Host budget and n-gram copy drafting is on by default in the DFlash2 profiles. If
you override launcher environment variables, read the breaking-changes list first. - You start
ninfer-servewith your own flags, or scrape/metrics, or call/slots. Go through
the breaking-changes list above. Each removed item has a replacement or can simply be deleted. - You drive coding agents on a 27B and read long files and codebases. Long prompts prefill faster
and agent turns that write text back from the prompt decode faster, with no flag to set. - You run several agents or tenants on a shared box. The new engine keeps far more of each
conversation cached (hit rate 32.7% to 78.6%, first word 8.8 s to 2.9 s mean in the test below), and
you can now add a disk copy that survives restarts. - You have no spare VRAM or RAM. Qwen3.8-Flash-Next and the NVMe checkpoint tier let a conversation
resume from local disk.
Faster on the Qwen3.8-27B
RTX 3090, launcher settings, interleaved runs in one sitting, v0.15.1 against master (#280):
| v0.15.1 | this release | change | |
|---|---|---|---|
| reading a 512-token prompt (tok/s) | 1,985 | 2,011 | +1.4% |
| reading a 4,096-token prompt | 3,000 | 3,044 | +1.5% |
| reading a 16,384-token prompt | 2,651 | 2,815 | +6.2% |
| reading a 65,536-token prompt | 1,823 | 2,172 | +19.1% |
| writing 128 tokens that copy the prompt, 2K context | 242.9 | 454.1 | +87% |
| writing 128 tokens that copy the prompt, 32K context | 253.6 | 403.2 | +59% |
| writing 512 tokens from a one-token seed | 62.95 | 60.10 | -4.5% |
- Copy drafting (n-gram). When the model is about to write text that already appeared in the
request (an edited file, a tool result,cat -noutput), it proposes up to 15 copied tokens at once
and checks them. A wrong copy costs speed, never output. It is on in the one- and two-lane DFlash2
launcher profiles; the flags are--ngram-draft-tokensand--ngram-min-match. On a replay of four
whole agent sessions (up to 117K tokens) decode was 42% faster at one lane, with turns that explain
rather than copy unchanged to 5% slower. - The cost. Plain generation from a one-token seed is 4.5% slower. It is not the round cost: the
stream accepts slightly fewer tokens per round after the attention kernels were retuned (#240). On 60
real chat prompts of 59-76 tokens the change in total rounds was -0.5%, within noise, so we treat
it as neutral for chat, but it was measured on one card with greedy thinking-mode prompts only. - Prompts of 129-511 tokens now use cuBLAS (#228) and long prompts use a new INT8 attention kernel
(#226, #237).
A cache that keeps conversations (new engine)
Measured on the 27B with four agents on two lanes and histories of about 40K tokens (#214):
| cache hit rate | first word, mean | first word, worst | |
|---|---|---|---|
| before | 32.7% | 8.79 s | 24.7 s |
| after | 78.6% | 2.86 s | 5.13 s |
- The gain needs both the new engine and the removal of the old Windows cap on pinned host memory.
The new engine with the cap still in place measured 20.6% hits, worse than before. - Under memory pressure the scheduler drops cached checkpoints first, then pauses a younger request and
resumes it later from a RAM snapshot or by replaying its tokens. - Speed is unchanged on the usual rows (within 1% on prefill, plain decode, DFlash2 and MTP) and
perplexity is bit-identical. - Pinned host memory is no longer limited to (free VRAM - 1 GiB) / 2. The launcher profiles now pin
about 8 GiB, and pinning costs about 0.5 GiB of free VRAM.
Keeping the cache across restarts (--context-store DIR, off by default)
- Conversations are written to disk after 30 s idle and at shutdown, and a restart restores them.
An optional S3-compatible bucket can hold a second copy. - Disk-aware eviction (#295). Conversations pushed out of RAM are written first, so they can come
back from disk. With a small RAM budget (2 GiB) this lifted the hit rate by 0.14 to 0.42, halved
the 95th-percentile first word or better, and cut the run time by 8-50% in the test mix. With 8 GiB
of RAM it made no measurable difference, while still writing 340-460 GB an hour, so on a large RAM
budget turn it off unless you need restarts. - Disk write volume is the cost to watch on SSDs. A filter that skips re-writing shared prefixes cut
those writes from 77 to 3 per run. - Hydration from disk is priced by a learned read speed (#287).
Qwen3.8-Flash-Next on a 24 GB card (Windows preview)
The 512-expert Qwen3.8-Flash-Next at 2 bits per weight, with the experts pinned in host RAM (about 33
GiB). Measured on the same RTX 3090 (README):
- Plain decode is 1.15-1.18x Strata's on the same GGUF (81 / 80 / 78 tok/s after a 1K / 8K / 32K
prompt against 71 / 70 / 66). With MTP 109-113 tok/s, identical tokens to plain decoding. - Prefill 2,345 tok/s at 4K, 1.23x Strata's, with the n-gram volume on NVMe (
NINFER_NGRAM_VOLUME). - Image input works, and a pinned downloader fetches the model (
download-model). - It reuses prompts now (#285). A repeated 24K prompt answers its first word in about 0.12 s
instead of 10.6 s, and cold prefill and decode are unchanged against the build before. - Disk tiers (#296).
--context-nvme-mib Nkeeps checkpoints in a scratch file on local disk
(removed at exit), so a machine with little spare RAM still reuses prompts: about 0.2 s per repeated
24K prompt from disk-only against 0.12 s from RAM. With--context-store, a restarted server answered
the 24K request in 0.21 s (RAM) or 0.45 s (disk only), against 10.8 s cold. These restart numbers are
one run per cell. - Limits: one request a...