[Main] Partial CUDA Graph support for EP Overlap#2184
Merged
ericharper merged 20 commits intoNVIDIA:mainfrom Jan 16, 2026
Merged
[Main] Partial CUDA Graph support for EP Overlap#2184ericharper merged 20 commits intoNVIDIA:mainfrom
ericharper merged 20 commits intoNVIDIA:mainfrom
Conversation
6 tasks
Contributor
|
@fanshiqing @jiemingz can you please take a look at this MR? |
Contributor
|
it looks like this include changes from #1920 , is that supposed to be merged first and this be rebased? |
Contributor
Author
b106510 to
bb04701
Compare
Contributor
Author
|
/ok to test 125fa43 |
lhb8125
reviewed
Jan 13, 2026
jiemingz
reviewed
Jan 13, 2026
jiemingz
reviewed
Jan 13, 2026
4279c7e to
677bd59
Compare
kvareddy
approved these changes
Jan 14, 2026
yanring
approved these changes
Jan 15, 2026
Contributor
Author
|
/ok to test 9eababb |
Contributor
Author
|
@ericharper Can you help review this PR, still needs approval from NeMo and GPT group, thanks~ |
ericharper
approved these changes
Jan 15, 2026
Member
|
/ok to test ecbaff4 |
Member
|
/ok to test c3219e6 |
Member
|
/ok to test e01fcab |
Contributor
Author
|
/ok to test e180d4d |
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.
Based on #1920
What does this PR do ?
EP Overlap brings extra cpu overhead and may cause GPU bubble during execution, partial CUDA graph helps release cpu pressure within the selected scope. This PR supports partial CUDA graph for EP Overlap, the supported scopes are
attn,moe_router,moe_preprocess(moeandmlpare not supported).Usage
To enable this feature, refer to the following example:
(
--delay-wgrad-computeis optional)Correctness

The loss value can be bitwise aligned when enable & disable partial CUDA graph.
This PR is for main branch and the PR for dev branch is in PR2168
Dependencies
enable CUDA graph with
delay-wgrad-computerelies on TE PR:Contribution process
flowchart LR A[Pre-checks] --> B[PR Tests] subgraph Code Review/Approval C1[Expert Review] --> C2[Final Review] end B --> C1 C2 --> D[Merge]Pre-checks
Core 0.8)Code review
The following process is enforced via the CODEOWNERS file for changes into
megatron/core. For changes outside ofmegatron/core, it is up to the PR author whether or not to tag the Final Reviewer team.For MRs into `main` branch
(Step 1): Add PR label
Expert Review(Step 2): Collect the expert reviewers reviews
Expert Reviewlabel when your PR is ready for review.Final Review might get declined if these requirements are not fulfilled.
(Step 3): Final Review
Final Reviewlabel(Optional Step 4): Cherry-pick into release branch
If this PR also needs to be merged into
core_r*release branches, after this PR has been merged, selectCherry-pickto open a new PR into the release branch.For MRs into `dev` branch
The proposed review process for `dev` branch is under active discussion.MRs are mergable after one approval by either
eharper@nvidia.comorzijiey@nvidia.com.Merging your PR
Any member of core-adlr and
core-nemowill be able to merge your PR.