Repository navigation
[MoE] Tune Qwen3.5 TP2 and optimize FlyDSL intermediate quantization - #15
Merged
Merged
Conversation
Quantizing the 256-channel intermediate activation launches one 256-thread HIP block per route, although only 32 threads load and convert valid data. Add a gfx942 FlyDSL kernel that processes four rows per 128-thread block using independent 32-lane reductions. This reduces dispatched waves by 8x and removes LDS storage and block barriers for the reduction. Preserve HIP's native reciprocal, saturation and FP8 FNUZ conversion, including zero rows and rounding-boundary cases. Limit the new path to Qwen3.5 TP2 PTPC prefill: hidden/intermediate=2048/256, experts/topk=257/9, BF16 activations and FP8 FNUZ weights. Apply the previously validated CK/ASM/FlyDSL selections to 15 TP2 buckets and update the six FlyDSL prefill timings. Keep TP1 and the T512 CK row unchanged. Against the previous best configurations, the quantization change reduces complete MoE GPU kernel time by 5.28%-9.75% at T1024-32768 in interleaved, same-input measurements on two MI308X GPUs. Validation on MI308X/gfx942 with FlyDSL 0.3.2: - Original test_moe_2stage.py command passed all 16 token sizes using the default merged CSV: --no-flydsl-csv -q 2 -a silu -e 257 -k 9 -dim 2048,256 -p t -t 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768. - 24 quantization cases matched HIP FP8 bytes and FP32 scales exactly. - Fixed-input complete MoE outputs matched the previous FlyDSL path exactly at the six adopted prefill sizes. - All 14 configuration collision checks passed.
apinge
marked this pull request as ready for review
December 1, 2026 08:57
sammysun0711
reviewed
Dec 1, 2026
sammysun0711
approved these changes
Dec 1, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
perf
T1 single-point retest: 35.14 → 15.17 μs (2.32×).
The two after measurements fluctuated noticeably, so the table keeps the first-round results instead of the retest data.
acc
E2E model testing
launch using
evaluation/launch_qwen3.5-35B-fp8_tp2_disable_prefix_cache.sh, no radix cache no mtp 8 conc 8k in 500 outBefore
After
profiling
before prefill
after prefill
before decode
after decode
gsm8k
before 200
after 200
after 1319