-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Value range refinement using multi-variate expressions. #97964
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/97964
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d98aa5e: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
As is, the only difference (benchmark-wise) is that |
…ns." [ghstack-poisoned]
…ions." [ghstack-poisoned]
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.
In this case, when refining the bounds, it could be the case that rhs_vr.lower/upper
are variables. In that case, the refinement could then be lower = max(lower, rhs_vr.lower)
, right?
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.
At any rate, this needs some testing.
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
…ns." [ghstack-poisoned]
…i-variate expressions." [ghstack-poisoned]
…lue range refinement using multi-variate expressions." [ghstack-poisoned]
…xpressions." [ghstack-poisoned]
…nt using multi-variate expressions." [ghstack-poisoned]
… expressions." [ghstack-poisoned]
…)" This reverts commit 2642412. Reverted #97964 on behalf of https://github.com/huydhn due to Sorry for reverting your PR, but it is breaking an internal test ([comment](#97964 (comment)))
…dation off on timeouts." Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
…meouts." Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
This implementations looks good to me, so I don't think it's "not sound" by itself. My gut tells me that the issue is lurking in the value range analysis. I already found a number of bugs in it, so I wouldn't be entirely surprised that there were more issues lurking there. |
… timeouts." Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
…uts." Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
@lezcano I think the translation validator should be able to catch that. |
…uts." Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. cc voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 [ghstack-poisoned]
Follow-up to PR: #97964 After the introduction of translation validation, (TV) a few TIMM and TorchBench benchmarks started failing due to TIMEOUT. This PR turns TV off for them. Pull Request resolved: #104464 Approved by: https://github.com/malfet
going to attempt this, might be tricky because i'm not sure we have z3 on our internal |
Patching this
and rerunning the test, I still get the same error as before:
which suggests that we don't get to TV (which makes sense, TV only runs all the way at the end of execution, but we're erroring midway through. I have a live session failing, lmk what kind of debugging instrumentation you want. |
This is really odd. AFAIU, this PR modifies Just to be completely sure, could you try commenting these lines at the end of # Updates the range and the guards corresponding to each bound of the symbol.
self.var_to_range[symbol] = ValueRanges(lower, upper)
self.var_to_guards[symbol] = (lower_guard, upper_guard) |
Applying this patch
and confirmed the test passes afterwards. |
Trying to re-land: #97964. [ghstack-poisoned]
Trying to re-land: #97964. Test strategy: ``` buck2 test '@fbcode//mode/dev-nosan' fbcode//pye/model_inventory/inside_out_tracking_model:inside_out_tracking_model_test -- --exact 'pye/model_inventory/inside_out_tracking_model:inside_out_tracking_model_test - test_executorch_e2e_output_consistency_aten (pye.model_inventory.inside_out_tracking_model.InsideOutTrackingModelTest.InsideOutTrackingModelTest)' ``` Pull Request resolved: #105491 Approved by: https://github.com/ezyang
Stack from ghstack (oldest at bottom):