-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add RPC internal helper that overrides the default pickler. #30185
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
To enable share_memory over RPC, add an internal helper that overrides the default RPC pickler. Replace D18598974 Differential Revision: [D18621372](https://our.internmc.facebook.com/intern/diff/D18621372/) [ghstack-poisoned]
To enable share_memory over RPC, add an internal helper that overrides the default RPC pickler. Replace D18598974 Differential Revision: [D18621372](https://our.internmc.facebook.com/intern/diff/D18621372/) ghstack-source-id: 94299660 Pull Request resolved: #30185
Replaced #30173 |
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.
@@ -14,6 +14,7 @@ | |||
from common_utils import load_tests | |||
import dist_utils | |||
from dist_utils import dist_init | |||
from torch.distributed.rpc.api import _use_rpc_pickler |
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: can we put this in torch.distributed.rpc
and not torch.distributed.rpc.api
?
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.
Let's land this. I will rebase #30217 when this is in.
@pritamdamania87 Thanks for clarifying, makes sense. Can you file an issue so we don't lose track of removing this eventually? Retaining this is a liability in my opinion. |
Stack from ghstack:
To enable share_memory over RPC, add an internal helper that overrides the default RPC pickler.
Replace D18598974
Differential Revision: D18621372