-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix torch.load(..., weights_only=True) for NT #112516
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112516
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit f890557 with merge base 86196bf ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-12-py3-arm64-mps / test (mps, 1, 1, macos-m1-12) Details for Dev Infra teamRaised by workflow job |
| torch._utils._rebuild_tensor_v2, | ||
| torch._utils._rebuild_sparse_tensor, | ||
| torch._utils._rebuild_meta_tensor_no_storage, | ||
| torch._utils._rebuild_nested_tensor, |
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.
Why not add torch._nested_view_from_buffer here directly?
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.
I tried that initially but it didn't work? It was getting caught up on the built-in getattr
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.
The one for the torch module?
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.
Yes, I believe that's the one
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.
any ideas on how to solve this?
|
@pytorchbot merge -f "ignore spurious failure" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Found when looking into pytorch#112509 Pull Request resolved: pytorch#112516 Approved by: https://github.com/soulitzer
Found when looking into pytorch#112509 Pull Request resolved: pytorch#112516 Approved by: https://github.com/soulitzer
Stack from ghstack (oldest at bottom):
Found when looking into #112509