-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[rpc] rename init_model_parallel to init_rpc #29762
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
Rename this API as discussed, since it's use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
Rename this API as discussed, since it's use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
| # Initialize ProcessGroup. | ||
| if dist.is_initialized(): | ||
| raise RuntimeError( | ||
| "Default process group must not be initialized before `init_model_parallel`." |
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.
removed backticks
Rename this API as discussed, since its use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
Pull Request resolved: #29762 Rename this API as discussed, since it's use cases extend beyond only model parallelism. ghstack-source-id: 93868097 Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/)
Rename this API as discussed, since its use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
Pull Request resolved: #29762 Rename this API as discussed, since it's use cases extend beyond only model parallelism. ghstack-source-id: 93880068 Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/)
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.
should we rename _init_rpc() as well?
I think we can rename it |
torch/distributed/rpc/__init__.py
Outdated
| ): | ||
| r""" | ||
| Initializes model parallel primitives such as the local rpc agent | ||
| Initializes rpc primitives such as the local rpc agent |
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.
Nit for later fixup: capitalize RPC.
Rename this API as discussed, since its use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
Pull Request resolved: #29762 Rename this API as discussed, since it's use cases extend beyond only model parallelism. ghstack-source-id: 93974400 Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/)
Rename this API as discussed, since its use cases extend beyond only model parallelism. Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/) [ghstack-poisoned]
Pull Request resolved: #29762 Rename this API as discussed, since it's use cases extend beyond only model parallelism. ghstack-source-id: 94020627 Differential Revision: [D18491743](https://our.internmc.facebook.com/intern/diff/D18491743/)
|
This pull request has been merged in 639133d. |
Stack from ghstack:
Rename this API as discussed, since its use cases extend beyond only
model parallelism.
Differential Revision: D18491743