8000 Re-enable FakeTensor caching for SymInts by aorenste · Pull Request #152662 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Re-enable FakeTensor caching for SymInts #152662

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

Draft
wants to merge 10 commits into
base: gh/aorenste/226/base
Choose a base branch
from

Conversation

aorenste
Copy link
Contributor
@aorenste aorenste commented May 2, 2025

Stack from ghstack (oldest at bottom):

Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames

Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

[ghstack-poisoned]
Copy link
pytorch-bot bot commented May 2, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 85e4fce with merge base 480ae2d (image):

NEW FAILURE - The following job has failed:

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.

aorenste added a commit that referenced this pull request May 2, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 870317f
Pull Request resolved: #152662
aorenste added a commit that referenced this pull request May 2, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 0dc4211
Pull Request resolved: #152662
aorenste added a commit that referenced this pull request May 2, 2025
…ds_tls in cache key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
…ds_tls in cache key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 0dc4211
Pull Request resolved: #152662
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
…ds_tls in cache key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 2, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 35ead1d
Pull Request resolved: #152662
@aorenste aorenste added the topic: not user facing topic category label May 5, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 5, 2025
…ds_tls in cache key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 5, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: f9927a5
Pull Request resolved: #152662
aorenste added a commit that referenced this pull request May 5, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 7, 2025
…ds_tls in cache key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv voznesenskym penguinwu Guobing-Chen XiaobingSuper zhuhaozhe blzheng jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 7, 2025
…key"

ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.




cc ezyang SherlockNoMad EikanWang jgong5 wenzhe-nrv voznesenskym penguinwu Guobing-Chen XiaobingSuper zhuhaozhe blzheng jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request May 8, 2025
ShapeEnv.evaluate_expr() behaves differently based on the (tls) global "suppress_guards" - so its cache key needs to include that value.

This came up because #152662 triggered it in the test `test/dynamo/test_exc.py::ExcTests::test_trigger_bisect_on_error` - fixing this caused that test to work again.

Pull Request resolved: #152661
Approved by: https://github.com/laithsakka
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 9, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 87811a7
Pull Request resolved: #152662
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 12, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 87811a7
Pull Request resolved: #152662
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 12, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 0d17332
Pull Request resolved: #152662
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 12, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: 7e0b7c5
Pull Request resolved: #152662
@aorenste
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 13, 2025
@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: trunk / macos-py3-arm64 / test (default, 2, 3, macos-m1-stable)

Details for Dev Infra team Raised by workflow job

Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames

[ghstack-poisoned]
aorenste added a commit that referenced this pull request May 15, 2025
Summary:

This backs out D60320595 which itself turned off FakeTensor caching when a SymInt was present.

Tests seem to pass so I'm assuming some dynamic shape work fixed what was breaking previously.

Test Plan: Reran the tests listed in T196779132 and they seem to pass.

ghstack-source-id: d03a261
Pull Request resolved: #152662
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 module: dynamo topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0