Skip to content

ReVolta 0.2.0: INT8 KV by default, +35% GPU KV, 7.3M-token Host KV, NVLink auto-tuning

Latest

Choose a tag to compare

@Leonccaa Leonccaa released this 28 Nov 14:06
· 33 commits to main since this release
417505b

The first stable release since 0.1.5: 283 merged pull requests for Qwen3.8 Flash-Next on four V100 32 GB GPUs. GPU KV with DFlash2 grows from 1.37M to 1.85M tokens (+35%), new Host KV holds 7.33M tokens in 98 GiB of RAM and really runs eight 512K sessions at once (GPU KV runs two or three and queues the rest), INT8 KV is now the default (2.5× closer to FP16 than calibrated E4M3 and 6% less time per round), a cached 32K document comes back from SSD after a restart in 1.0 s (was 1.5 s), and fully connected NVLink systems tune themselves: 16.4 ms per decode round at one request, 38% less than without tuning.

At a glance: 0.1.5 → 0.2.0

0.1.5 0.2.0 Change
GPU KV pool, AWQ + DFlash2 (512K, 8 sequences) 1,366,121 tokens 1,851,676 tokens +35%
GPU KV pool, AWQ + MTP4 1,153,143 tokens 1,194,816 tokens +4%
Host KV pool (98 GiB of RAM) not available 7,329,312 tokens new
512K sessions running at once 2 with GPU KV; the rest queue 8 with Host KV (98 GiB) 4×
1M sessions running at once 1 8 with Host KV (192 GiB) 8×
Default KV format E4M3, calibration pack per checkpoint INT8 per token and head, no calibration
KV fidelity vs FP16 (KL, lower is better) 0.061 (calibrated E4M3) 0.024 (INT8) 2.5× closer
Time per round, MTP, 8 requests 123.3 ms (E4M3) 116.0 ms (INT8) −5.9%
32K document, cold time to first token 10.1 s 8.56 s −15%
32K document from SSD after restart 1.5 s 1.01 s −33%
Cold prefill at 128K, one request, PCIe 3,016 tok/s 3,898 tok/s +29% (at 200 W instead of 250 W)
Cold prefill at 32K, one request, NVLink 4,505 tok/s 7,892 tok/s +75% (at 300 W instead of 200 W)
NVLink time per round, 1 / 4 / 8 requests 26.51 / 35.52 / 46.28 ms 16.43 / 23.45 / 32.81 ms −38% / −33% / −28%
NVLink cold time to first token, 32K 6.29 s 4.17 s −33%
SSD writes written right away delayed 300 s; replaced pages never written much fewer
Draft tokens per step fixed follow the number of requests
Serving settings tuned by hand applied by the profile

PCIe rows: AWQ g32, TP4 + DCP2, 512K context, 8 sequences. A decoding request needs all of its K/V on the GPU, so with GPU KV the sessions that run at once are the pool size divided by the context (0.1.5: 2.20× and 2.61× at 512K for MTP4 and DFlash2; 0.2.0 GPU KV: 2.28× and 3.53×); a CPU KV pool saves recomputation for waiting requests but does not let more run. Host KV limits: startup plan at 512K with 98 GiB, planner arithmetic (0.2.0rc15) at 1M with 192 GiB; see Host KV. 0.1.5 capacities and the 32K document times were measured on 0.1.4 with E4M3 KV (unchanged in 0.1.5); the 128K prefill baseline is 0.1.2 with MTP4 at 250 W. KL and time per round compare INT8 with calibrated E4M3 on the same build (#313). The NVLink prefill baseline is the 0.1.2 community result (AWQ + MTP4, 200 W, another machine); 0.2.0 was measured at 8K, 32K and 64K on NVLink (7,953 tok/s at 64K), not at 128K. Other NVLink rows: public NVFP4 + MTP5 default; the baseline is the same command without auto-tuning, the change is measured before and after on one machine, and the 0.2.0 values are the release package on a second machine. 0.1.5 and 0.2.0 used different decode benchmarks, so decode throughput is not compared across versions.

Speed and quality on 0.2.0

Configuration Output, 1 / 4 / 8 requests Cold TTFT, 32K KV pool GSM8K / MMLU
PCIe · AWQ + DFlash2 (our server) 97.4 / 283.0 / 360.1 tok/s 8.54 s 1,851,676 90.0% / 87.7%
PCIe · AWQ + MTP4 (reference launch) 114.4 / 260.7 / 378.1 tok/s 8.23 s 1,194,816 88.5%* / 88.0%
PCIe · AWQ + MTP5, Host KV 91.1 / 255.1 / 332.4 tok/s 8.44 s 7,329,312 (host) 90.5% / 88.0%
PCIe · NVFP4 + MTP5 97.6 / 264.5 / 396.6 tok/s 7.75 s 1,488,853 90.0% / 89.0%
PCIe · NVFP4 + DFlash2 103.7 / 280.7 / 372.7 tok/s — 1,700,147 90.5% / 88.7%
NVLink · NVFP4 + MTP5 (public default) 136.1 / 370.9 / 532.4 tok/s 4.17 s 1,305,719 90.5% / 88.0%
NVLink · AWQ + DFlash2 109.9 / 301.0 / 441.8 tok/s 5.09 s 1,778,942 92.5% / 88.0%
  • All seven configurations pass the quality gate, with no errors, NaN or out-of-memory failures. *With a 512-token answer limit some long GSM8K answers are cut off; at 1,024 tokens the same setup scores 94.7% (previous candidate 94.3%).
  • NVLink prefill: 7,892 prompt tok/s at 32K and 7,953 at 64K. PCIe: 3,787 at 32K and 3,898 at 128K.
  • FP4-Local (NVIDIA's checkpoint, 27 GiB of host memory for PLE) passes the smoke test: 1,518,412 KV tokens, 86.7 / 245.8 / 378.6 tok/s on PCIe.

Why INT8 KV, per token and head

  • More accurate: each token and each KV head gets its own FP32 scale from its actual values, so one outlier cannot cost precision elsewhere. KL from FP16 KV: 0.024 vs 0.061 for calibrated E4M3.
  • Faster: −5.9% time per round (MTP, 8 requests) and −2.7% / −1.5% (DFlash2, 1 request) against E4M3 on the same build; the new native INT8 readers add +2.8% / +3.0% throughput (DFlash2 / MTP4) and −9.5% per round at 128K (#370).
  • Works with any supported weights: scales are computed at runtime, so AWQ, NVFP4 and FP4-Local need no KV calibration pack. Calibrated E4M3 needed one per checkpoint and is now frozen (--kv-cache-dtype fp8_e4m3 still works).
  • Same size as E4M3, and an INT8 MTP draft holds 11% more tokens than an FP16 draft.

What else is new

  • KV offload: SSD writes wait 300 s, so pages that are evicted or replaced in that window are never written. Prompts come back from CPU memory or SSD across restarts, even after the KV pool size changes (#364). Host KV keeps the attention history in RAM with hot pages on the GPU. KV offload
  • Speculative decoding: draft tokens per step follow the number of requests (DFlash2 7 → 3–4, MTP4 4 → 3); MTP prefill skips unused draft work (#350); DFlash2 verifies sampled requests against a compact candidate set (#356).
  • Kernels: row-wise INT8 prefill attention, 2–5× faster per chunk at 8K–32K (#372); native GDN prefill (#349); native INT8 decode (#370); MTP shared-expert kernels (#371); host embedding gather 125 → 6 µs (#373).
  • NVLink: four fully connected GPUs are detected and tuned automatically; just drop --no-async-scheduling (#366).
  • Serving: the profile applies the measured recipe (prefix caching, scheduler, draft widths); explicit settings still win. Optional dashboard, Anthropic-compatible endpoint fixes, anonymous usage statistics (on by default, VLLM_NO_USAGE_STATS=1 to turn off).

Upgrading from 0.1.5

  • KV is INT8 now. --kv-cache-dtype auto (or no setting) selects INT8. Launches that set fp8_e4m3 keep calibrated E4M3; change it to auto to get INT8.
  • NVLink: remove --no-async-scheduling from the reference launch.
  • Prefill: a running decode now admits up to 1,024 prompt tokens per step; set --prefill-pressure-token-budget to change it.
  • Shutdown with an SSD tier: set --shutdown-timeout above 0 and give the container time to flush.
  • First start: graphs recompile, and SSD caches written by older builds miss once.
  • Python install: needs transformers 5.20 or newer and CUDA 12.8 nvcc for the first start (the container image includes both).

Every default change and how to keep the old behavior: Configuration and the 0.2 pre-release notes.

Known issues

  • A few kernels still compile on the first requests after a restart (up to a few seconds); more move into startup warmup in 0.2.1.
  • FP16 Host KV uses the slower Triton reader; use the INT8 default.
  • A dry run without NVML (no GPU access) can fail the topology check with NotImplementedError; normal GPU containers are not affected. Fix planned for 0.2.1.

Test conditions

PCIe (our server) NVLink
GPUs 4 × V100 32 GB PCIe, one PCIe switch with P2P 4 × V100-SXM2 32 GB, all six pairs on NVLink
Power limit 200 W per GPU 300 W per GPU
Setup TP4 + DCP2, 512K context, 8 sequences, --gpu-memory-utilization 0.956, INT8 KV same
Output speed synthetic English stories, sampled (temperature 1.0, top-p 0.95, top-k 20), 512 output tokens, median of 3 passes after warm-up same
Quality GSM8K 200 and MMLU 300 questions, 512-token answer limit same

Details and methods: Performance.

Install

docker pull ghcr.io/leonccaa/revolta:0.2.0
pip install revolta==0.2.0
File SHA256
revolta-0.2.0-cp312-cp312-linux_x86_64.whl 0afbe7ea8987951a43a8171d22648070e58a63e3f39bbf4c5cf89684f8ae214a
revolta-0.2.0-cp312-cp312-linux_x86_64.debug.tar.xz debug symbols; see SHA256SUMS
PyPI revolta-0.2.0-cp312-cp312-manylinux_2_34_x86_64.whl f7b3a3371d9fcc81c50caa1843d1cc9d68c336d07186c63c28781104f225af16 (same code, different platform tag)
Image ghcr.io/leonccaa/revolta:0.2.0 digest sha256:de2dd4812dd894961c2794a91bb09677542d92a4112370b997d76e4ef98a046a

Getting started: launch guide.