perf(mtp): optimize Qwen3.5 GDN verification kernel - #1513
Merged
Conversation
sufubao
force-pushed
the
gdn-mtp-kernel-opt
branch
2 times, most recently
from
August 28, 2026 16:32
9e8cd17 to
7cdd1c6
Compare
sufubao
force-pushed
the
gdn-mtp-kernel-opt
branch
from
August 28, 2026 16:56
5124935 to
0be0854
Compare
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.
Summary
BV,num_warps, andnum_stagesfor each CUDA Graph shapeBV ∈ {4, 8, 16, 32, 64},num_warps ∈ {1, 2, 4, 8}, andnum_stages ∈ {1, 2, 3}mutates_args=["initial_state"]cu_seqlensint64 cast, and the GDN gate copy in the MTP pathFinal H100 validation after rebase
Final head
0be08549f6fbd7fcf5764792d88e0f3b2184918cis based on the then-currentupstream/main@aa7cab9ad12452fb08bfc316461242640b1b976c(PR #1509 merged).The matched control is
upstream/main@e1caab0b. Candidate and control used the same four H100 80GB GPUs, Qwen3.5-27B model files, TP4, MTP3, FP8 (fp8w8a8-pt-sgl), CUDA Graph shapes, launch environment, AIPerf corpus, and fixed streaming ISL=256/OSL=1024. Each point is the median of three recorded runs; all 42 final candidate runs completed with zero request errors.Geometric-mean output-throughput gain across C1–C64 is +6.92%. The C1 p99 TTFT increase is below the 3% regression gate; all other reported p99 TTFT and ITL comparisons improve. First-run JIT/cache outliers at C1 and C4 occurred in both control and candidate sets and are retained in raw artifacts; medians are used as specified.
Final candidate run IDs on host
10-116-123-171:260829-005838-2654031-sudo-n-docker-run-d-name-pr1513-final-0be08549-p260829-010139-2664033-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010221-2666746-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010319-2668254-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010359-2669682-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010454-2671324-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010537-2673354-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010626-2676464-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010724-2681721-home-devsft-aiperf-venv-bin-aiperf-profile-model260829-010853-2687303-sh-c-sudo-n-docker-logs-pr1513-final-0be08549-p1Raw results and server logs are retained under
/home/devsft/qwen35_goal_20260829/pr1513_aa7_results.Correctness and autotune evidence
1c98ca56tuned all 34 shapes once per rank and reached ready without traceback or OOM4.8828125e-4, output min cosine1.0, state max abs2.3841858e-7, state min cosine1.017 PASS / 2 baseline FAIL / 6 SKIP, with no PR-introduced failuregit diff --checkpassEstablished facts are the test, capture, and measured results above. The expected benefit on other models, GPUs, or workload distributions remains a hypothesis and is not claimed here. Every performance command was run through
exp -m.