DO NOT MERGE: NVLS=1 symmetric-memory CI diagnostic#5624
Open
wujingyue wants to merge 7 commits into
Open
Conversation
Allocate experimental FSDP all-gather and reduce-scatter staging buffers from PyTorch's NCCL symmetric-memory pool when use_symm_mem=True. Add explicit rendezvous before the symmetric-memory collectives and cover the path with a CUDA/NCCL profiler test that checks the symmetric kernel counts. Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
- unshard_parameters now raises on a None gather axis and rendezvous unconditionally under symmetric memory, mirroring reduce_gradients. - Inline the single-use num_sharded_modules constant in the parity test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
The parity test used a tiny model (Linear(8,16)+Linear(16,4)); its sub-KB collectives make NCCL fall back to ring on runners with NCCL_NVLS_ENABLE=0 (e.g. CI), so the ncclSymk* kernel-count assertions failed there even though the runner supports symmetric memory. Widen the two sharded Linears to 1024 (a few-MiB bf16 weight), which reliably engages the symmetric kernels while preserving the loss-parity check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Force NCCL_NVLS_ENABLE=1 and report whether the multicast symmetric kernels (STMC/LDMC) engage at hidden=1024/2048/4096 on the CI runner, plus peak memory. Throwaway; to be removed after capturing the output. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Contributor
|
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. |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Jingyue Wu <jingyuew@nvidia.com>
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.
Throwaway diagnostic (for #5440 follow-up): forces NCCL_NVLS_ENABLE=1 and reports whether the multicast symmetric kernels (STMC/LDMC) engage at hidden=1024/2048/4096 on the CI runner + peak memory. Will be closed once output is captured. Not for merge.