CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 24.7k
[aot_compile] propagate ShapeEnv during lowering #138362
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/138362
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 a808449 with merge base 96b30dc ( 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. |
This pull request was exported from Phabricator. Differential Revision: D64613290 |
Summary: Pull Request resolved: #138362 Differential Revision: D64613290
393a2f4
to
3411fa6
Compare
This pull request was exported from Phabricator. Differential Revision: D64613290 |
@@ -3609,6 +3611,24 @@ def forward(self, x): | |||
self.check_model(Model(), example_inputs) | |||
|
|||
|
|||
class AOTInductorLoggingTest(LoggingTestCase): |
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.
not really sure where to put this
Summary: Pull Request resolved: #138362 Differential Revision: D64613290
3411fa6
to
8138621
Compare
This pull request was exported from Phabricator. Differential Revision: D64613290 |
@pianpwk has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@pianpwk has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: We found that `export() -> _inductor.aot_compile()` lowering, 3 different ShapeEnvs get created, leading to errors when one ShapeEnv processes expressions created by another ShapeEnv. This plumbs the 2 places where ShapeEnv creation happens, detecting the original ShapeEnv from the GraphModule example values, so the original ShapeEnv is just reused. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov rec Reviewed By: ColinPeppler Differential Revision: D64613290 Pulled By: pianpwk
531c192
to
c704e5a
Compare
This pull request was exported from Phabricator. Differential Revision: D64613290 |
@pianpwk has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@pianpwk has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: We found that `export() -> _inductor.aot_compile()` lowering, 3 different ShapeEnvs get created, leading to errors when one ShapeEnv processes expressions created by another ShapeEnv. This plumbs the 2 places where ShapeEnv creation happens, detecting the original ShapeEnv from the GraphModule example values, so the original ShapeEnv is just reused. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov rec Reviewed By: ColinPeppler Differential Revision: D64613290 Pulled By: pianpwk
76c7bda
to
262f24f
Compare
This pull request was exported from Phabricator. Differential Revision: D64613290 |
Summary: We found that `export() -> _inductor.aot_compile()` lowering, 3 different ShapeEnvs get created, leading to errors when one ShapeEnv processes expressions created by another ShapeEnv. This plumbs the 2 places where ShapeEnv creation happens, detecting the original ShapeEnv from the GraphModule example values, so the original ShapeEnv is just reused. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov rec Reviewed By: ColinPeppler Differential Revision: D64613290 Pulled By: pianpwk
262f24f
to
a808449
Compare
This pull request was exported from Phabricator. Differential Revision: D64613290 |
@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 |
@pytorchmergebot merge -f "skipping pending macos job" |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
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 |
We found that
export() -> _inductor.aot_compile()
lowering, 3 different ShapeEnvs get created, leading to errors when one ShapeEnv processes expressions created by another ShapeEnv. This plumbs the 2 places where ShapeEnv creation happens, detecting the original ShapeEnv from the GraphModule example values, so the original ShapeEnv is just reused.Differential Revision: D64613290
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov @rec