Qwen4¶
| Checkpoints | Inputs |
|---|---|
| Qwen/Qwen4-35B-A3B | text |
Qwen4-35B-A3B serves as a chat model, read the same way as Qwen3.5: each question is asked in the user turn after the state, with one line per option labeled A, B, C and so on, and its answer is read from the probabilities of those labels at the first token of the reply. Thinking is off. Flide runs Qwen4's sparse attention, its four residual streams and its n-gram embeddings as the release computes them, and every question forks the state exactly.
Speed¶
On one H200, one request at a time, the median latency of a request over HTTP. The requests carry several questions on
the Decision Index and MultiRC and one on RACE and QuALITY long. vLLM runs from its Qwen4 image
(vllm/vllm-openai:qwen4) with the command of vLLM's recipe for bf16
weights on an H200.
| Decision Index | RACE | MultiRC | QuALITY long | |
|---|---|---|---|---|
| Qwen4-35B-A3B, Flide | 25.3 ms | 24.8 ms | 76.9 ms | 90.4 ms |
| Qwen4-35B-A3B, vLLM | 33.1 ms | 31.2 ms | 555.8 ms | 106.4 ms |
With every question of a QuALITY article in one request, Flide takes 203.7 ms and vLLM 733.3 ms.
Start a server¶
Qwen4 needs transformers 5.26 or later. In an environment with an older one, upgrade it first.
uv pip install -U "transformers>=5.26"
flide serve --model Qwen/Qwen4-35B-A3B
The model loads in about 95 seconds. On an H200 it takes 103 GiB of GPU memory, about 38 GiB of which hold its n-gram tables. On a GPU with less memory the tables stay in host memory, and each request's rows are copied in. On H100 and H200 GPUs its expert products and long Gated DeltaNet sequences run Gluon kernels written for Hopper.
Qwen4 runs without --tp, --quantize, --batch-invariant and --session-cache-gb for now.