Repository navigation
Support tensor subclass unwrapping - #141941
tugsbayasgalan wants to merge 15 commits into
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141941
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit ae32ac8 with merge base 9706ada ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D66690419 |
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D66690419 |
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) This PR adds support for export to unwrap/wrap subclasses AOT so that we can trace through subclass parameters. This will resolve the UX issue in torchao where users had to manually unwrap their subclasses before calling export. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D66690419 |
| ref_x = torch.randn(3, 4) | ||
| ref_out = m(ref_x) | ||
|
|
||
| ep_training = torch.export.export_for_training(m, (ref_x,)) |
There was a problem hiding this comment.
One thing that would be nice for E2E testing is to confirm that this actually works with AOTI. wdyt?
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) This PR adds support for export to unwrap/wrap subclasses AOT so that we can trace through subclass parameters. This will resolve the UX issue in torchao where users had to manually unwrap their subclasses before calling export. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames [ghstack-poisoned]
Pull Request resolved: pytorch/pytorch#141941 @imported-using-ghimport Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419/) ghstack-source-id: 8b851d0
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) This PR adds support for export to unwrap/wrap subclasses AOT so that we can trace through subclass parameters. This will resolve the UX issue in torchao where users had to manually unwrap their subclasses before calling export. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov [ghstack-poisoned]
|
This pull request was exported from Phabricator. Differential Revision: D66690419 |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
Pull Request resolved: #141941 @imported-using-ghimport Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419/) ghstack-source-id: 0495a59
Summary: imported-using-ghimport Test Plan: Imported from OSS Reviewed By: bdhirsh Differential Revision: D66690419 Pulled By: tugsbayasgalan
Differential Revision: [D66690419](https://our.internmc.facebook.com/intern/diff/D66690419) This PR adds support for export to unwrap/wrap subclasses AOT so that we can trace through subclass parameters. This will resolve the UX issue in torchao where users had to manually unwrap their subclasses before calling export. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
4 similar comments
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
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 |
Stack from ghstack (oldest at bottom):
This PR adds support for export to unwrap/wrap subclasses AOT so that we can trace through subclass parameters. This will resolve the UX issue in torchao where users had to manually unwrap their subclasses before calling export.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov
Differential Revision: D67531057