7. vLLM with Qwen3.8-Flash-Next (FP8) on burned cards
Russian: 07-vllm-qwen.ru.md
The build and the launch parameters follow g4bwy's reference (g4bwy/qwen3.8-flash-next-cmp-170hx: serve-4x-1m.sh,
GOTCHAS.md). That repository has no license file, so nothing from it is copied here; use it directly.
Our own launch wrapper is not in this repository yet (the server was powered off for a card swap while this was
written), so exact command lines are not reproduced here; the parameters below are the ones we varied.
Build
- vLLM base commit
ef687f6179+ g4bwy's 9 patches (the resulting tree hash matched his). - Python 3.12 venv made with
uv, torch 2.14 + cu132, vllm reports0.34.0rc1.dev1156, humming-kernels 0.1.20. - Model: Qwen3.8-Flash-Next, FP8 weights (an uncensored fine-tune in our case), about 173 GB on disk.
Layout
- Pipeline parallel across 4 cards (PP4), layer split 13,12,12,11. Cards in PCI bus order (
CUDA_DEVICE_ORDER=PCI_BUS_ID). - MTP speculative decoding,
--moe-backend humming. - Without P2P the engine logs
PP transport: NCCL (PP copy engines are not usable: PP GPUs are not all directly connected)and sends activations through the host. This is the state all numbers below were measured in.
What we varied
| Knob | Values tried | What we use |
|---|---|---|
| MTP depth | 2, 3, 4 | 2 |
| KV cache dtype | bf16 (auto), fp8 | bf16 |
| Context / YaRN factor | 524k / 2.0, 1M / 4.0 | 524k / 2.0 |
--kv-offloading-size |
off, 96, 128 GiB | 128 GiB |
| Long-prefill threshold | 0, 2048 | no visible difference in our tests |
| Cards | PP4, PP8 | PP4 |
Throughput
Tokens/s; prose prompts are Russian, code prompts English. 4 cards unless stated.
| Setup | prose x1 | prose x4 | prose x8 | code x1 | code x8 | KV pool, tokens |
|---|---|---|---|---|---|---|
| Before the fuse burn (64 GB, 74 SM, Gen2), MTP-2 bf16 | 105 | 326 | 463 | 124 | - | 2.88M |
| Burned cards, older build, MTP-2 bf16 | 134 | 424 | 632 | 154 | 717 | 4.77M |
| New build, MTP-2 bf16 | 134 | 438 | 676 | 161 | 755 | 4.79M |
| New build, MTP-2 fp8 KV | 127 | 411 | 614 | 148 | 729 | 9.14M |
| New build, MTP-3 fp8 KV | 125 | 381 | 566 | 161 | 762 | 9.03M |
| New build, MTP-4 fp8 KV | 124 | 319 | 570 | 162 | 732 | 8.93M |
| PP8, all 8 cards (7,6,6,6,6,6,6,5), MTP-2 bf16 | 106 | 397 | 706 | 127 | 779 | 9.0M |
MTP acceptance on Russian prose: 2.2 (depth 2), 2.4 (depth 3), 2.5 (depth 4); up to 3.6 on English code. Generation draws 66-74 W per card.
Reading:
- More SMs, 80 GB and Gen4 together: about +28 % single stream and +37 % at 8 streams against the same cards before the burn.
- Depth 2 is best for prose. Depths 3 and 4 help only code and cost concurrent prose throughput.
- fp8 KV doubles the pool for 5-9 % of speed.
- One PP8 instance is 20 % slower per stream than PP4 and about equal in total to one PP4 group. Two independent PP4 instances behind a balancer should give about twice the total. We have not run the two-instance setup yet.
- All rows except the first were measured with every card on VBIOS 6D (HBM 1728 MHz).
Long context
Needle test: 8 codes placed at 5-95 % depth, plus a request to list them all, T=0.
- 8/8 at 120k and at 485k tokens in every variant: bf16; fp8; YaRN 2.0/524k and 4.0/1M; MTP 2 and 3. This tests exact fact retrieval. Subtle wording drift under fp8 was not evaluated.
- Cold prefill at 485k: 22 s, about 22,000 tok/s (at 120k: 17.4k bf16, 21.7k fp8).
- Repeat request on the same prefix: TTFT 1.2 s (0.4 s at 120k).
- Generation at depth: 137 tok/s bf16, 123-127 fp8. MTP acceptance does not drop at depth (2.3-2.9 at depth 2).
KV offloading to host RAM
--kv-offloading-size, native backend. Test: shrink the GPU pool (--gpu-memory-utilization 0.53 for fp8, 0.60 for
bf16; 1.06-1.27M tokens), load three different documents of about 487k tokens A, B, C so that C evicts A, then return to A.
| return to A, time to first token | |
|---|---|
| No offloading | 22 s (full recompute) |
| Offloading, 96 or 128 GiB, fp8 or bf16 | 1.2-1.4 s |
- The answer contained the right marker code at every step.
- Generation speed is unchanged with offloading on.
- Host memory is taken exactly as requested (96 -> 96, 128 -> 128 GB) from
/dev/shmasvllm_offload_*files. We did not see pinned memory rounded up to a power of two in this build. /dev/shmmust hold the sum of all instances (ours is 252 GB: two instances need 96 each or a remount).- With the KV connector vLLM rejects
expandable_segments; drop it fromPYTORCH_CUDA_ALLOC_CONF. - Not tested: resuming after a vLLM restart (the buffer is RAM, not disk), and the effect of one user's long prefill on other users' decoding.
Working configuration
PP4, 524k context (YaRN 2.0), MTP-2, bf16 KV, 128 GiB offloading, --max-num-seqs 8: 140 / 445 / 671 tok/s
(prose x1 / x4 / x8), pool 4.68M tokens: nine 490k contexts on the cards and about six more in RAM.
Under agent load the last PP stage draws the most power (we saw 250 W there). Put your best-cooled card last.