Repository navigation
fix: ensure GTP params are ready before CUDA graph replay - #6525
Conversation
|
/claude strict-review |
|
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. |
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/claude strict-review |
3261774 to
ad00e99
Compare
ad00e99 to
a74c65f
Compare
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com>
88df797 to
876f098
Compare
|
@JF-D, let's wait until we have sign-off from Shiqing on GTP-related changes |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/32388100943 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/32452648844 |
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com> Signed-off-by: Dmytro Pykhtar <dpykhtar@nvidia.com>
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com> Signed-off-by: Kezhi Kong <kezhik@kezhik-mlt.client.nvidia.com>
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com> (cherry picked from commit b3c9100)
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com> (cherry picked from commit b3c9100)
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com>
Signed-off-by: Jiangfei Duan <jiangfeid@nvidia.com> (cherry picked from commit b3c9100)
What does this PR do?
PR #6388 ensures that GTP eager prefetch publishes DDP-sharded parameters
before reading them. During local CUDA graph capture, that publication must
not be captured because DDP parameter all-gathers are scheduled once per
iteration, while a graph may replay once per microbatch.
This PR carries the parameter-readiness dependency across the CUDA graph
capture/replay boundary:
_CudaGraphRunner.ensure_params_ready()immediately before graph replay.registrations to reach the graph runner.
Issue tracking
Related to #6388 and #6232.
Contribution process
Pre-checks