Skip to content

Conversation

@rohan-varma
Copy link
Contributor

@rohan-varma rohan-varma commented Nov 13, 2019

Stack from ghstack:

Rename this API as discussed, since its use cases extend beyond only
model parallelism.

Differential Revision: D18491743

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]
@rohan-varma rohan-varma changed the title [distributed] rename init_model_parallel to init_rpc [rpc] rename init_model_parallel to init_rpc Nov 13, 2019
# Initialize ProcessGroup.
if dist.is_initialized():
raise RuntimeError(
"Default process group must not be initialized before `init_model_parallel`."
Copy link
Contributor Author

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]
rohan-varma added a commit that referenced this pull request Nov 13, 2019
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]
rohan-varma added a commit that referenced this pull request Nov 14, 2019
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/)
Copy link
Contributor

@zhaojuanmao zhaojuanmao left a 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?

@rohan-varma
Copy link
Contributor Author

should we rename _init_rpc() as well?

I think we can rename it _init_rpc_backend since it sets up things like the process group backend.

):
r"""
Initializes model parallel primitives such as the local rpc agent
Initializes rpc primitives such as the local rpc agent
Copy link
Contributor

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]
rohan-varma added a commit that referenced this pull request Nov 15, 2019
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]
rohan-varma added a commit that referenced this pull request Nov 15, 2019
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/)
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 639133d.

@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/31/head branch November 21, 2019 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants