Uh oh!
There was an error while loading. Please reload this page.
[ExecuTorch][WebGPU] Lift FastVLM dispatch limits and harden graph construction - #21667
Merged
Conversation
…nstruction Pull Request resolved: #21602 **Run production FastVLM shapes with exception-safe WebGPU graph construction** Production FastVLM tensors exceeded WebGPU one-dimensional dispatch limits, while several parameter buffers were not graph-owned before fallible pipeline construction. The runtime now folds flat dispatches across x/y, owns parameters immediately, rejects ambiguous `BOOL`/byte-integer casts, and compiles timestamp validation only in profiling builds. Key changes: - `GELU` and `expand_copy` use overflow-safe folded dispatch and live resize updates. - `Compare`, `expand_copy`, and `to_copy` create graph-owned parameter buffers before pipeline construction, mirroring Vulkan `ComputeGraph` ownership. - `to_copy` rejects `BOOL`-to/from-`INT8` or `UINT8` before same-width flat-copy routing. - Production builds exclude timestamp-query validation and symbols. - Boundary, failure, and real FastVLM encoder coverage exercise the final combined behavior. Kernel math and below-limit one-dimensional dispatch behavior are unchanged. Co-authored-with: Claude Code. ghstack-source-id: 411059172 @exported-using-ghexport Differential Revision: [D114936147](https://our.internmc.facebook.com/intern/diff/D114936147/)
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21667
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #21602 by @JCNTH
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/209/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/209/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/208/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/209/orig
Differential Revision: D114936147
@diff-train-skip-merge