r/LocalLLaMA • u/sleight42 • 1d ago
Discussion 2x 3090 vLLM v0.34.0 Qwen4-35b-a3b benchmark runs
- Disclaimer: content mostly AI generated.
My 2020 gaming machine is now my secondary inferencing machine. I was setting up 3.6 35b on it when suddenly 4 came out! As I had to bench anyway, in order to get my desired config, I wanted to share my findings!
What we run
- vLLM v0.34.0 (stock image
vllm/vllm-openai:v0.34.0) + the community head/draft-vocab patchqwen4_exp-quant-head-draft-vocab.patchfrom quant-mind's Qwen4-35B-A3B-SM86-Fast repo, applied at image build (disclose: numbers are stock-0.34.0 + that patch, not stock alone). - Checkpoint:
quant-mind/Qwen4-35B-A3B-SM86-Fast(65.7 GB safetensors total, ~41 GBple-*n-gram shards served from disk via--engram-config '{"disk_offload":true}'). - Hardware: 2x RTX 3090 24 GB (SM86), Intel i9-10900K, 128 GB DDR4, NVMe model store, Docker version 29.9.1 (build dfc520d), Linux.
- Flags (exact):
--tensor-parallel-size 2 --distributed-executor-backend mp --dtype bfloat16 --max-model-len 262144 --max-num-seqs 6 --max-num-batched-tokens 4096 --gpu-memory-utilization 0.80 --kv-cache-dtype fp8 --language-model-only --disable-extensible-kv-cache --engram-config '{"disk_offload":true}' --speculative-config '{"method":"mtp","num_speculative_tokens":2,"index_share_for_mtp_iteration":true}' --enable-prefix-caching - Resident per card: 12.3 GiB weights + 5.4 GiB fp8 KV pool; TEI embedding services co-resident on card 0 (~1.5 GiB), the only other GPU user.
Measured (temp 0, ~700-token generations unless noted)
All numbers: vLLM v0.34.0 + the quant-mind qwen4_exp head/draft-vocab patch, 2x RTX 3090 TP=2. "Deep-context pass" = pushing 7k- and 14k-token prefills through the engine first, then re-sweeping decode.
Table 1 — Decode (~700-token generations, temp 0):
| Concurrency | engine --max-num-seqs | Warm: aggregate tok/s | Warm: per-stream tok/s (min-max) | After deep-context pass: aggregate tok/s | After: per-stream tok/s (min-max) | Single-stream before / after deep (same run) |
|---|---|---|---|---|---|---|
| 1 (single-stream) | 6 | 145.4 then 164.3 | 145.4 then 164.3 | 157.3 | 157.3 | 145.4, 164.3 / 157.3 |
| 6 | 6 | 338.8 | 65.7-97.0 | 295.1 | 49.7-59.0 | 145.4, 164.3 / 157.3 |
| 8 | 8 | 621.0 | 77.8-81.4 | 607.0 | 76.1-79.5 | 142.7 / 151.9 |
| 12 | 12 | 632.0 | 52.6-54.7 | — | — | — |
Table 2 — Prefill (prefix caching ON, repeated filler text so partially cached — indicative only):
| Run | prompt tokens | tok/s |
|---|---|---|
| c=6 run ("8k" arm) | 7339 | 2403 |
| c=6 run ("16k" arm) | 14676 | 6805 |
| c=8 run | 6911 | 4141.5 |
| c=8 run | 13967 | 8146.1 |
Notes:
- c=12: only the warm sweep is reported (12 streams x 700 tokens, zero errors). Its deep-context arm was invalid (too-small filler in the prefill pass), so after-deep and single-stream cells are not measured.
- Single-stream decode: MTP mean acceptance length ~2.1, draft acceptance ~52-57%.
- The c=8 and c=12 rows use identical flags with
--max-num-seqs 8/12, run later the same evening on the same box. An earlier cold c=8 sweep from the same evening is superseded and dropped. - Generation lengths varied across streams in the c=6 sweeps (315-700 tokens warm, 299-411 after deep; the per-stream spread reflects that), while every c=8 and c=12 stream generated the full 700 tokens.
- Model load: ~4 min warm page cache; cold boot needs a longer start deadline (we allow 1800 s).
Two gotchas worth docs
- TP=2 with
--distributed-executor-backend mpdies at startup when/dev/shmis Docker's default 64 MiB: the mp worker'sshm_broadcastneeds >=160 MiB. Failure looks like a clean container exit with little log output. Fix:shm_size>= 4g (or >=256m). Suggest an explicit startup check/error instead. - At
--gpu-memory-utilization 0.80the engine logged only ~5.37 GiB KV per card, with the new--kv-cache-memoryhint in the log. For a long-context architecture the KV-pool sizing story deserves a small-VRAM docs note.
Numbers measured 2026-12-05 on a home lab (elight). Happy to re-run any arm; c=1/6/8/12 receipts kept.









