-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add logging for when inbuilt_inline_nn_modules will help with ID_MATCH guard triggered recompiles #160592
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/160592
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 338e2f3 with merge base 3650989 ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D80075975 |
62d5b2d
to
bd31dd2
Compare
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
This pull request was exported from Phabricator. Differential Revision: D80075975 |
bd31dd2
to
19c06fa
Compare
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
19c06fa
to
63ad578
Compare
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
63ad578
to
f8c455c
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: Pull Request resolved: pytorch#160592 We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
f8c455c
to
69528a7
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
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.
Very close to be done. Can you also add a test? For test, you can add a guard hook and check if the str [inline-inbuilt-nn-modules-candidate] is present in the str representation of guards. A pointer to do that is here -
pytorch/test/dynamo/test_guard_manager.py
Line 1055 in 2898d3f
with install_guard_manager_testing_hook(hook): |
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: Pull Request resolved: pytorch#160592 We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
69528a7
to
eae71d3
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests Rollback Plan: Differential Revision: D80075975
eae71d3
to
fa04744
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
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.
Test is failing. But the code looks good.
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests And UT added Rollback Plan: Differential Revision: D80075975
2668eb3
to
73f3926
Compare
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests And UT added Rollback Plan: Differential Revision: D80075975
73f3926
to
5915d4e
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: Pull Request resolved: pytorch#160592 We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests And UT added Rollback Plan: Differential Revision: D80075975
This pull request was exported from Phabricator. Differential Revision: D80075975 |
96d626f
to
6e68921
Compare
…H guard triggered recompiles (pytorch#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests And UT added Rollback Plan: Differential Revision: D80075975
This pull request was exported from Phabricator. Differential Revision: D80075975 |
…H guard triggered recompiles (pytorch#160592) Summary: Pull Request resolved: pytorch#160592 We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Test Plan: rm -rf /tmp/r && TORCH_TRACE=/tmp/r buck2 run //scripts/ppanchalia/pt2_workspace:inline_inbuilt_nn_modules_test and CI Tests And UT added Rollback Plan: Differential Revision: D80075975
6e68921
to
338e2f3
Compare
This pull request was exported from Phabricator. Differential Revision: D80075975 |
@pytorchbot merge |
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 |
…H guard triggered recompiles (#160592) Summary: We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. X-link: pytorch/pytorch#160592 Approved by: https://github.com/anijain2305 Reviewed By: anijain2305, clee2000 Differential Revision: D80075975 fbshipit-source-id: 21c53f015c7aed9f6cf6e5da7e2b59fbc340c476
…H guard triggered recompiles (pytorch#160592) We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Differential Revision: D80075975 Pull Request resolved: pytorch#160592 Approved by: https://github.com/anijain2305
…H guard triggered recompiles (pytorch#160592) We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag. It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles. Differential Revision: D80075975 Pull Request resolved: pytorch#160592 Approved by: https://github.com/anijain2305
We add a logging around when an ID_MATCH guard is added at a place where inbuilt_inline_nn_modules would inline it. This is done with the aim of tagging recompiles that could be avoided by setting inbuilt_inline_nn_modules flag.
It will help us log and track the flag's adoption and potentially quantify saving in the the number of recompiles.
Differential Revision: D80075975
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela