Repository navigation
feat(ep/v2): peak and capped tuning profiles for the hip schedule - #1003
Merged
Merged
Conversation
- lookup() takes profile "peak" (the tuned tables, default) or "capped" (no grid over 64 blocks) - Capped takes a shape's _CAPPED_* rows, else its peak rows with each wider bucket on the default - EpDispatchCombineConfig.tuning_profile; MORI_EP_TUNING_PROFILE; capped is the gfx125x op default - Capped rows for EP4 hidden 5120 (both DeepSeek-V4.1-Flash MoEs) - test_tuning_profile.py and a README section Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
GPU CI for
Test groups (the steps that run in those jobs): cco, epv2, fused. Lanes follow the changed files. Adding |
… profiles - A wider bucket goes to 64 blocks of max(its warps, the default's), so push combine keeps 64x24 - A capped push row counts without a peak push row - AsyncLL ops do not resolve a profile; tuning_profile is validated on every path - The schedule dump names the profile; conftest clears MORI_EP_TUNING_PROFILE for these tests - CI runs test_tuning_profile.py with the other table tests Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Collaborator
|
look good for me, when it is merged to main, I will clean about block128 code, like blockNum == 128 |
zhangfei829
approved these changes
Nov 16, 2026
zhangfei829
left a comment
Collaborator
There was a problem hiding this comment.
please merge. thanks
- ci_cco.yml: the tuning-table step runs test_tuning_configs.py (#1001) and test_tuning_profile.py 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.
Adds a second tuning profile for the hip intranode schedule, so an EP op can keep its grids small and leave CUs to the expert GEMMs that share the GPU, while callers that read the tables directly keep today's rows.
peak: the tuned tables as they are.capped: no grid wider than 64 blocks. A shape takes its_CAPPED_*rows. Without any, it keeps its peak buckets that fit and puts each wider bucket on 64 blocks of the larger of its warp count and the default's (16 dispatch, 8 combine), so a 128x24 push combine runs 64x24, and logs a warning naming the shape. LL128 and bf16 push rows already fit. AsyncLL sizes its grids from the CU count and is outside both profiles.How the profile is chosen:
EpDispatchCombineConfig.tuning_profile)cappedon gfx125x,peakelsewhereMORI_EP_TUNING_PROFILEhip_tuning_configs.lookup(profile=...), e.g. aiter's MegaMoEpeakMORI_EP_TUNING_PROFILEThe op stores the profile it resolved in
tuning_profile, and the schedule dump names it. Pinned geometry and an explicitschedulework as before; an unknown profile name is refused on every path.The capped rows added here are for EP4 hidden 5120, both DeepSeek-V4.1-Flash MoEs:
Their measurements are in the table comments.
test_tuning_profile.py(CPU only) checks:capped, every gfx125x lookup (each table shape × dispatch dtype × combine quant type, ASIC revisions 0 and 1) stays within 64 blocks;peakislookup()'s default and leaves every lookup unchanged;CI runs it with the other table tests; a conftest clears
MORI_EP_TUNING_PROFILEso an exported value cannot change them.🤖 Generated with Claude Code