-
Notifications
You must be signed in to change notification settings - Fork 25.7k
aot_inductor: fix compile returning None if cache hits #107020
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/107020
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 1 Unrelated FailureAs of commit 68faf64 with merge base a422969 ( NEW FAILURE - The following job has failed:
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: D48258375 |
This pull request was exported from Phabricator. Differential Revision: D48258375 |
This pull request was exported from Phabricator. Differential Revision: D48258375 |
Summary: Pull Request resolved: pytorch#107020 Seems like a bug in D47998435, where when cache hits it returns None Repro: ``` class TestModule(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): return x + 1 mod = TestModule() inp = torch.rand(1) out = mod(inp) mod2 = torch.fx.symbolic_trace(mod, concrete_args=[inp]) so, _ = torch._export.aot_compile(mod2, tuple([inp])) # 2nd time, it will return None so, _ = torch._export.aot_compile(mod2, tuple([inp])) assert so is not None # FAIL ``` Test Plan: Run the repro Reviewed By: frank-wei Differential Revision: D48258375 fbshipit-source-id: 58982772fcff07595ed20e4856889e79d0ce065f
@pytorchbot help |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot --help |
PyTorchBot Help
Merge
Revert
Rebase
Label
Dr CI
|
This pull request was exported from Phabricator. Differential Revision: D48258375 |
This pull request was exported from Phabricator. Differential Revision: D48258375 |
Summary: Pull Request resolved: pytorch#107020 Seems like a bug in D47998435, where when cache hits it returns None Repro: ``` class TestModule(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): return x + 1 mod = TestModule() inp = torch.rand(1) out = mod(inp) mod2 = torch.fx.symbolic_trace(mod, concrete_args=[inp]) so, _ = torch._export.aot_compile(mod2, tuple([inp])) # 2nd time, it will return None so, _ = torch._export.aot_compile(mod2, tuple([inp])) assert so is not None # FAIL ``` Test Plan: Run the repro Reviewed By: frank-wei Differential Revision: D48258375 fbshipit-source-id: 0d1feeabadacaa97b7e545c7b03f0c45fa8d8ce6
This pull request was exported from Phabricator. Differential Revision: D48258375 |
@pytorchbot merge -i |
I reviewed both failures. Not related. Also checked with @angelayi (thx!) https://github.com/pytorch/pytorch/actions/runs/5884395968/job/15959549001?pr=107020 |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
@pytorchbot label "topic: not user facing" |
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 2 checks: inductor / cuda12.1-py3.10-gcc9-sm86 / test (inductor_torchbench, 1, 1, linux.g5.4xlarge.nvidia.gpu), inductor / cuda12.1-py3.10-gcc9-sm86 / test (inductor_torchbench_dynamic, 1, 1, linux.g5.4xlarge.nvidia.gpu) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
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.
Let's add some unittest in the following PR/diff?
@pytorchbot drci |
Summary:
Seems like a bug in D47998435, where when cache hits it returns None
Repro:
Test Plan: Run the repro
Differential Revision: D48258375
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @ngimel @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov