perf: fuse SiLU and FP8 group quant before DeepGEMM#109
Closed
yeahdongcn wants to merge 9 commits into
Closed
Conversation
added 7 commits
July 18, 2026 18:14
This was referenced Jul 20, 2026
Collaborator
Author
|
Superseded by #115, which consolidates the four logical kernel changes on the current |
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
This is the first PR in a four-PR MUSA kernel stack:
Review/merge order: #109 -> #110 -> #111 -> #112.
The compiler pass is selected automatically for the validated Qwen3-8B-FP8,
single-S5000 contract. Unsupported model, parallelism, shape, dtype, device,
or quantization contracts keep the existing path. No campaign- or
fusion-specific environment control is introduced or read to select this
path; guarded automatic dispatch is the selection mechanism.
Exact source:
v0.24.0-devat68b5ef7a7eac9959dd71f600f7df2ebd756de1f87d6dd02c4b6a45e00d0131fd42b885030d7891c2xd/musa-0759-silu-deepgemmee0da84ab9e04ac7610e28580af62c365e898389Validation
Historical per-ticket performance evidence
The figures below are retained from the earlier MUSA-0759-only serving
campaign. They predate the current environment-independent and logical-device
follow-ups, so they are directional historical evidence, not a result from the
current exact head and not the final combined four-PR A/B. The run used
Qwen3-8B-FP8, TP1, S5000, normal Inductor,
FULL_AND_PIECEWISEgraph capture, greedy decoding, no MTP/speculativedecoding, and separate candidate/native-control source trees.
openai-chatadds eight Qwen template tokens, so
--random-input-len 4096measures 4104input tokens; every request generated exactly 1024 output tokens.
TPOT improved in all four historical cells. TTFT was noisy, especially at
concurrency 4, and is not presented as a general win.
Superseded descendant-stack evidence
The former descendant head
f53cf6cbbd7f4d85e82270a86db1938c713d948apassed dense, MoE, and MLA functional serving checks. That SHA is no longer the
final stack, and the same host-81 campaign had a foreign ExecBench workload,
so its combined latency rows are rejected and none of this evidence is used as
an exact-head readiness claim.
Exact-final MUSA-0767 gate
Status: EXACT-HEAD FUNCTIONAL REGRESSION COMPLETE; PERFORMANCE GATES
PENDING -- keep this PR in draft.
95c3661c8658a861a1891f981c81dcadabea0654a766855ed712d61f81acb6b11d456ea5a128cac503dbe0526f72d4dcba6b743c500d4d5eaaf9676e263f9bd91cbfd265db140feb3ab55a222ea7fc8324c611bda9d3d842bc94850bbc7ccf4d869d0692132768a73.3.5-server,MUSA runtime
50200,torch==2.9.1.post1,torch_musa==2.9.1.post1+4c646b6,torchada==0.1.75,MATE/FlashAttention3
0.2.4, candidate extension SHA-256d0baaa8ba11981438a549115d50e89c10ec566dfac1ba27c0ccdc8364c5c2bd7MUSA_VISIBLE_DEVICES=4,5; physical devices 4 and 5 were exposed aslogical devices 0 and 1, and the smoke selected both optimized samplers on
logical device 0
PASS, 3/3 rows and 10/10 semantic requests (Qwen3-8B-FP8 TP1
FLASH_ATTN, Qwen3.5-35B-A3B-FP8 TP4 FLASH_ATTN, and
DeepSeek-V2-Lite-Chat-FP8 TP1 FLASHMLA; Inductor,
FULL_AND_PIECEWISE, MTP off)
4104/1024 and concurrency 1/4/16/64, without MTP:
PENDING -- not present in this regression-only bundleplus repeated deterministic prompts invalidated cold-prefill TTFT; every
A/B leg will restart with prefix caching disabled
PENDING -- not present in this regression-only bundleea1b38559be0458343b85f3cd6bba275d320d2b1c729071f455e2dccb04c5272;its focused monitor verdict was FAIL because foreign ExecBench GPU work
was present, so the clean performance-monitor gate remains
PENDINGRemaining gate
The exact-head functional regression is complete. This PR remains draft until
the combined and widening A/B plus clean performance-monitor gates are
complete and accepted. The stacked PRs must be reviewed and merged in order.