Repository navigation
[distributed] Add the tested collective-order repro to PR #5645 - #1
Merged
tranle-fw merged 1 commit intoOct 29, 2026
Conversation
This was referenced Oct 28, 2026
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.
--separate-groupgives AG its own communicator.Reproduction commands and measured setup
Unchanged tested source:
3803b11c, fault at line 56. Both runs used the same four B300 GPUs and PyTorch2.13.0a0+8145d630e8.nv26.06, CUDA 13.3, NCCL 2.30.5.Run each case in a separate process/container with an external deadline. Equivalent local invocations with the recorded communication settings:
The measured runs used a container deadline and a CUDA-readiness gate before process-group creation; neither changes the script's fault phase. No GPU delay is injected. Source SHA256:
fb0abc0ec4a74a099a8f89125bf71e270cd9092253191f4c7e62aea79f6e88be.Fresh run of the exact script: sanitized forced-order logs
Four CUDA ranks; PyTorch 2.13.0a0, CUDA 13.3, NCCL 2.30.5;
NCCL_LAUNCH_ORDER_IMPLICIT=1in both runs. After matching AG→A2A warmup, rank 0 deliberately submits A2A→AG while peers submit AG→A2A. This is a host-order negative control, not GPU-only skew or a natural FSDP prefetch reproduction. Host/process identifiers, timestamps, paths and addresses are omitted; retained lines/payloads below are unchanged.Shared group: all ranks warm up and both asynchronous calls return on every rank, then collective sequence 3 times out.
Dedicated all-gather group: the same opposite host order completes.
PASSis printed after CUDA synchronization and exact checks of both outputs.The shared run recorded the 30-second watchdog, then required its external 150-second container deadline (exit 137). The dedicated run exited 0 in 16.090 seconds. Dedicated completion is an empirical result of this test, not a general guarantee for reversed cross-communicator order.
Only
scripts/repro_collective_order.pyis added; the existing communicator fix is unchanged. This transfer supersedes pytorch/torchtitan#5658.