Repository navigation
[Config] [MoE] [gfx950] Qwen3-235B FP8 EP: drop the token=1,2 tuned fmoe rows that lose to the CK 2-stage default - #6681
Conversation
…rows that lose to the CK 2-stage default The Qwen3-235B-A22B FP8 TP8+EP rows (cu_num 256, model_dim 4096, inter_dim 1536, 16 local experts, top-8, per_1x128) at token=1 and token=2 select the 1-stage ASM fmoe_bf16_blockscaleFp8_g1u1_vs_pf2_silu_16x128, which is slower than the CK 2-stage default used when no row matches. These rows only became reachable under EP with ROCm#5734, which removed `topk -= int(is_ep)` from get_2stage_cfgs (before that the lookup used topk=7 and fell back to the default). That made Qwen3-235B FP8 EP about 6% slower at conc 1 between the vLLM v0.30.0 and v0.31.0 ROCm images. On aiter main (MI350X): token=1 32.2 -> 26.7 us, token=2 32.1 -> 30.6 us. The token=4 and token=8 rows are kept because the tuned ASM kernel beats the default there (36.5 vs 41.6 us, 37.8 vs 46.5 us). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012XYVab4mQWCMPp2QoPkThy
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
Purpose
aiter/configs/model_configs/a8w8_blockscale_tuned_fmoe_qwen3_235b.csvhas rows for the Qwen3-235B-A22B FP8 TP8 + expert-parallel shape (cu_num 256, model_dim 4096, inter_dim 1536, 16 local experts, top-8, per_1x128). At token=1 and token=2 those rows select the 1-stage ASMfmoe_bf16_blockscaleFp8_g1u1_vs_pf2_silu_16x128, which is slower than the CK 2-stage default thatfused_moepicks when no row matches.These rows were not reachable under EP until #5734 (in v0.1.23). Before that,
get_2stage_cfgsdidtopk -= int(is_ep), so the lookup key had topk=7 and missed these topk=8 rows. EP runs then fell back to the CK 2-stage default. After #5734 the rows match. On MI355X/MI350X that makes Qwen3-235B-A22B-Thinking-2507-FP8 (TP8,--enable-expert-parallel, conc 1) about 6% slower in serving betweenvllm/vllm-openai-rocm:v0.30.0(aiter 0.1.21.post2) andv0.31.0(aiter 0.1.23) (internal ticket ROCM-32522).This PR removes only the token=1 and token=2 rows. The token=4 and token=8 rows (also 1-stage ASM) are kept because they beat the default; every other row is unchanged.
Test results
Kernel, µs per call (two runs agree within 0.5 µs):
Path comparison (same inputs): cosine similarity 0.99991–0.99995 and relative L2 difference about 1e-2 at tokens 1–8, consistent with the two paths quantizing intermediates differently.
Serving at conc 1 (only token=1 is exercised), 8x MI350X, output tok/s and median TPOT:
AI assistance (Claude) was used to triage, measure and draft this change. All changes reviewed.