Repository navigation
Fix CK MoE split-k dispatch for blockscale FP8 - #3050
Merged
Merged
Conversation
Signed-off-by: kliuae <[email protected]>
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
sunway513
pushed a commit
that referenced
this pull request
May 6, 2026
Signed-off-by: kliuae <[email protected]>
Liang-jianhao97
pushed a commit
that referenced
this pull request
May 7, 2026
Signed-off-by: kliuae <[email protected]>
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.
Motivation
In
ck_moe_stage1, split-k kernels write to a separate, differently sized buffer from the module output. However, currently the blockscale quant type predicate for split-k is compared through object identity rather than values, and may always be evaluated to False asQuantTypeis not a strict python enum.The downstream
cmdGenFunc_ck_moe_stagealso determines its own split-k conditions based on name matching from tuned configs. While this may be fine when tuned configs are not used as the non-splitk versions are always chosen, when the split-k kernels are selected from tuned configs through name matching, the split-k kernels would consume wrong-sized buffers, resulting in memory access faults.Technical Details
This PR replaces the
QuantTypecomparison with value equality in the detection of CK MoE stage1's split-k so that the correct buffer can be allocated for the blockscale splitk paths.Test Plan
Test Result
Submission Checklist