Add --compare-backed-unbacked flag for benchmarking dynamic shapes#175946
Closed
laithsakka wants to merge 11 commits intogh/laithsakka/411/basefrom
Closed
Add --compare-backed-unbacked flag for benchmarking dynamic shapes#175946laithsakka wants to merge 11 commits intogh/laithsakka/411/basefrom
laithsakka wants to merge 11 commits intogh/laithsakka/411/basefrom
Conversation
[ghstack-poisoned]
This was referenced Feb 27, 2026
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/175946
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 1 Pending, 2 Unrelated FailuresAs of commit 1d71ef5 with merge base 07efc60 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Feb 27, 2026
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
jansel
approved these changes
Feb 28, 2026
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx kadeng chauhang amjames Lucaskabela jataylo [ghstack-poisoned]
This was referenced Mar 3, 2026
This was referenced Mar 3, 2026
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo Lucaskabela [ghstack-poisoned]
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo Lucaskabela [ghstack-poisoned]
This was referenced Mar 3, 2026
…c shapes" [lsakkadevgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy kadeng muchulee8 amjames chauhang aakhundov coconutruben jataylo Lucaskabela [ghstack-poisoned]
Collaborator
|
Starting merge as part of PR stack under #175956 |
pytorchmergebot
pushed a commit
that referenced
this pull request
Mar 5, 2026
…on to avoid DDE (#175956) encountered while running python benchmarks/dynamo/huggingface.py --only AllenaiLongformerBase --backend inductor --performance --inference --unbacked-batch-only Pull Request resolved: #175956 Approved by: https://github.com/ColinPeppler, https://github.com/jansel ghstack dependencies: #175946
meta-codesync bot
pushed a commit
to pytorch/benchmark
that referenced
this pull request
Mar 6, 2026
…175946) Summary: [lsakka@devgpu009.cco5 ~/pytorch10/pytorch (13694ac6)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked ``` --- AlbertForMaskedLM --- backed... 1.349x unbacked... 1.345x => diff: -0.3% --- AllenaiLongformerBase --- backed... 1.226x unbacked... 1.146x => diff: -6.5% --- BartForCausalLM --- backed... 1.022x unbacked... 1.015x => diff: -0.7% --- BertForMaskedLM --- backed... 1.186x unbacked... 1.187x => diff: +0.1% --- BlenderbotForCausalLM --- backed... 1.058x unbacked... 1.061x => diff: +0.3% ... ``` X-link: pytorch/pytorch#175946 Approved by: https://github.com/jansel Reviewed By: wdvr Differential Revision: D95429517 fbshipit-source-id: 73b36865b88feb3718ac3e41e6843a7b60ca7a85
pytorchmergebot
pushed a commit
that referenced
this pull request
Mar 10, 2026
Adds min and max parameters to mark_unbacked() to allow specifying value range constraints for unbacked dimensions. When an unbacked symbol is created with min/max bounds, torch._check() calls are emitted to establish the constraints (e.g., torch._check(u0 >= 1)). Pull Request resolved: #176313 Approved by: https://github.com/Lucaskabela, https://github.com/mlazos ghstack dependencies: #175946, #175956
sandy-gags
pushed a commit
to sandy-gags/pytorch
that referenced
this pull request
Mar 12, 2026
ghstack-source-id: 5cb2dea Pull Request resolved: pytorch/pytorch#175946
sandy-gags
pushed a commit
to sandy-gags/pytorch
that referenced
this pull request
Mar 12, 2026
ghstack-source-id: d550531 Pull Request resolved: pytorch/pytorch#175946
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
[lsakka@devgpu009.cco5 ~/pytorch10/pytorch (13694ac)]$ python benchmarks/dynamo/huggingface.py --backend inductor --performance --inference --compare-backed-unbacked
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @Lucaskabela