-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[c10d] Start deprecating *_multigpu APIs #85961
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/85961
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Failures, 1 PendingAs of commit 217d2c5: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
The "CUDA out of memory" CI error is unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. thx for working on it!
| """ | ||
| warnings.warn( | ||
| "torch.distributed.broadcast_multigpu will be deprecated. If you must " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Added
|
@pytorchbot merge -f 'The CUDA out of memory error is unrelated to this change' |
|
@pytorchbot successfully started a merge job. Check the current status here. |
### Deprecation reasons: - For most users training is on one GPU per process so these APIs are rarely used - They added one more API dimension - They can be expressed in a composed manner - They are not abstracted – specific to GPU - They caused backend APIs and implementations to have nested `std::vector<std::vector<Tensor>>`, which is hard to read or maintain Pull Request resolved: #85961 Approved by: https://github.com/XilunWu, https://github.com/H-Huang
Deprecation reasons:
std::vector<std::vector<Tensor>>, which is hard to read or maintain