-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[rpc] default construct rpc agent options based on the backend type #30201
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
Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
torch/distributed/rpc/api.py
Outdated
| # default construct a set of RPC agent options. | ||
| rpc_agent_options = rpc.backend_registry.construct_rpc_agent_options( | ||
| backend | ||
| ) |
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.
Make sense.
construct_rpc_agent_options handlers should provide defaults in Python world.
xush6528
left a comment
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.
Noticed your PR summary and you want to do the renaming as well.
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
Pull Request resolved: #30201 Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. ghstack-source-id: 94321742 Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
Pull Request resolved: #30201 Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. ghstack-source-id: 94323760 Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…e backend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
xush6528
left a comment
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, Rohan!
| ) | ||
| if not rpc_backend_options: | ||
| # default construct a set of RPC agent options. | ||
| rpc_backend_options = rpc.backend_registry.construct_rpc_backend_options( |
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.
nice!
…kend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
Pull Request resolved: #30201 Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. ghstack-source-id: 94406842 Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…kend type" Provide a default constructor so that users don't have to construct RPC agent options. Also rename this to RPCBackend Options as suggested. Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/) [ghstack-poisoned]
Stack from ghstack:
Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.
Differential Revision: D18628698