Repository navigation
feat(dsv4): mxscale/MoE gfx1250 optimization - #4150
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
yadaish
commented
Jul 9, 2026
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
yadaish
force-pushed
the
dev/yandai_dsv4_optimization
branch
from
July 9, 2026 06:55
c9e9172 to
c219884
Compare
FlyDSL mxscale/MoE optimization for gfx1250, squashed: - mxscale-gemm: .cg weight TDM cache policy, gemm1 fused quant+preshuffle, tdm_as_in_prologue LDS reclaim, WST shared cache modifier - grouped MoE gemm; moe_gather_reduce on main's base + fp32 route weights - moe_contiguous_psum on main's base + build_moe_route_psum_fused_module - NaN/Inf-robust fused grouped quant; arch-aware moe_shuffle_weight - AITER_MOE_NUM_EXPERT_ACTIVATED; tuner configs; op_tests Co-authored-by: xzhu <[email protected]> Co-authored-by: lalala-sh <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
yadaish
force-pushed
the
dev/yandai_dsv4_optimization
branch
from
July 9, 2026 07:50
c219884 to
c33d142
Compare
Drop the weight-TDM .cg cache policy entirely: the TDM_CG_CACHE_POLICY constant + AITER_MXSCALE_TDM_CG_CACHE_POLICY env var, the make_desc_b tag, the wst_active_load helper, the inline prologue/loop B-descriptor tagging, and the dual_b cache_policy args. gemm_common's issue_tdm_loads reverts to main (no per-descriptor cache_policy). No quantize/amax changes here. Co-authored-by: xzhu <[email protected]> Co-authored-by: lalala-sh <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
coderfeli
approved these changes
Jul 9, 2026
zufayu
self-requested a review
July 10, 2026 01:49
JiaLuo-CAN
pushed a commit
that referenced
this pull request
Jul 12, 2026
* feat(dsv4): mxscale/MoE gfx1250 optimization FlyDSL mxscale/MoE optimization for gfx1250, squashed: - mxscale-gemm: .cg weight TDM cache policy, gemm1 fused quant+preshuffle, tdm_as_in_prologue LDS reclaim, WST shared cache modifier - grouped MoE gemm; moe_gather_reduce on main's base + fp32 route weights - moe_contiguous_psum on main's base + build_moe_route_psum_fused_module - NaN/Inf-robust fused grouped quant; arch-aware moe_shuffle_weight - AITER_MOE_NUM_EXPERT_ACTIVATED; tuner configs; op_tests Co-authored-by: xzhu <[email protected]> Co-authored-by: lalala-sh <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * refactor(dsv4): remove TDM .cg cache-modifier support from mxscale gemm Drop the weight-TDM .cg cache policy entirely: the TDM_CG_CACHE_POLICY constant + AITER_MXSCALE_TDM_CG_CACHE_POLICY env var, the make_desc_b tag, the wst_active_load helper, the inline prologue/loop B-descriptor tagging, and the dual_b cache_policy args. gemm_common's issue_tdm_loads reverts to main (no per-descriptor cache_policy). No quantize/amax changes here. Co-authored-by: xzhu <[email protected]> Co-authored-by: lalala-sh <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: xzhu <[email protected]> Co-authored-by: lalala-sh <[email protected]> Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
zhiding512
added a commit
that referenced
this pull request
Oct 15, 2026
The test cast fused_topk's route weights to bf16, which the gfx1250 gather-reduce required until it learned to read fp32 weights natively (#4150). Serving passes fp32 route weights, and so does the replay, so the cache holds only the fp32 gather-reduce and the test, which runs run-only by default, missed launch_moe_gather_reduce on every row. The bf16 and f16 weights the EP route kernel writes for gather-reduce are still exercised, now by the gather-reduce sweep of test_flydsl_moe_aux.py, which until now read only fp32 weights. Signed-off-by: zhimding <[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
Technical Details
Test Plan
Test Result
Submission Checklist