-
Notifications
You must be signed in to change notification settings - Fork 24.6k
[export] Move PT2ArchiveWriter/Reader to torch/export #153795
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/153795
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 101 PendingAs of commit bbf2879 with merge base fc85907 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D74616598 |
This pull request was exported from Phabricator. Differential Revision: D74616598 |
8beb597
to
4ff51a7
Compare
Summary: Pull Request resolved: #153795 Before: `from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package` After: `from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package` Test Plan: `buck2 test //sigmoid/...` https://www.internalfb.com/intern/testinfra/testrun/5348024839248187 Differential Revision: D74616598
This pull request was exported from Phabricator. Differential Revision: D74616598 |
4ff51a7
to
f6a0efe
Compare
Summary: Pull Request resolved: pytorch#153795 Before: `from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package` After: `from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package` Test Plan: `buck2 test //sigmoid/...` https://www.internalfb.com/intern/testinfra/testrun/5348024839248187 Differential Revision: D74616598
This pull request was exported from Phabricator. Differential Revision: D74616598 |
Summary: Pull Request resolved: pytorch#153795 Before: `from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package` After: `from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package` Test Plan: `buck2 test //sigmoid/...` https://www.internalfb.com/intern/testinfra/testrun/5348024839248187 Differential Revision: D74616598
f6a0efe
to
f1b21ad
Compare
This pull request was exported from Phabricator. Differential Revision: D74616598 |
f1b21ad
to
2d1b5f3
Compare
Summary: Pull Request resolved: pytorch#153795 Before: `from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package` After: `from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package` Test Plan: `buck2 test //sigmoid/...` https://www.internalfb.com/intern/testinfra/testrun/5348024839248187 Differential Revision: D74616598
This pull request was exported from Phabricator. Differential Revision: D74616598 |
2d1b5f3
to
4152fa7
Compare
Summary: Pull Request resolved: pytorch#153795 Before: `from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package` After: `from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package` Test Plan: `buck2 test //sigmoid/...` https://www.internalfb.com/intern/testinfra/testrun/5348024839248187 Differential Revision: D74616598
Merge failedReason: 1 jobs have failed, first few of them are: inductor-rocm / rocm-py3.10-inductor / test (inductor, 2, 2, linux.rocm.gpu.2) Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -f "landed internally" |
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 |
@pytorchbot revert -m "Looks like it broke lots of tests, see https://hud.pytorch.org/hud/pytorch/pytorch/ec368a19036dfa42216b05216bc0400388aee50b/1?per_page=50&mergeEphemeralLF=true" -c nosignal |
@pytorchbot successfully started a revert job. Check the current status here. |
@angelayi your PR has been successfully reverted. |
This reverts commit 7e80f23. Reverted #153795 on behalf of https://github.com/malfet due to Looks like it broke lots of tests, see https://hud.pytorch.org/hud/pytorch/pytorch/ec368a19036dfa42216b05216bc0400388aee50b/1?per_page=50&mergeEphemeralLF=true ([comment](#153795 (comment)))
I.e. looks like after this PR TestTorchbind::test_torchbind_aot_compile started to fail |
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 |
Merge failedReason: Comment with id 2905484431 not found Details for Dev Infra teamRaised by workflow job |
@pytorchbot merge -f "will merge the forward fix after this" |
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 |
Summary:
Before:
from sigmoid.core.package.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_sigmoid_package
After:
from torch.export.pt2_archive import PT2ArchiveWriter, PT2ArchiveReader, is_pt2_package
By merging the two PT2ArchiveReader/Writers, into using the native PytorchFileReader/Writer, the open source PT2 archive also changed to have an additional folder. However this PR still maintains support for loading an old PT2 archive which does not have the additional folder.
Before:
After:
Test Plan:
buck2 test //sigmoid/...
https://www.internalfb.com/intern/testinfra/testrun/5348024839248187
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov