[Kernel][SM70] Fuse exact-shape GDN decode projections - #278
Merged
Merged
Conversation
yangzhuxinyzx
force-pushed
the
codex/v100-qwen38-nvfp4-gdn-decode-20260824
branch
from
August 24, 2026 14:55
3f4c39a to
e9f4d40
Compare
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
Signed-off-by: yangzhuxinyzx <153831768+yangzhuxinyzx@users.noreply.github.com>
yangzhuxinyzx
force-pushed
the
codex/v100-qwen38-nvfp4-gdn-decode-20260824
branch
from
August 24, 2026 15:45
e9f4d40 to
2dfbcc8
Compare
yangzhuxinyzx
marked this pull request as ready for review
August 24, 2026 15:46
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.
Purpose
Add an opt-in SM70 GDN decode fusion while preserving the existing fallback paths. The measured Qwen3.8 NVFP4 workload is performance/quality evidence only: runtime admission does not inspect a model name, checkpoint path, architecture identity, or repository-specific identity field.
Source audit and fixes
VLLM_SM70_GDN_QPN8_BA_SPLIT=1andVLLM_SM70_GDN_RMSNORM_ONEPASS=1.Frozen endpoint evidence
Four V100-SXM2-32GB GPUs, TP4, input 1024, output cap 256, official random sampling, E4M3 KV, Flash-V100, full CUDA graph, and no MTP. Pure decode excludes TTFT/prefill; each number is the stable median of three sequential requests.
This is +2.751% steady decode and -2.678% TPOT. All three candidate requests reproduce SHA256
8b37337f4c393711cb8550db6bae909b1e85de8df1cf5ba8c60d8c000749c0a2.The latest-main default-wrapper recheck reports 81.554583 tok/s / 12.261727 ms for control and 83.633383 tok/s / 11.956949 ms for candidate (+2.549%). All four TP ranks report the C++ route and all three 256-token candidate streams exactly match control SHA256
ca77db3b032a1600a8567adea706108c1bd8c5472b3ace2318c41ab17c66c1f9.The 48-layer RMSNorm operator is bitwise exact and saves 55.946 us/token. QKV is exact; b/a relative L2 is
6.368e-8with maximum absolute error2.384e-7.Rejected experiments remain excluded: b/a split alone diverged at token 202; the Q/K RMSNorm + MRoPE + KV-write route diverged at token 1 and stopped after 208 tokens.
Validation
maina6f4b8b70with both commits DCO-signed.TORCH_CUDA_ARCH_LIST=7.0.tests/model_executor/test_qwen3_5_quantization.py: 13 passed on the final source, including paired-flag, missing-extension, and loaded-weight layout contracts.git diff --check: passed.Evidence is recorded in
docs/design/sm70_qwen38_nvfp4_decode.mdanddocs/design/sm70_v100_migration_control.md; raw local artifacts remain intentionally untracked.