Skip to content

Conversation

@rohan-varma
Copy link
Contributor

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

Stack from ghstack:

Some of the examples provided in rpc/api.py were not updated along
with the code changes, this PR updates them. Also removes the
dist.ProcessGroup information since init_rpc now initializes a default
process group.

Differential Revision: D18582596

…t use of

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 18, 2019
…t use of

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

ghstack-source-id: 94155096
Pull Request resolved: #30052
and distributed autograd. As part of this, it will also initialize a default
`ProcessGroup` `backend
<https://pytorch.org/docs/stable/distributed.html#torch.distributed.Backend>`_
that uses gloo for collective communication.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically, I'm trying to express that init_rpc runs dist.init_process_group(backend=GLOO) behind the scenes, is there a better way to write this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite this as follows to make it clear that the default is ProcessGroup but other backends be available:

By default, this will initialize the `ProcessGroup` backend. The `ProcessGroup` backend internally uses gloo for communication

@rohan-varma rohan-varma requested a review from xush6528 November 18, 2019 23:43
Copy link
Contributor

@pritamdamania87 pritamdamania87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, although please address the comments before landing.

and distributed autograd. As part of this, it will also initialize a default
`ProcessGroup` `backend
<https://pytorch.org/docs/stable/distributed.html#torch.distributed.Backend>`_
that uses gloo for collective communication.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite this as follows to make it clear that the default is ProcessGroup but other backends be available:

By default, this will initialize the `ProcessGroup` backend. The `ProcessGroup` backend internally uses gloo for communication

and distributed autograd.
and distributed autograd. As part of this, it will also initialize a default
`ProcessGroup` `backend
<https://pytorch.org/docs/stable/distributed.html#torch.distributed.Backend>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use :ref: for this link instead of the full path.

…lect correct use of

rpc.init_rpc"

rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 19, 2019
…t use of

rpc.init_rpc

Pull Request resolved: #30052

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.
ghstack-source-id: 94200238

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)
…lect correct use of

rpc.init_rpc"

rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 20, 2019
…t use of

rpc.init_rpc

Pull Request resolved: #30052

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.
ghstack-source-id: 94247167

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)
…lect correct use of

rpc.init_rpc"

rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
…lect correct use of

rpc.init_rpc"

rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 20, 2019
…t use of

rpc.init_rpc

Pull Request resolved: #30052

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.
ghstack-source-id: 94256844

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)
…lect correct use of

rpc.init_rpc"

rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api
rpc.init_rpc**
* #30050 [rpc] rename join_rpc to wait_all_workers in public api

rpc.init_rpc

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 20, 2019
…t use of

rpc.init_rpc

Pull Request resolved: #30052

Some of the examples provided in `rpc/api.py` were not updated along
with the code changes, this PR updates them. Also removes the
`dist.ProcessGroup` information since `init_rpc` now initializes a default
process group.
ghstack-source-id: 94273004

Differential Revision: [D18582596](https://our.internmc.facebook.com/intern/diff/D18582596/)
@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/36/head branch December 10, 2019 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants