-
Notifications
You must be signed in to change notification settings - Fork 24.3k
AOTI doesn't account for constant tensors #148370
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
Comments
Fix is here: #148364 |
8000
tugsbayasgalan
added a commit
that referenced
this issue
Mar 3, 2025
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 amjames chauhang aakhundov Fixes: #148370 Differential Revision: [D70514480](https://our.internmc.facebook.com/intern/diff/D70514480) [ghstack-poisoned]
tugsbayasgalan
added a commit
that referenced
this issue
Mar 4, 2025
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 amjames chauhang aakhundov Fixes: #148370 Differential Revision: [D70514480](https://our.internmc.facebook.com/intern/diff/D70514480) [ghstack-poisoned]
tugsbayasgalan
added a commit
that referenced
this issue
Mar 5, 2025
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 amjames chauhang aakhundov Fixes: #148370 Differential Revision: [D70514480](https://our.internmc.facebook.com/intern/diff/D70514480) [ghstack-poisoned]
tugsbayasgalan
added a commit
that referenced
this issue
Mar 5, 2025
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 amjames chauhang aakhundov Fixes: #148370 Differential Revision: [D70514480](https://our.internmc.facebook.com/intern/diff/D70514480) [ghstack-poisoned]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Describe the bug
When exporting with non-strict mode, we preserve tensor constants as constants in the module. This is different from torch.compile/strict-export because they turn them into buffers. AOTAutograd is used in AOTI lowering which doesn't account for constant tensors. In the long term, AOTI should use exported_program.run_decompositions() API to do lowering. But for now, i feel this is pretty high priority bug that needs to be fixed soon because in practice lot of export models have tensor constants.
Versions
main
The text was updated successfully, but these errors were encountered: