NInfer-3090 · RTX 3090 · 24 GiB

Fit Calculator

Pick a model, a KV format and a context length; this says whether it fits in 24 GiB, and what it costs you in decode speed and perplexity. Every constant is measured on this fork, not estimated from parameter counts — see the method notes at the foot.

Configure

Qwen3.8-Flash-Next is not listed: it keeps its experts in system RAM, so whether it runs depends on having 64 GB of RAM rather than on this card. Its hardware notes.

Result

Memory budget

012 GiB24 GiB
Largest context that fits
—
Decode at this depth
—
Perplexity cost
—

KV formats, measured

FormatBytes / tokenLargest context Perplexityvs bf16Decode @ 32k

Decode speed against cache depth

Decode tokens/second, no speculation. Attention re-reads the whole cache every step, so a format's cost only appears at depth — measuring at a shallow cache would show almost no difference between any of these. Each figure is the mean of three timed repetitions after one warm-up.

What speculation costs and buys

ModeWeightsDecodeAcceptance

Measured at an 8,192-token context with INT8 KV, decoding 128 tokens from a one-token prompt. That is free-running text, so acceptance here is a floor: MTP3 roughly doubles all three dense models, and on the 35B the draft head lifts it to 301 tok/s. DFlash2 drafts much better on real prompts than in this test; its chat-prompt speeds are in the model cards and the README.

How these numbers were taken

All measurements were taken on 2026-10-24 in one session on an RTX 3090 at its stock 350 W (24 GiB, sm_86, CUDA 12.8, Linux) on this fork, with ninfer_bench and ninfer-perplexity, against the artifact each model's download script fetches.

The model is checked against the engine, not just against itself. A 262,144-token INT8 context on the 27B fits a headless card, and the engine reports its runtime reservation as 9,181,618,688 bytes. Adding this page's own terms — 262,144 × 33,792 for the cache, 166,470,144 fixed, 16,384 for the per-token remainder, 144,179,200 of workspace and 12,582,912 of graph allowance — gives 9,181,618,688. An exact match, so the arithmetic here is the arithmetic the engine actually applies. Qwen3.6-27B, the same geometry with heavier weights, is refused with requested Engine runtime reservation requires 9181618688 bytes, and Bonsai's reported reservation matches the page to the byte as well.

One difference worth knowing: --kv-capacity auto holds back a further 1 GiB of sizing headroom on top of everything above. The largest context this page reports is what physically fits; the largest the engine will auto-size to is whatever fits with that extra gibibyte also spoken for. Ask for a context explicitly and you get the former.

What this does not model

Single-lane serving only. Concurrency changes the picture: --kv-capacity is a shared pool while --max-context is a per-request cap, so a second lane does not cost twice the memory unless you also want twice the per-request context. Vision in overlay residency costs no resident capacity. Prefill throughput, time-to-first-token and multi-GPU expert offload are all out of scope here — see docs/performance.md.

Speculative modes are now modelled per mode, and cross-checked against the engine. Every term — resident weights, CUDA graph allowance, the fixed and per-token parts of the non-KV sequence block, and the extra cache each backend reserves — is measured separately for each speculation option with the arguments of scripts/sweeps/speculative-memory-terms.ps1. Two configurations are pinned against the engine's own arithmetic: MTP3 with the draft head on the 27B at a 262,144-token context agrees to 0.021%, and DFlash-3 on the 35B agrees exactly.

The two backends behave differently and the page reflects that. MTP buffers extra draft tokens in the KV format, so its cost is a multiplier — +6.27% per token on the 27B-class models, +10.04% on the 35B — identical across storage formats. DFlash v1 instead reserves a fixed 4,096 bytes per token regardless of format, which as a ratio would read as +38.8% on int8 and +71.1% on nvfp4. DFlash2 costs nothing per token and pays entirely in a graph allowance that is itself context-dependent: 392 MiB up to 8,192 tokens and 584 MiB beyond, against 12 MiB with speculation off.

Weight profile. Every model here is measured against the one weight artifact its download script fetches. The runtime also accepts other weight profiles for the same model family with different resident sizes (see src/runtime/engine/context_cache/context_cost_defaults.cpp); these figures do not apply to a differently-quantized weight artifact.

Estimates between measured depths are interpolated, and anything past the deepest measured point is extrapolated and marked as such. Both are done in seconds-per-token rather than tokens-per-second, because step time is what grows linearly with cache depth; extrapolating the rate directly would have it fall through zero a few hundred thousand tokens out. Treat an extrapolated figure as the shape of the curve, not a promise.