Skip to content

ReVolta 0.2.2rc1

Pre-release
Pre-release

Choose a tag to compare

@Leonccaa Leonccaa released this 04 Dec 05:23
· 152 commits to main since this release
2294040

The first pre-release on the 0.2.2 line, following 0.2.1. It adds encoder disaggregation: the vision encoder of Qwen3.8-Flash-Next and Hy4-flash can run as a separate instance on another GPU, on the CPU or on another machine, and hands its embeddings to the inference server through a shared directory or NIXL. Hy4-flash now starts with tuned defaults and INT8 KV without any exports, image and video limits have out-of-the-box defaults, and Qwen4-35B-A3B is supported as an experimental model. Everything is in #443. Source commit 22940408c9.

Separate vision encoder (EPD)

A separate encoder instance turns images and video into embeddings, and the inference server no longer loads the vision encoder. Clients still talk to one OpenAI-compatible endpoint through a small proxy. See Separate vision encoder.

  • Two transfers: a shared directory (ECExampleConnector), or CPU memory with NIXL (ECCPUConnector, ec_enable_nixl) for GPU encoders on another host without a common file system. In our tests a new image request paused the streams already running for 422 ms with NIXL and 431 ms with the shared directory. NIXL is not a dependency of the wheel and is not in the release image; install it on both hosts (tested with nixl 1.5.2).
  • Proxy and launcher: vllm epd-proxy sits in front of the encoder instance and the inference server; vllm serve-epd starts the inference server, an encoder and the proxy together on one host.
  • Metadata handoff: the encoder reports each item's patch grid (and frame timestamps for video), and the proxy sends the inference server a reference with only these numbers instead of the media, so the inference server neither decodes nor resizes images. When the encoder reports nothing for an item, the proxy falls back to the original media.
  • Compatibility fingerprint: both instances must use the same EC protocol version, --model path string and dtype (with NIXL also the transfer block size); the inference server rejects embeddings with another fingerprint and fails that image or video request. It also checks that the number of embedding rows matches the prompt and fails the request on a mismatch, for example when the two instances use different image size limits.
  • Encoder platforms: an encoder instance can run on an NVIDIA GPU with revolta (tested on V100 and RTX 3090), on the CPU with the PyTorch or libmtmd (llama.cpp) backend, and on Apple silicon through libmtmd Metal. A CPU encoder takes seconds per image and is meant for occasional images. The pure-Python revolta-encoder package and the revolta-mtmd-libs package for the libmtmd backend are not published with this release candidate; the documentation describes them for a later release.
  • Results on 4 × V100 with the Qwen3.8-Flash-Next encoder on an RTX 3090: GPU KV per GPU 6.48 GiB, against 6.18 GiB with the encoder on the same GPUs. A 28K-token prefill with an incoming image reached its first token in 9.25–9.32 s, against 10.03 s with the built-in encoder. A 16 MP image (16,422 tokens) reached its first token in 18.9 s and a 64-frame video (11,972 tokens) in 7.2 s; peak memory on the 3090 was about 4.9 GB. Text-only requests skip the encoder; the proxy adds about 60–120 ms to their first token.
  • Qwen4-35B-A3B cannot use a separate encoder yet.

Hy4-flash defaults and INT8 KV

On four V100 GPUs with --tensor-parallel-size 4 and --dtype half, the ReVolta profile now sets the tuned Hy4-flash environment (TurboMind kernels, CUDA graph memory, CPU threads, expandable segments) and fills in --enable-prefix-caching, --max-num-seqs 8 and --max-num-batched-tokens 2048 when you leave them out, as it already did for Qwen3.8-Flash-Next. The KV cache defaults to int8_ds_mla when --kv-cache-dtype is left out or auto; pass float16 or fp8_ds_mla to choose another. Values you set yourself always take precedence, and the startup log lists every value with its source. The recommended command in Hy4-flash no longer needs exports. On V100, launches without exports matched the previous recommended configuration: AWQ 51.9 / 130 tok/s for 1 / 4 requests (before 52.5 / 134), NVFP4 47.3 / 118.0 (before 46.7 / 113.7), with the same weights, KV size and acceptance length.

Multimodal defaults

Qwen3.8-Flash-Next and Hy4-flash now accept 16 images and 1 video per request without --limit-mm-per-prompt, and resize images to at most 1,048,576 pixels (1024 × 1024 in area). Hy4-flash video defaults to 16 frames and 12,582,912 pixels in total. See Out-of-the-box defaults.

Qwen4-35B-A3B (experimental)

ReVolta now loads Qwen4-35B-A3B. Its architecture (Qwen4MoeForConditionalGeneration) is the one Qwen3.8-Flash-Next introduced, at smaller dimensions, so it runs on the existing Qwen4Exp implementation with Model Runner V2. Support is experimental: it was validated with a functional smoke test on 4 × Tesla V100-PCIE-32GB at TP4 (text, reasoning split, streamed and non-streamed tool calls, one and several images, 4 and 8 concurrent requests, retrieval from a 108K-token prompt, prefix caching). There is no quality benchmark against a BF16 reference yet, and video input was not tested.

Checkpoints

Checkpoint Weights per GPU (TP4) N-gram table in host memory Notes
Qwen/Qwen4-35B-A3B-FP8 10.5 GiB about 19 GiB Recommended. The routed experts and the n-gram table are FP8; the rest is BF16 and runs as FP16.
Qwen/Qwen4-35B-A3B 17.7 GiB about 38 GiB BF16, served as FP16. The unquantized n-gram table is now held in pinned host memory as well.
RadixArk/Qwen4-35B-A3B-NVFP4 6.9 GiB about 19 GiB Third-party quantization. Loads and passes the same smoke test, including its own MTP layer, but is slower than FP8 on V100 (see below).

Starting the server

Validated on GPUs: the checkpoint's compatibility tokenizer (tokenizer-compat/, a regular Hugging Face tokenizer with a Jinja template) with the existing Qwen3 parsers, in the configuration below. Our test deployment used a copy of tokenizer-compat/ in which the reasoning and tool-call tags are not flagged as special tokens and the template maps the OpenAI effort names; the unmodified directory, as in this command, is covered by CPU tests only.

vllm serve /path/to/Qwen4-35B-A3B-FP8 \
  --tokenizer /path/to/Qwen4-35B-A3B-FP8/tokenizer-compat --tokenizer-mode hf \
  --served-model-name Qwen4-35B-A3B \
  --dtype half \
  --tensor-parallel-size 4 \
  --gpu-memory-utilization 0.90 \
  --max-model-len 131072 \
  --max-num-seqs 8 \
  --max-num-batched-tokens 8192 \
  --enable-chunked-prefill \
  --enable-prefix-caching \
  --prefix-cache-retention-interval 0 \
  --mamba-cache-mode align \
  --no-async-scheduling \
  --no-language-model-only \
  --limit-mm-per-prompt '{"image": 16, "video": 1}' \
  --media-io-kwargs '{"video": {"num_frames": 16}}' \
  --compilation-config '{"mode": 3, "cudagraph_mode": "FULL_AND_PIECEWISE"}' \
  --structured-outputs-config '{"backend": "xgrammar"}' \
  --seed 0 \
  --attention-backend FLASH_ATTN_V100 \
  --prefill-pressure-token-budget 1024 \
  --prefill-pressure-threshold 1 \
  --long-prefill-token-threshold 0 \
  --mixed-prefill-step-latency-ms 0 \
  --kernel-config '{"ple_disk_cascade": false}' \
  --shutdown-timeout 30 \
  --sanitize-control-tokens \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder \
  --reasoning-parser qwen3 \
  --default-chat-template-kwargs '{"enable_thinking": true}' \
  --enable-prompt-tokens-details \
  --sse-keep-alive-interval 15 \
  --host 0.0.0.0 --port 8000

The native entry uses the checkpoint's own tokenizer and chat encoder, which Qwen recommends. It needs tiktoken and --trust-remote-code. In this release candidate it is covered by CPU tests only (token IDs equal to the checkpoint's reference encoder for text, tools and images); it has not been run on GPUs yet. To try it, replace the --tokenizer, --tokenizer-mode, --tool-call-parser and --reasoning-parser lines with:

  --trust-remote-code --tokenizer-mode qwen4 \
  --tool-call-parser qwen4 \
  --reasoning-parser qwen4 \

Without --tokenizer-mode, this architecture selects qwen4 automatically, so the compatibility tokenizer needs --tokenizer-mode hf as shown.

Thinking

  • Qwen4 is meant to think by default (reasoning_effort="high"), while ReVolta's server default turns thinking off. Start the server with --default-chat-template-kwargs '{"enable_thinking": true}' as above. With thinking off, tool calling was unreliable in our tests: on a Chinese prompt the model wrote a made-up tool result instead of calling the tool in 2 of 5 runs.
  • The model supports the effort levels xhigh, high, low and off. The native entry also accepts the OpenAI names and maps none to off, minimal to low, medium to high and max to xhigh. The checkpoint's compatibility template does not: with it, reasoning_effort set to none, minimal, medium or max is rejected with HTTP 400. Use chat_template_kwargs: {"enable_thinking": false} to turn thinking off there.
  • Qwen recommends temperature=1.0, top_p=0.95, top_k=20 with thinking (the checkpoint's defaults, which the server applies) and temperature=0.7, top_p=0.8, top_k=20, presence_penalty=1.5 without.

MTP

The checkpoints include an MTP layer; no separate draft model is needed. Add to the command above:

  --speculative-config '{"method": "mtp", "num_speculative_tokens": 3, "draft_sample_method": "greedy", "attention_backend": "FLASH_ATTN_V100", "num_speculative_tokens_per_batch_size": [[1, 4, 3], [5, 8, 1]]}'

The schedule drafts 3 tokens for 1 to 4 running requests and 1 token for 5 to 8. With a fixed 3 tokens, 8 concurrent requests were slower than without MTP.

Decode throughput on 4 × Tesla V100-PCIE-32GB, TP4, GPU KV cache, 128K context; greedy, thinking off, 512 output tokens per request, total tokens per second for 1 / 4 / 8 concurrent requests:

Checkpoint Without MTP With MTP and the schedule above
Qwen4-35B-A3B-FP8 59.3 / 202.4 / 361.4 82.0 / 247.1 / 426.0
RadixArk NVFP4 45.2 / 145.5 / 317.4 56.1 / 179.6 / 392.9
Qwen4-35B-A3B (BF16) 49.1 / 148.5 / 230.8 not measured

Known limits

  • The SM70 kernels that are specialized for Qwen3.8-Flash-Next's dimensions (fused hyper-connection, GDN input and prefill kernels, the paged QSA readers, the router and the routed-expert fast paths) do not match this model. It runs on the general paths, so its speed is below what the hardware allows.
  • The NVFP4 checkpoint is slower than FP8 on V100 (table above). The cause has not been profiled.
  • To be fixed in the next release candidate: (1) with the Qwen3 parsers, thinking turned off through chat_template_kwargs: {"reasoning_effort": "off"} returns the answer as reasoning in non-streamed /v1/responses and batch chat requests; Chat Completions is correct. (2) With the native qwen4 tool parser, a non-streamed /v1/responses request can return a tool call for text that only spells one. (3) With the native tool parser, a stop on the closing tool-call token can make a non-streamed response report an extra call. (4) With the native parsers, a streamed tool call whose string argument contains the reasoning end token is returned as text.
  • A separate vision-encoder instance (encoder disaggregation) does not recognize this architecture yet; run the vision tower in the same server.
  • Validated only with the GPU KV cache at its default precision and up to 128K context. Host KV, decode context parallelism, the INT8 KV cache and longer contexts have not been tried with this model.

Upgrade notes

  • Images on Qwen3.8-Flash-Next and Hy4-flash are now resized to at most 1,048,576 pixels by default (before: the processor's 16,777,216 for Flash-Next, 4,194,304 for Hy4-flash). Small text in large images can be blurrier. To restore the previous budget: --mm-processor-kwargs '{"images_kwargs": {"max_pixels": 16777216}}' (Flash-Next) or '{"images_kwargs": {"max_pixels": 4194304}}' (Hy4-flash).
  • Hy4-flash: the KV cache now defaults to int8_ds_mla. Existing --kv-cache-dtype settings keep working, and SSD prefixes written with an explicit int8_ds_mla setting stay valid.
  • Qwen3.8-Flash-Next serving without a separate encoder is unchanged: on this build it passed 18 of 18 multimodal cases at 90.0 / 245.3 tok/s for 1 / 4 requests.

Known issues

  • Qwen4-35B-A3B native entry: four review findings are fixed for the next RC: the thinking-off check of /v1/responses and batch requests, the tool example in native Responses output, extra tool calls reported with stop_token_ids, and a streaming split point. The non-streaming /v1/responses path of the native parsers is also still open.
  • Qwen4-35B-A3B decodes without the kernels tuned for Qwen3.8-Flash-Next: their shape checks send the new sizes to the generic paths, so speed is below what Flash-Next reaches.
  • NIXL is not in the release image or the wheel dependencies (see above).
  • Other limits: Known limits and the encoder known limits.

Validation

  • Qwen4-35B-A3B, maintainers' deployment (official FP8, MTP, compatibility mode, 128K × 8, 200 W per GPU): 14 of 14 smoke cases, the speeds above, no errors in the log. Per-token log probabilities agree between the FP16, FP8 and NVFP4 runs.
  • Qwen3.8-Flash-Next on the same build, with the encoder on an RTX 3090 over NIXL: 18 of 18 multimodal cases, 90.0 / 245.3 tok/s for 1 / 4 requests.
  • Encoder disaggregation: large images and video, image bursts during long prefills, a missing encoder and a deliberate size mismatch (request fails cleanly, other requests continue) on 4 × V100 with V100 and RTX 3090 encoders; CPU encoders tested for encoding on x86_64 and Apple M1.
  • Hy4-flash: launches without exports with AWQ and NVFP4: images, multiple images, video and prefix hits correct; no out-of-memory errors at the request limits.

Install

  • Docker: ghcr.io/leonccaa/revolta:0.2.2rc1 (sha256:0a1e73b01d18c87532f8ca75d019d4ebc4c013bf5e4e33459f32b74692c51f2f)
  • PyPI: pip install revolta==0.2.2rc1 (pre-release; a plain pip install revolta keeps 0.2.1)
  • The wheel, debug symbols and SHA256SUMS are attached below:
    • revolta-0.2.2rc1-cp312-cp312-linux_x86_64.whl 7dedcdf356fa7fec66826a9bdfaa0c4697500f90a94743f596ce8ef75a267537
    • revolta-0.2.2rc1-cp312-cp312-linux_x86_64.debug.tar.xz 27d0e93f8b1729f153f27966184d8969662e019f51b4995746d5be9bc543f917