perf: calibrate the unsharded Qwen3-30B-A3B FP8 MoE GEMV on MP56 and MP60 #334
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #334"
general
weight: 0.35
yeahdongcn
Why
Served without tensor or expert sharding, Qwen3-30B-A3B-FP8 runs its MoE layers at the per-rank shape
E=128, N=1536, K=2048, top-k 8with 128×128 FP8 blocks. The dispatch policy has no entry for that shape, so decode batches take the upstream Triton kernel. On S5000 that kernel costs about 200 µs per layer atM=1, while the native FP8 block GEMV costs 74 µs. This holds on both the 56-MP and the 60-MP parts.What
-
M <= 3takes the GEMV.- Larger batches keep the upstream path.
- Grouped GEMM stays off.
- the boundary on both MP counts and the grouped-GEMM setting;
- isolation from the MP48, expert-parallel, TP-sharded and EP-sharded variants of the shape.
The second commit extends the MP56 entry to MP60, so it can be dropped on its own.
Mishidden_states.shape[0]for one MoE call.pytest tests/test_fused_moe_dispatch_policy.py: 24 passed.Evidence
Setup: One MTT S5000 GPU per MP count, each on a node whose other GPUs were in use, so the serving numbers are indicative.
v0.32.0-ph1-5.2.0-torch2.11.0.post2-20261106(sha256:65d5e96b5027c796494a7ad6597c6267953d60b96e2436c344760b243c346bc1).dispatch_policy.pyandfused_moe.pyare byte-identical tov0.32.0-dev@d6ad785b. Each arm below changes onlydispatch_policy.py.Crossover
benchmarks/fused_moe/benchmark_dispatch_crossover.py --name qwen3-30b-a3b-tp1 --experts 128 --hidden-size 2048 --intermediate-size 768 --top-k 8 --tokens 1,2,...,16,24,32,64 --sweep-kind dense --backends gemv,upstream --rounds 4was run once per route mode with seeds 20261108, 20262108 and 20263108, on each MP count. All eighteen runs pass the correctness and FP32-oracle gates.| MP | Route | GEMV boundary per seed | M=1, GEMV / upstream | M=4, GEMV / upstream |
|---|---|---|---|---|
| 56 | balanced | 3, 13, 13 | 74 / 198 µs | 180 / 229 µs |
| 56 | unique_random | 6, 6, 6 | 76 / 198 µs | 187 / 235 µs |
| 56 | hot | 3, 3, 3 | 74 / 199 µs | 135 / 100 µs |
| 60 | balanced | 9, 14, 14 | 74 / 201 µs | 180 / 236 µs |
| 60 | unique_random | 6, 3, 6 | 77 / 201 µs | 183 / 238 µs |
| 60 | hot | 3, 3, 3 | 73 / 202 µs | 134 / 101 µs |
Times are medians over the three seeds. Each entry takes the worst boundary for its MP count, which is 3 on both:
M = 4exceed the 0.1 IQR/median gate. The GEMV is not slower there.Grouped GEMM is left out of the sweep:
M <= 11and slower than upstream atM = 12–64.CUDAGraph replay
benchmarks/fused_moe/benchmark_dispatch_graph.py --experts 128 --hidden-size 2048 --intermediate-size 768 --top-k 8 --tokens M --replays 8 --requested autowas run with the entry installed, on each MP count:M = 1, 2, 3capture the GEMV.M = 4captures upstream.Serving A/B/A (MP56)
The client is
vllm bench servewith random 1024→512 prompts and--ignore-eos. A warm pass runs first. The measured pass sends 4×c prompts, with a minimum of 16. Each cell is output tok/s, then mean TPOT.| c | base | entry | base | TPOT change |
|---|---|---|---|---|
| 1 | 64.7, 15.27 ms | 107.5, 9.11 ms | 65.1, 15.19 ms | −40.2% |
| 2 | 121.4, 16.08 ms | 166.7, 11.60 ms | 120.1, 16.26 ms | −28.3% |
| 4 | 241.3, 16.11 ms | 242.3, 16.04 ms | 240.5, 16.16 ms | −0.6% |
| 8 | 414.5, 18.54 ms | 411.8, 18.68 ms | 415.7, 18.51 ms | +0.9% |
selected backend=gemv policy=s5000-mp56-20261108-e128-n1536-k2048-capture-dense-v6and itseagercounterpart. The base arms log no dispatcher selection.Not covered