Repository navigation
[AOTAutograd] Filter assert-only SymBool saves in default partitioner - #182597
sanketpurandare wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182597
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 9713cda with merge base 29dba80 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
e676956 to
9713cda
Compare
|
@pytorchbot merge -f "Unrelated failures" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…pytorch#182597) Fixes pytorch#182413 Extension of pytorch#179315 AOTAutograd's min-cut partitioner already filters SymBool nodes whose only users are aten._assert_scalar, because these are runtime assertion intermediates and not real backward dependencies. default_partition could still save the same assert-only SymBool nodes into the forward/backward saved-symbol ABI. When a nested AOTAutograd function is executed under make_fx/ProxyTensor with unbacked symbols, RuntimeWrapper sees those saved values as torch.SymBool and rejects them. This change shares the assert-only SymBool predicate between min-cut and default partitioning, and filters default_partition's saved_sym_nodes before extracting the forward/backward graphs. The issue was reproduced with the standalone repro in pytorch#182413 and also in the TorchTitan/AutoParallel nested AOT GraphTrainer path. Test Plan: python test/dynamo/test_aot_autograd.py -k test_partitioner_filters_symbool_saved_for_bw lintrunner --config=.lintrunner.toml torch/_functorch/partitioners.py test/dynamo/test_aot_autograd.py Pull Request resolved: pytorch#182597 Approved by: https://github.com/pianpwk
…pytorch#182597) Fixes pytorch#182413 Extension of pytorch#179315 AOTAutograd's min-cut partitioner already filters SymBool nodes whose only users are aten._assert_scalar, because these are runtime assertion intermediates and not real backward dependencies. default_partition could still save the same assert-only SymBool nodes into the forward/backward saved-symbol ABI. When a nested AOTAutograd function is executed under make_fx/ProxyTensor with unbacked symbols, RuntimeWrapper sees those saved values as torch.SymBool and rejects them. This change shares the assert-only SymBool predicate between min-cut and default partitioning, and filters default_partition's saved_sym_nodes before extracting the forward/backward graphs. The issue was reproduced with the standalone repro in pytorch#182413 and also in the TorchTitan/AutoParallel nested AOT GraphTrainer path. Test Plan: python test/dynamo/test_aot_autograd.py -k test_partitioner_filters_symbool_saved_for_bw lintrunner --config=.lintrunner.toml torch/_functorch/partitioners.py test/dynamo/test_aot_autograd.py Pull Request resolved: pytorch#182597 Approved by: https://github.com/pianpwk
…pytorch#182597) Fixes pytorch#182413 Extension of pytorch#179315 AOTAutograd's min-cut partitioner already filters SymBool nodes whose only users are aten._assert_scalar, because these are runtime assertion intermediates and not real backward dependencies. default_partition could still save the same assert-only SymBool nodes into the forward/backward saved-symbol ABI. When a nested AOTAutograd function is executed under make_fx/ProxyTensor with unbacked symbols, RuntimeWrapper sees those saved values as torch.SymBool and rejects them. This change shares the assert-only SymBool predicate between min-cut and default partitioning, and filters default_partition's saved_sym_nodes before extracting the forward/backward graphs. The issue was reproduced with the standalone repro in pytorch#182413 and also in the TorchTitan/AutoParallel nested AOT GraphTrainer path. Test Plan: python test/dynamo/test_aot_autograd.py -k test_partitioner_filters_symbool_saved_for_bw lintrunner --config=.lintrunner.toml torch/_functorch/partitioners.py test/dynamo/test_aot_autograd.py Pull Request resolved: pytorch#182597 Approved by: https://github.com/pianpwk
…pytorch#182597) Fixes pytorch#182413 Extension of pytorch#179315 AOTAutograd's min-cut partitioner already filters SymBool nodes whose only users are aten._assert_scalar, because these are runtime assertion intermediates and not real backward dependencies. default_partition could still save the same assert-only SymBool nodes into the forward/backward saved-symbol ABI. When a nested AOTAutograd function is executed under make_fx/ProxyTensor with unbacked symbols, RuntimeWrapper sees those saved values as torch.SymBool and rejects them. This change shares the assert-only SymBool predicate between min-cut and default partitioning, and filters default_partition's saved_sym_nodes before extracting the forward/backward graphs. The issue was reproduced with the standalone repro in pytorch#182413 and also in the TorchTitan/AutoParallel nested AOT GraphTrainer path. Test Plan: python test/dynamo/test_aot_autograd.py -k test_partitioner_filters_symbool_saved_for_bw lintrunner --config=.lintrunner.toml torch/_functorch/partitioners.py test/dynamo/test_aot_autograd.py Pull Request resolved: pytorch#182597 Approved by: https://github.com/pianpwk
Fixes #182413
Extension of #179315
AOTAutograd's min-cut partitioner already filters SymBool nodes whose only users are aten._assert_scalar, because these are runtime assertion intermediates and not real backward dependencies. default_partition could still save the same assert-only SymBool nodes into the forward/backward saved-symbol ABI. When a nested AOTAutograd function is executed under make_fx/ProxyTensor with unbacked symbols, RuntimeWrapper sees those saved values as torch.SymBool and rejects them.
This change shares the assert-only SymBool predicate between min-cut and default partitioning, and filters default_partition's saved_sym_nodes before extracting the forward/backward graphs.
The issue was reproduced with the standalone repro in #182413 and also in the TorchTitan/AutoParallel nested AOT GraphTrainer path.
Test Plan:
python test/dynamo/test_aot_autograd.py -k test_partitioner_filters_symbool_saved_for_bw
lintrunner --config=.lintrunner.toml torch/_functorch/partitioners.py test/dynamo/test_aot_autograd.py
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo @azahed98