Skip to content
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

[RPC Framework] Remote the list for the attributes that will be ignored for pickling #58345

Closed
wants to merge 1 commit into from

Conversation

wayi1
Copy link
Contributor

@wayi1 wayi1 commented May 15, 2021

Stack from ghstack:

  1. Add a sanity check to make sure any new attribute added to the constructor should be added to either _REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING pr _REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING.
  2. Update some comments and warning -- now if a new attribute is added after the construction, it will not be pickled. Previously it will trigger a runtime error, which is hard for unit test (one worker hits the runtime error, but the other worker will cause timeout).
    Context: [RPC Framework] Replace Python Pickler with internal RPC pickler for RemoteModule #58019 (comment)

Differential Revision: D28460744

1. Add a sanity check to make sure any new attribute added to the constructor should be added to either `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING` pr `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING`.
2. Update some comments and warning -- now if a new attribute is added after the construction, it will not be pickled. Previously it will trigger a runtime error, which is hard to for unit test.
Context: #58019 (comment)

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

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented May 15, 2021

💊 CI failures summary and remediations

As of commit db97316 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot facebook-github-bot added oncall: distributed Add this issue/PR to distributed oncall triage queue cla signed labels May 15, 2021
wayi1 pushed a commit that referenced this pull request May 15, 2021
1. Add a sanity check to make sure any new attribute added to the constructor should be added to either `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING` pr `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING`.
2. Update some comments and warning -- now if a new attribute is added after the construction, it will not be pickled. Previously it will trigger a runtime error, which is hard to for unit test.
Context: #58019 (comment)

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

ghstack-source-id: 129070358
Pull Request resolved: #58345
Copy link
Member

@rohan-varma rohan-varma 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, thanks!

@wayi1 wayi1 changed the title Remote the list for the attributes that will be ignored for pickling [RPC Framework] Remote the list for the attributes that will be ignored for pickling May 15, 2021
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 2436377.

@facebook-github-bot facebook-github-bot deleted the gh/SciPioneer/130/head branch May 18, 2021 14:17
krshrimali pushed a commit to krshrimali/pytorch that referenced this pull request May 19, 2021
…ytorch#58345)

Summary:
Pull Request resolved: pytorch#58345

1. Add a sanity check to make sure any new attribute added to the constructor should be added to either `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING` pr `_REMOTE_MODULE_ATTRIBUTES_IGNORE_FOR_PICKLING`.
2. Update some comments and warning -- now if a new attribute is added after the construction, it will not be pickled. Previously it will trigger a runtime error, which is hard for unit test (one worker hit the runtime error, but the other worker will cause timeout).
Context: pytorch#58019 (comment)
ghstack-source-id: 129070358

Test Plan: unit test

Reviewed By: rohan-varma

Differential Revision: D28460744

fbshipit-source-id: 8028186fc447c88fbf2bf57f5c5d321f42ba54ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants