Optimize memory usage of partial CUDA graphs - #5451
Conversation
Signed-off-by: Jieming Zhang <jiemingz@nvidia.com>
|
This PR has been automatically converted to draft because all PRs must start as drafts. When you are ready for review, click Ready for Review to begin the review process. This will:
See the contribution guide for more details. |
2976222 to
b211685
Compare
Signed-off-by: root <jiemingz@nvidia.com>
b211685 to
b2cbe34
Compare
|
/claude review |
Signed-off-by: Jieming Zhang <jiemingz@nvidia.com>
Phlip79
left a comment
There was a problem hiding this comment.
Do we have a unit or functional test to prevent memory regression? If not, should we?
Indeed I am working on a test to track memory usage (as well as tracking the numerical correctness of graphs) but unfortunately measuring memory usage under partial CG isn't straighforward. The usual methods are not currently cleanly supported in pytorch- polling memory usage with cudagraphs pools with |
I created an issue to create these tests: |
|
/ok to test 0589635 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/28562317268 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/28599091205 |
What does this PR do ?
Issue tracking
For PRs from open-source community contributors:
Linked issue:
Contribution process
Pre-checks
Code review
Feel free to message or comment @NVIDIA/mcore-oncall to help accelerate your merge into main. The less complex your PR is, the faster it will be approved and merged!
All PRs start as draft. If you open a non-draft PR, it will be automatically converted to draft.
Step 1: Mark PR as "Ready for Review"
.github/CODEOWNERS.Final Review might get declined if these requirements are not fulfilled.
Step 2: Final Review
For PRs that change
megatron/core, once all expert reviewers have approved, theFinal Reviewlabel is applied automatically and final reviewers are assigned.For PRs outside
megatron/core, this step is skipped.Step 3: Approved
Once all required reviewers have approved, the
Approvedlabel is applied automatically.Merge
Any member of mcore-engineers will be able to merge your PR.