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
[Inductor][fx pass] Remove split nodes with split section size one #112922
Conversation
Summary: We observe that DSNN has many split nodes with split section size one, which hinder the split cat merge in the later pass, thus we remove such nodes in the early stage. Test Plan: # local reproduce with DSNN model ``` buck2 run mode/opt //scripts/jackiexu0313/pt2:local_model_with_pt2 -- --test_mode split_batch-group -c ``` P872705076 diffing: https://www.internalfb.com/intern/diffing/?paste_number=872698775 # unit test ``` buck2 test mode/dev-nosan //caffe2/test/inductor:split_cat_fx_passes ``` Buck UI: https://www.internalfb.com/buck2/b248410e-a556-47a2-9293-7f113b49f0d6 Test UI: https://www.internalfb.com/intern/testinfra/testrun/10696049124469023 Network: Up: 80KiB Down: 47KiB (reSessionID-a31dec17-d322-4757-ba84-4d262bd139cf) Jobs completed: 24. Time elapsed: 1:52.8s. Cache hits: 0%. Commands: 2 (cached: 0, remote: 0, local: 2) Tests finished: Pass 9. Fail 0. Fatal 0. Skip 0. Build failure 0 Differential Revision: D50990290
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112922
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 268cd80 with merge base 63fc482 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D50990290 |
This PR needs a
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
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 |
…ytorch#112922) Summary: We observe that DSNN has many split nodes with split section size one, which hinder the split cat merge in the later pass, thus we remove such nodes in the early stage. Test Plan: # local reproduce with DSNN model ``` buck2 run mode/opt //scripts/jackiexu0313/pt2:local_model_with_pt2 -- --test_mode split_batch-group -c ``` P872705076 diffing: https://www.internalfb.com/intern/diffing/?paste_number=872698775 # unit test ``` buck2 test mode/dev-nosan //caffe2/test/inductor:split_cat_fx_passes ``` Buck UI: https://www.internalfb.com/buck2/b248410e-a556-47a2-9293-7f113b49f0d6 Test UI: https://www.internalfb.com/intern/testinfra/testrun/10696049124469023 Network: Up: 80KiB Down: 47KiB (reSessionID-a31dec17-d322-4757-ba84-4d262bd139cf) Jobs completed: 24. Time elapsed: 1:52.8s. Cache hits: 0%. Commands: 2 (cached: 0, remote: 0, local: 2) Tests finished: Pass 9. Fail 0. Fatal 0. Skip 0. Build failure 0 Differential Revision: D50990290 Pull Request resolved: pytorch#112922 Approved by: https://github.com/jackiexu1992
…ytorch#112922) Summary: We observe that DSNN has many split nodes with split section size one, which hinder the split cat merge in the later pass, thus we remove such nodes in the early stage. Test Plan: # local reproduce with DSNN model ``` buck2 run mode/opt //scripts/jackiexu0313/pt2:local_model_with_pt2 -- --test_mode split_batch-group -c ``` P872705076 diffing: https://www.internalfb.com/intern/diffing/?paste_number=872698775 # unit test ``` buck2 test mode/dev-nosan //caffe2/test/inductor:split_cat_fx_passes ``` Buck UI: https://www.internalfb.com/buck2/b248410e-a556-47a2-9293-7f113b49f0d6 Test UI: https://www.internalfb.com/intern/testinfra/testrun/10696049124469023 Network: Up: 80KiB Down: 47KiB (reSessionID-a31dec17-d322-4757-ba84-4d262bd139cf) Jobs completed: 24. Time elapsed: 1:52.8s. Cache hits: 0%. Commands: 2 (cached: 0, remote: 0, local: 2) Tests finished: Pass 9. Fail 0. Fatal 0. Skip 0. Build failure 0 Differential Revision: D50990290 Pull Request resolved: pytorch#112922 Approved by: https://github.com/jackiexu1992
Summary: We observe that DSNN has many split nodes with split section size one, which hinder the split cat merge in the later pass, thus we remove such nodes in the early stage.
Test Plan:
local reproduce with DSNN model
P872705076
diffing: https://www.internalfb.com/intern/diffing/?paste_number=872698775
unit test
Buck UI: https://www.internalfb.com/buck2/b248410e-a556-47a2-9293-7f113b49f0d6
Test UI: https://www.internalfb.com/intern/testinfra/testrun/10696049124469023
Network: Up: 80KiB Down: 47KiB (reSessionID-a31dec17-d322-4757-ba84-4d262bd139cf)
Jobs completed: 24. Time elapsed: 1:52.8s.
Cache hits: 0%. Commands: 2 (cached: 0, remote: 0, local: 2)
Tests finished: Pass 9. Fail 0. Fatal 0. Skip 0. Build failure 0
Differential Revision: D50990290
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler