removed compile cache and static argnums#85783
removed compile cache and static argnums#85783Chillee wants to merge 8 commits intogh/chillee/132/basefrom
Conversation
…ting to aotautograd [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/85783
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 85b98eb: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
wconstab
left a comment
There was a problem hiding this comment.
i'll stamp anyway but,
- what's the rationale for removing the cache? is it known buggy, and/or known not to help perf much?
- (maybe next time) consider landing separate diff for adding
test_pythonkeyand backwards tests in case it raises trouble?
functorch/test/test_aotdispatch.py
Outdated
| @ops(op_db + additional_op_db, allowed_dtypes=(torch.float,)) | ||
| @patch("functorch.compile.config.use_dynamic_shapes", True) | ||
| @patch("functorch.compile.config.use_fake_tensor", True) | ||
| @patch("functorch.compile.config.use_functionalize", False) |
There was a problem hiding this comment.
why is functionalize disabled?
There was a problem hiding this comment.
Because functionalization currently doesn't work with symbolic shapes, so enabling functionalization just causes all tests to fail. Will add note.
| *flat_args_for_cache, | ||
| ) | ||
|
|
||
| cached_fn, out_spec = cached_res |
There was a problem hiding this comment.
rename to compiled_fn and delete cached_res above?
There was a problem hiding this comment.
We still cache the saved function, we just never recompile now.
|
@wconstab Basically, it occasionally causes issues for us, and now that AOTAutograd's intended role is to sit behind Dynamo, it's no longer particularly needed and just adds complexity. |
…c shape testing to aotautograd" [ghstack-poisoned]
|
@wconstab just re-removed it right as you commented lol. |
…c shape testing to aotautograd" [ghstack-poisoned]
…c shape testing to aotautograd" [ghstack-poisoned]
…c shape testing to aotautograd" [ghstack-poisoned]
|
@wconstab Also, splitting into 2 PRs, I'll add the symbolic shape testing in the second one. |
…c shape testing to aotautograd" [ghstack-poisoned]
…c shape testing to aotautograd" [ghstack-poisoned]
…c shape testing to aotautograd" [ghstack-poisoned]
|
@pytorchbot merge -g |
|
@pytorchbot successfully started a merge job. Check the current status here. |
|
Hey @Chillee. |
Pull Request resolved: pytorch#85783 Approved by: https://github.com/wconstab
Pull Request resolved: #85783 Approved by: https://github.com/wconstab
ghstack-source-id: 57708ec Pull Request resolved: pytorch/pytorch#85783
Stack from ghstack (oldest at bottom):