-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Remove hasattr(__slots__) for BUILD logic in weights_only unpickler #139541
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
Closed
mikaylagawarecki
wants to merge
1
commit into
gh/mikaylagawarecki/284/base
from
gh/mikaylagawarecki/284/head
Closed
Remove hasattr(__slots__) for BUILD logic in weights_only unpickler #139541
mikaylagawarecki
wants to merge
1
commit into
gh/mikaylagawarecki/284/base
from
gh/mikaylagawarecki/284/head
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/139541
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit cf14ff2 with merge base 73fde0d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
malfet
approved these changes
Nov 4, 2024
pytorchmergebot
pushed a commit
that referenced
this pull request
Nov 4, 2024
Pull Request resolved: #137602 Approved by: https://github.com/malfet, https://github.com/albanD ghstack dependencies: #138936, #139221, #139433, #139541
atalman
pushed a commit
to atalman/pytorch
that referenced
this pull request
Nov 11, 2024
Prevent same global from being added multiple times Pull Request resolved: pytorch#139303 Approved by: https://github.com/janeyx99 ghstack dependencies: pytorch#138936, pytorch#139221, pytorch#139433, pytorch#139541, pytorch#137602
Ryo-not-rio
pushed a commit
to Ryo-not-rio/pytorch
that referenced
this pull request
Dec 2, 2024
Pull Request resolved: pytorch#137602 Approved by: https://github.com/malfet, https://github.com/albanD ghstack dependencies: pytorch#138936, pytorch#139221, pytorch#139433, pytorch#139541
Ryo-not-rio
pushed a commit
to Ryo-not-rio/pytorch
that referenced
this pull request
Dec 2, 2024
Prevent same global from being added multiple times Pull Request resolved: pytorch#139303 Approved by: https://github.com/janeyx99 ghstack dependencies: pytorch#138936, pytorch#139221, pytorch#139433, pytorch#139541, pytorch#137602
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Merged
release notes: python_frontend
python frontend release notes category
topic: bug fixes
topic category
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is tested in PR stacked above in
We cannot depend on whether
hasattr(..., __slots__)to know whether a BUILD instruction has slotstate. For example, if a class subclasses ABChasattr(__slots__)will beTruebut there might be no slots (and hencestatewill not be a tuple). So revert #138936 to following the pickle library's codeSo
Would fail on the previous code with
As there is actually no slotstate
Stack from ghstack (oldest at bottom):
cc @albanD