Repository navigation
perf(hip): MoE t-rows path takes the one-launch top-k and blend under BATCH_SMALL (byte-identical, +2-4% C8) - #389
Merged
Conversation
… BATCH_SMALL (byte-identical) forward_rows_t (the gfx1151 C>1 / verify MoE rows path) still launched moe_topk_softmax and moe_weighted_sum_blend once per row per layer: at C8 on strix that is ~216k launches each (topk 10.9 us apiece, ~4% of decode). Under ATLAS_QWEN4EXP_BATCH_SMALL (the recipe default above batch 1) it now takes the same one-launch twins forward_rows already uses, moe_topk_softmax_rows and moe_weighted_sum_blend_rows, whose rows are the single-row kernels' bytes; without them it keeps the per-row loops. Co-Authored-By: Claude Opus 5.5 <[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.
What
forward_rows_t, the gfx1151 C>1 / verify MoE rows path, still launchedmoe_topk_softmaxandmoe_weighted_sum_blendonce per row per layer. At Flash-Next C8 on strix that is about 216k launches each, roughly 4% of decode GPU time.Under
ATLAS_QWEN4EXP_BATCH_SMALL(the recipe default above batch 1), it now takes the same one-launch twinsforward_rowsalready uses:moe_topk_softmax_rowsandmoe_weighted_sum_blend_rows. Their rows are the single-row kernels' bytes. Without those kernels it keeps the per-row loops.Evidence (strix DevLab runner + framework)
🤖 Generated with Claude Code