Skip to content

ReVolta 0.2.1

Latest

Choose a tag to compare

@Leonccaa Leonccaa released this 03 Dec 06:28
· 298 commits to main since this release
e016e8f

The first update to 0.2.0, with 58 merged pull requests. Sixteen requests can now run at once on four V100s: total output at 4K context goes from 559 tok/s with 8 requests to 854 tok/s with 16, and sixteen 128K requests with a prefix hit reach 464 tok/s. QSA index keys are stored as INT8 by default, so with Host KV the GPU history segment holds about 1.8 times as many blocks in the same memory. It adds Hunyuan (Hy4-flash) support on four V100 32 GB GPUs: TP4 + DCP4 with AWQ or standard NVFP4 weights, INT8 Host KV with the SSD tier, prefix caching, DFly2 speculative decoding, and image and video input. The reasoning end-of-turn mask is on by default, no Triton kernels compile after the server reports ready, and a Host KV stop now flushes the SSD tier before the executor stops. The first cold start failure on NVLink reported in #398 is fixed and confirmed by the reporter on two of two cold starts, and the default engine-ready wait rises from 600 s to 3600 s so a slow first start on V100 is not cut off. It also fixes a warmup crash with a single request, a start-up failure with debug logging, worker teardown being cut short at shutdown, and the memory profile for speculative verification. Source commit e016e8f609.

0.2.1rc2 ran on the maintainers' production deployment before this release. 0.2.1 differs from it only by the Hy4-flash documentation (#437) and the compile time reported in the start-up log (#439).

Recommended setup for 16 concurrent requests

The profile still defaults to --max-num-seqs 8. For 16 requests at once, start from the reference launch and set:

--max-num-seqs 16

and, for MTP, this draft schedule in --speculative-config (DSD, dynamic speculative decoding):

"num_speculative_tokens_per_batch_size": [[1,3,5],[4,8,3],[9,16,3]]

With three draft tokens each, a 16-request verification step has 64 rows. In 0.2.1 the H12 paged reader, the GDN input projection and the NVFP4 grouped decode kernel all serve 64 rows natively (#411, #412, #413).

Measured on 4 × V100 32 GB PCIe, NVFP4 + MTP, INT8 Host KV, with the settings above:

Requests at once 1 4 8 16
Output, 4K context, tok/s 127.4 358.2 559.1 854.1
16 × 128K requests with a prefix hit, output 463.6 tok/s (8 requests: 436 tok/s)
GSM8K, three seeds 0.945 / 0.955 / 0.955
  • Results at 1–8 requests are the same as with --max-num-seqs 8.
  • The larger recurrent-state reservation for 16 sequences takes about 11% off the GPU history segment in Host KV mode.
  • Prefill speed does not rise with the number of requests.

Details: Performance: 16 concurrent requests.

Hunyuan (Hy4-flash) support

New in 0.2.1, validated on 4 × V100 PCIe only. tencent/Hy4-flash now runs on Model Runner V2 with the long-context features the Qwen models already use (#425–#435). The shared Host KV and SSD changes keep the Qwen behavior and SSD identity unchanged.

  • Parallelism: TP4 + DCP4 on four GPUs, up to 512K tokens per request. One or two GPUs are not supported.
  • Weights: AWQ g32 (leoncca/Hy4-flash-AWQ-g32, recommended) and standard ModelOpt NVFP4 (atakans/Hy4-flash-NVFP4). V100 has no BF16 support, so the BF16 parent cannot run on these GPUs; quality is measured as top-1 agreement with BF16 reference outputs computed elsewhere, on 4,071 teacher-forced positions from 11 Chinese and English prompts, short and long: AWQ 0.717 (the previous AWQ build scored 0.719 on the same set) and NVFP4 0.667. NVFP4 runs as W4A16 (FP16 activations) and is slower and less accurate than AWQ on V100.
  • KV: int8_ds_mla (INT8 main KV and INT8 index keys) with Host KV: long-context KV lives in a pinned host pool and the GPUs keep only hot pages; tested with a 48 GiB host pool, 8 requests × 512K. Prefix caching works across GPU KV, Host KV and the SSD tier. After a restart a 128K-token document was served from the SSD tier (130,816 tokens hit, whole request 4.3 s), and shutdown flushed all pending SSD writes with no failures.
  • Speculative decoding: DFly2 with the AngelSlim/Hy4-flash-DFly2-B6 draft. DFly2 is the only speculative method supported with DCP.
  • Image and video input (#432, #433): on by default, with limits of 16 images and 1 video per request and 16 frames per video (the same limits as the Qwen reference deployment); requests over these limits are rejected with HTTP 400. The vision tower runs in FP16 (cosine 0.99999 against FP32). On the release image, AWQ and NVFP4 each answered 6 of 6 single-image questions (photos, text recognition, a chart, shapes, in English and Chinese), 2 of 2 multi-image questions and the video content question. A repeated request with the same image reused 6,144 of 6,216 prompt tokens from the prefix cache; a different image is never matched past the text before it, also after an SSD restart. Text-only serving: --limit-mm-per-prompt '{"image":0,"video":0}'.
  • Prefill: sliding-window layers (#431) and sparse layers (#430) now prefill with V100 kernels. The sliding-window change alone cut time to first token from 30.3 to 20.4 s at 32K and from 122.9 to 83.0 s at 128K, and eight concurrent 32K requests from 333 to 265 s; the sparse-layer change cut time to first token by about 22% before that. Quality against BF16 did not drop (0.709 before, 0.717 after).
  • AWQ MoE decode (#429): a grouped decode kernel for the AWQ experts. With 8 requests the MoE part of a decode step went from 81 to 27.5 ms and the whole step from 225.8 to 154.9 ms; one request went from 75.9 to 63.7 ms per step; 8 short requests from 139.8 to 183.5 tok/s in total (+31%).
  • Measured on 4 × V100 PCIe 32 GB, AWQ, the configuration below with image input on: decode 52.6 / 126.1 / 175.5 tok/s in total for 1 / 4 / 8 short requests; one request at 128K context decodes at 52.8 tok/s; time to first token 20.3 s at 32K and 83.8 s at 128K; eight concurrent 32K requests finish in 271 s. With image input off (text-only serving) the same runs measured 55.5 / 133.5 / 184.0 tok/s. NVFP4 (measured before the sliding-window change): 35.4 / 143.4 s to first token at 32K / 128K, 45.7 tok/s at 128K, 167.8 tok/s for 8 short requests.
  • Launch (reference command; see the Hy4-flash page for the full guide, tested figures and limits, updated in #437). Give the container --shm-size of at least the host pool plus some margin (64g for a 48 GiB pool). The SSD tier (host_kv.ssd in the connector config) is optional.
export VLLM_SM70_QUANT_BACKEND=turbomind VLLM_V2_CUDAGRAPH_MEM_MIB=384
vllm serve /models/hy4-flash-awq-g32 --served-model-name hy4-flash \
  --tensor-parallel-size 4 --decode-context-parallel-size 4 --dtype half \
  --kv-cache-dtype int8_ds_mla --max-model-len 524288 --max-num-seqs 8 \
  --max-num-batched-tokens 2048 --enable-chunked-prefill --enable-prefix-caching \
  --no-disable-hybrid-kv-cache-manager --gpu-memory-utilization 0.95 \
  --speculative-config '{"method":"dfly2","model":"/models/hy4-flash-dfly2-b6"}' \
  --kernel-config '{"long_context_kv":{"enabled":true,"host_store_gib":48,"prefill_gather":"passes","staged_writethrough":false}}' \
  --kv-transfer-config '{"kv_connector":"OffloadingConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu.draft_offload":"window"}}' \
  --limit-mm-per-prompt '{"image":16,"video":1}' --media-io-kwargs '{"video":{"num_frames":16}}' \
  --mm-processor-kwargs '{"videos_kwargs":{"max_pixels":12582912}}' \
  --reasoning-parser hy_v4 --tool-call-parser hy_v4 --enable-auto-tool-choice
  • Limits: four GPUs only; not tested on NVLink. GPU memory headroom is thin in the worst case allowed by the default limits (8 requests each with 16 images and a video): about 680 MiB per GPU left with AWQ and 500 MiB with NVFP4, with no out-of-memory error; lower --max-num-seqs or the image limit if other processes share the GPUs. Hy4-flash runs on Model Runner V2, which bounds the memory of prompt_logprobs requests, so the V1 issue in #399 does not apply to it. The new Hy4-flash code has validation on 4 × V100 PCIe only and is not part of the Qwen release gate.

NVLink first start (#398)

0.2.1 carries a fix for CUDA error: unspecified launch failure during the first warmup with an empty compile cache on fully connected NVLink machines (#409): the SM70 peer kernels gave up after about 2.6 s when one GPU was still compiling while the others waited; they now wait up to about 650 s. A user has now confirmed it on four V100-SXM2 32 GB in a full NVLink mesh: the configuration that failed 9 of 9 cold starts on 0.2.0 (NVFP4 with MTP, TP4 + DCP2, asynchronous scheduling, 512K context) started cleanly on 0.2.1rc1 (the first release candidate carrying the fix) in 2 of 2 cold starts, with all four workers logging SM70 HC LL enabled: ... peer waits tolerate cold-start rank skew (~650 s), CUDA graph capture completing, no Xid errors, and MTP acceptance and KV size as expected.

Engine-ready wait now 3600 s by default (#418). On V100 a first start with an empty compile cache spends a long time compiling kernels, and in that report engine initialization alone took about 1,950 s, so the old 600 s default would have stopped a start that was going to succeed. The default of VLLM_ENGINE_READY_TIMEOUT_S is now 3600 s. Warm starts are unaffected because the wait ends as soon as the engine is ready, and an explicit value still overrides the default.

Where the time goes on a cold start. For reference, seconds per stage (the maintainers' column is the slowest rank):

Stage NVLink, user, run 1 NVLink, user, run 2 PCIe, maintainers, cold PCIe, maintainers, warm
Weight loading — 402 160 153
Init engine, total 1,954 1,587 409 238
· compile 520 269 115 cache load
· CUDA graph capture 462 531 80 36
· host KV pool allocation and pinning not reported separately not reported separately 141 141
Ready, from first log line about 49 min about 39 min 801 (about 13 min) 581

The user's machine: 4 × V100-SXM2 32 GB, two Xeon Silver 4216 sockets, weights on NVMe, 0.2.1rc1 with an external MTP5 draft. The maintainers' machine: 4 × V100 32 GB PCIe, one AMD EPYC 7K62 (48 cores), weights on network storage, a build of main shortly before 0.2.1rc2, NVFP4 + MTP5, INT8 Host KV with a 98 GiB pinned host pool and the SSD tier, 16 requests × 512K. Graph capture in the user's runs includes the FULL and PIECEWISE passes. A first start is a once-per-version cost; later starts reuse the compile cache. Compile time varied by a factor of two between the user's two cold runs, so plan for the slow case. We are still looking into why compile and graph capture are several times slower per step on the two-socket machine.

Changes in behavior

  • QSA index keys are INT8 (#414). Each 128-wide compressed key is stored as 128 INT8 codes plus one FP32 scale: 132 bytes instead of 256. The readers dequantize before the unchanged scoring. Offline on real keys (12 prompts from 8K to 989K tokens), decode top-k recall averaged 0.994 (minimum 0.982) against FP16 keys. With Host KV the GPU history segment holds about 1.8 times as many blocks. Set "qsa_index_int8": false in --kernel-config to keep FP16 index pages. Host KV: INT8 index keys
  • MTP draft projections use per-channel INT8 (#410). fc_hidden stays FP8; the other QPN8 draft projections, including both vocabulary heads, are INT8. Turning sm70_mtp_draft_qpn8 off falls back to FP16 as before.
  • Reasoning end-of-turn mask on by default (#407). A Qwen reasoning model no longer ends a turn inside its thinking block with no answer. In the evaluation, replayed agent turns that stopped with reasoning only fell from 15/90 to 0/90. Set VLLM_QWEN_REASONING_EOS_MASK=0 to turn it off. Configuration
  • FP16 Host KV uses a native reader (#400, #406). The FP16 hot pool is read with the paged H12 reader instead of the generic Triton reader: time per round fell by about 1 ms at 32K and 128K on PCIe. INT8 stays the recommended KV format.
  • No Triton compiles after ready (#396, #402). The remaining launch variants and the compact MTP target kernels are compiled during startup warmup, so the first requests after a restart no longer pause for compilation.
  • NVFP4 grouped decode for 41–64 rows on by default (#413). VLLM_SM70_NVFP4_RAW_GROUPED_M48_V154=0 turns it off. Batches of 48 rows or fewer are unchanged.

Performance

  • 16 concurrent requests: see the recommended setup above. The grouped decode alone took a 16-request round at 4K context from 68.5 to 59.7 ms (702.7 to 807.8 tok/s) with the same acceptance length (#413).
  • INT8 row prefill computes all twelve heads per launch (#386).
  • Compressed-tensors NVFP4 experts run on the native SM70 MoE (#390), like ModelOpt, when the layer matches the native expert geometry. Tested on CPU only; a real checkpoint was not loaded.
  • NVFP4 PLE gathers skip rows owned by other ranks (#393).
  • Hy4-flash: sliding-window and sparse-layer prefill and the AWQ MoE decode kernel, see the Hunyuan section above.

Fixes

  • Reported compile time (#439). The compilation figure in the engine start-up log now includes the dedicated decode entries of the target model and the MTP draft, which compile with their own copied configuration and were left out before; on a cold start they are a large part of the real compile time. Only the reported number changes.
  • Host KV shutdown (#415). The final SSD flush now runs before the executor stops, so a slow release of a large host pool can no longer skip it. With --shutdown-timeout 0 the stop is logged at info level instead of as an error.
  • Worker shutdown (#422). Each worker gave its teardown a fixed 3 s budget and was forced out after 3.5 s, so a normal stop could skip the remaining cleanup and leave semaphores and shared memory behind. Workers now finish their normal teardown within the existing --shutdown-timeout, after which the existing TERM and KILL still apply; --shutdown-timeout 0 still stops immediately and the #415 order is unchanged. On V100, Host KV servers stopped in 43–48 s with the SSD final flush complete (63 of 63 pending writes, no failures), and a GPU KV server stopped in 42 s, all with exit code 0.
  • Warmup with a single request (#419). With --max-num-seqs 1, prefix caching and the long-context KV layout, the Model Runner V2 kernel warmup gave every skipped state column its own state block and read past the recurrent-state pool, so start-up failed with an index out of bounds error. Warmup now gives skipped columns the null block, as real scheduling does. Larger --max-num-seqs values were not affected; on V100 the single-request form now starts, serves requests and stops normally.
  • Start-up with VLLM_LOGGING_LEVEL=DEBUG (#423). On torch older than 2.12, debug logging also turns on Inductor's size and stride asserts, and the fallback path of the SM70 FP16 hyper-connection down projection returned a strided view where a contiguous tensor is declared, so a 16-request start-up stopped during CUDA graph warmup with expected size 96==96, stride 336==4. The fallback now returns a contiguous tensor; a 16-request cold start with debug logging completes all CUDA graph captures. Starts at the default log level were not affected.
  • Memory profile for speculative verification (#421). The profile run sampled one logits row per request, but a verification step produces up to K + 1 rows per request, so with a large vocabulary the KV cache could be sized larger than the step can use. The profile now covers the verification rows the token budget can schedule (96 rows instead of 16 for 16 requests, an 8,192-token budget and MTP with five drafts). Adapted from vllm-project/vllm#69230. In the maintainers' 16-request NVFP4 + MTP configuration the KV cache size did not change (6.18 GiB); configurations where the logits rows dominate can get a somewhat smaller KV cache than before.
  • INT8 index encoder (#424). The Python encoder for INT8 QSA index keys now accepts a scale tensor with a stride-zero last dimension, which came up during warmup of Hy4-flash. Output bytes are unchanged; Qwen3.8-Flash-Next writes its index rows with a Triton kernel and is not affected.
  • Offline Host KV stats (#408). In-process engines no longer fail an assertion when offload stats are enabled.
  • Grouped CPU offload (#405). Accepted stores are kept when one grouped CPU pool is full.
  • KV budget and admission (#379, #380, #385). Negative non-Torch memory growth is no longer credited to the KV budget, warmup reserves KV blocks by the global DCP span, and sliding-window admission is no longer underestimated after shared prefix hits.
  • Interconnect detection without NVML (#387). A failed NVLink query is treated as not fully connected, so a dry run without GPU access no longer fails the topology check with NotImplementedError (a known issue in 0.2.0).
  • Video input (#397). In 0.2.0 with Transformers 5, every Qwen3-VL video request failed with HTTP 400 and the startup multimodal warmup failed too. Video works again.
  • Text-only prompts (#388). Text-only prompts that the HF processor rejects are tokenized directly.
  • Tool calls (#394). The qwen3_coder parser recovers bare JSON arguments and ignores tags inside code fences.
  • GDN prefill (#404). The KKT beta is applied after the K loop.
  • Completions logprobs (#401). Two upstream vLLM fixes are ported.
  • Opt-in fixed-order HyperConnection down projection for prefill (#403), off by default. It removes one row-count-dependent rounding change when prefill chunking changes, at the cost of 3–7% slower prefill. Configuration
  • Metrics, documentation and test updates: #417 (documentation for the 0.2.1 changes), #363, #375, #376, #381, #382, #383, #384, #389, #391, #392, #395.

Upgrading from 0.2.0

  • No launch changes are needed. The 0.2.0 reference launch works as is. For 16 requests, see the recommended setup above.
  • SSD caches miss once. The index key format and the MTP draft projection scheme are part of the SSD page identity, so Host KV pages written by 0.2.0 are not read back; they are rewritten as requests come in.
  • Engine-ready wait: the default of VLLM_ENGINE_READY_TIMEOUT_S is 3600 s instead of 600 s (#418); an explicit value still overrides it. Warm starts are unaffected because the wait ends as soon as the engine is ready.
  • First start: graphs recompile; warmup now also compiles the kernels that used to compile on the first requests.
  • To keep 0.2.0 behavior: "qsa_index_int8": false in --kernel-config (FP16 index keys), VLLM_QWEN_REASONING_EOS_MASK=0 (no end-of-turn mask), "sm70_qsa_paged_fp16_h12": false (Triton reader for FP16 Host KV), VLLM_SM70_NVFP4_RAW_GROUPED_M48_V154=0 (grouped decode for 41–64 rows off).
  • To get the old engine-ready wait, set VLLM_ENGINE_READY_TIMEOUT_S=600. New --kernel-config keys such as sm70_hc_down_fixed_order do not exist in 0.2.0, and 0.2.0 refuses to start with them; remove them before going back.

Known issues

  • Prefill speed does not rise with the number of concurrent requests.
  • A real Host KV + SSD stop and the read-back after a restart were not run for the shutdown-order change (#415).
  • Compressed-tensors NVFP4 checkpoints were tested on CPU only. SM70 has no native path for a BF16 PLE table; such a checkpoint needs an FP8 PLE table.
  • FP16 Host KV is faster than in 0.2.0 but still slower than the INT8 default.
  • On the V1 model runner, a request with prompt_logprobs can run out of GPU memory (#399). Flash-Next and Hy4-flash use Model Runner V2 and are not affected.
  • Hy4-flash: four GPUs only, not tested on NVLink, validated on 4 × V100 PCIe and not part of the Qwen release gate; GPU memory headroom is thin in the worst case allowed by the default image and video limits (see the Hunyuan section). NVFP4 runs as W4A16 and is slower and less accurate than AWQ on V100.
  • Cold first starts on V100 can take tens of minutes, and compile and graph capture are several times slower per step on the two-socket NVLink machine than on the maintainers' PCIe machine; the cause is not yet known.

Full list: Known limits.

Validation

  • 4 × V100 32 GB PCIe, 200 W, Qwen3.8-Flash-Next NVFP4 + MTP, INT8 Host KV, TP4 + DCP2: the 16-request results above (0.2.1rc1). With 8 requests and 512K context (0.2.1rc1): decode at 4K context 121.8 / 356.5 / 559.0 tok/s for 1 / 4 / 8 requests; 8 × 252K prefill in 563 s; a mixed long and short load at 208.6 tok/s for the long requests with a short-request time to first token of 0.73 s (p50); GSM8K 0.950 / 0.955 / 0.935 over three seeds.
  • Qwen3.8-Flash-Next, production form, re-run for 0.2.1rc2 (NVFP4 + MTP with five drafts, INT8 Host KV with a 115 GiB host pool and the SSD tier, 16 requests × 512K, 200 W per GPU; a candidate build whose differences from the release touch only Hy4-flash code). Against rc1 on the same form:
    • Decode at 4K context: 138.8 / 363.9 / 544.8 / 843.6 tok/s for 1 / 4 / 8 / 16 requests (rc1 127.4 / 358.2 / 559.1 / 854.1).
    • 16 × 128K with prefix hits: 467.3 tok/s decode in total (rc1 463.6). 16 × 252K prefill: 1,165 s (rc1 1,173 s). Mixed long and short load: 208.4 tok/s for the long requests (rc1 204.0).
    • GSM8K over three seeds: 0.930 / 0.965 / 0.950 (rc1 0.945 / 0.955 / 0.955).
    • SSD tier after a restart: 94.6% of a 32K prompt and 98.3% of a 128K prompt reused, time to first token 32.2 s → 2.0 s. Shutdown in 48 s with no errors.
    • Image, photo, multi-image and video questions answered correctly.
  • Qwen3.8-Flash-Next, public default form (AWQ g32 with DFlash2, GPU KV): decode 142.6 / 339.6 / 461.8 tok/s for 1 / 4 / 8 requests; GSM8K 0.94.
  • INT8 index keys, module tests on 4 × V100 PCIe with Qwen3.8-Flash-Next NVFP4 + MTP5, INT8 Host KV with the SSD tier, 16 requests:
    • SSD format identity: after a restart, documents of 32K and 128K tokens written with INT8 index keys are read back from the SSD tier with INT8 keys, and are not read by a server using FP16 index keys; answers are correct in both cases.
    • Long-context retrieval: INT8 and FP16 index keys both answered 8 of 8 questions on one 500K-token document and 32 of 32 questions over 16 concurrent 128K-token documents.
    • Selection recall and output distribution: on 12 real prompts from 8K to about 1M tokens, decode top-k recall of INT8 against FP16 keys averaged 0.9938, and the KL divergence between the INT8 and FP16 engines' next-token distributions averaged 0.00698.
  • Hy4-flash: see the Hunyuan section. On the 0.2.1 release image, AWQ and NVFP4 each started (352 s and 429 s) and passed Chinese and English chat, non-thinking, tool-call, four-request, image, multi-image and video checks.
  • NVLink: see "NVLink first start". The maintainers have no NVLink hardware; the NVLink result is the user's.
  • Final build: 0.2.1 differs from 0.2.1rc2 only by #437 (documentation) and #439 (reported compile time). The Qwen3.8-Flash-Next results above were measured on 0.2.1rc2 and earlier; the final build passed the go-live smoke on the production form (health, chat, non-thinking and tool-call requests).

Install

docker pull ghcr.io/leonccaa/revolta:0.2.1
pip install revolta==0.2.1
File SHA256
revolta-0.2.1-cp312-cp312-linux_x86_64.whl 460f40c3bfca90c059bb301af792ef04203261ae5106d0f763add817becd2fe6
revolta-0.2.1-cp312-cp312-linux_x86_64.debug.tar.xz debug symbols; see SHA256SUMS
PyPI revolta-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl 1c64d97b95b604c1c0691be1c37671c3f405b07c67e286bc9df6df2210104e37 (same code, different platform tag)
Image ghcr.io/leonccaa/revolta:0.2.1 digest sha256:597301841abc035dff92c6a80b7842a4ad6afba649f8daa1ece7c5a8cbeb0531

Getting started: launch guide. Hy4-flash: Hy4-flash guide.