8000 Prevent legacy_load when weights_only=True (correctly) by mikaylagawarecki · Pull Request #145020 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Prevent legacy_load when weights_only=True (correctly) #145020

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

mikaylagawarecki
Copy link
Contributor
@mikaylagawarecki mikaylagawarecki commented Jan 17, 2025

Only prevent legacy_load (.tar format removed in #713), not the whole of _legacy_load (.tar format + _use_new_zipfile_serialization=False)

Stack from ghstack (oldest at bottom):

Differential Revision: D68301405

Copy link
pytorch-bot bot commented Jan 17, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/145020

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (2 Unrelated Failures)

As of commit 61e44d0 with merge base adbbcd8 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

mikaylagawarecki added a commit that referenced this pull request Jan 17, 2025
@mikaylagawarecki mikaylagawarecki added release notes: python_frontend python frontend release notes category topic: improvements topic category labels Jan 17, 2025
mikaylagawarecki added a commit that referenced this pull request Jan 17, 2025
@mikaylagawarecki mikaylagawarecki added ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request labels Jan 17, 2025
@mikaylagawarecki
Copy link
Contributor Author

@mikaylagawarecki has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mikaylagawarecki mikaylagawarecki requested review from malfet and albanD and removed request for malfet January 17, 2025 00:27
Only prevent `legacy_load` (.tar format removed in #713), not the whole of `_legacy_load` (.tar format + _use_new_zipfile_serialization=False)


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

[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Jan 17, 2025
@mikaylagawarecki
Copy link
Contributor Author

@mikaylagawarecki has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Only prevent `legacy_load` (.tar format removed in #713), not the whole of `_legacy_load` (.tar format + _use_new_zipfile_serialization=False)


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

[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Jan 17, 2025
@mikaylagawarecki
Copy link
Contributor Author

@mikaylagawarecki has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@mikaylagawarecki mikaylagawarecki marked this pull request as ready for review January 17, 2025 16:18
Copy link
Collaborator
@albanD albanD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: inductor / linux-jammy-cpu-py3.9-gcc11-inductor / test (inductor_torchbench_cpu_smoketest_perf, 1, 1, linux.24xl.spr-metal)

Details for Dev Infra team Raised by workflow job

Only prevent `legacy_load` (.tar format removed in #713), not the whole of `_legacy_load` (.tar format + _use_new_zipfile_serialization=False)


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

[ghstack-poisoned]
mikaylagawarecki added a commit that referenced this pull request Jan 17, 2025
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 17, 2025 17:22 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 17, 2025 17:22 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 17, 2025 17:22 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 17, 2025 17:22 Inactive
@pytorch-bot pytorch-bot bot temporarily deployed to upload-benchmark-results January 17, 2025 17:22 Inactive
@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@mikaylagawarecki
Copy link
Contributor Author

@pytorchbot cherry-pick --onto release/2.6 -c critical

pytorchbot pushed a commit that referenced this pull request Jan 17, 2025
Only prevent `legacy_load` (.tar format removed in #713), not the whole of `_legacy_load` (.tar format + _use_new_zipfile_serialization=False)

Differential Revision: [D68301405](https://our.internmc.facebook.com/intern/diff/D68301405)
Pull Request resolved: #145020
Approved by: https://github.com/kit1980, https://github.com/albanD

(cherry picked from commit 0eda02a)
@pytorchbot
Copy link
Collaborator

Cherry picking #145020

The cherry pick PR is at #145111 and it is recommended to link a critical cherry pick PR with an issue. The following tracker issues are updated:

Details for Dev Infra team Raised by workflow job

kit1980 pushed a commit that referenced this pull request Jan 17, 2025
Prevent legacy_load when weights_only=True (correctly) (#145020)

Only prevent `legacy_load` (.tar format removed in #713), not the whole of `_legacy_load` (.tar format + _use_new_zipfile_serialization=False)

Differential Revision: [D68301405](https://our.internmc.facebook.com/intern/diff/D68301405)
Pull Request resolved: #145020
Approved by: https://github.com/kit1980, https://github.com/albanD

(cherry picked from commit 0eda02a)

Co-authored-by: Mikayla Gawarecki <mikaylagawarecki@gmail.com>
@github-actions github-actions bot deleted the gh/mikaylagawarecki/306/head branch February 17, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: python_frontend python frontend release notes category topic: improvements topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0