Repository navigation
[PyTorch] Distributed tests set device in NCCL init and manually shut down NCCL #3655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
379357b
04c9194
009bbb2
1910760
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ def _run_tensor_parallel(rank, world_size, init_file, label_smoothing): | |
| init_method=f"file://{init_file}", | ||
| rank=rank, | ||
| world_size=world_size, | ||
| device_id=device, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be good to understand why device_id needs to be set manually. @timmoon10 and I had offline discussion regarding this. It might be because this particular test doesnt use torchrun like other tests do, and so the device is not auto-set to "cuda:rank" like other tests
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do actually have a diff already that changes this test to torchrun to avoid this. Can make PR today. @timmoon10 |
||
| ) | ||
| try: | ||
| generator = torch.Generator().manual_seed(2025) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.