[ExecuTorch][WebGPU] Lift FastVLM dispatch limits and harden graph construction - #21602
Open
JCNTH wants to merge 2 commits into
Open
[ExecuTorch][WebGPU] Lift FastVLM dispatch limits and harden graph construction#21602JCNTH wants to merge 2 commits into
JCNTH wants to merge 2 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21602
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit ab3d0de with merge base ad3a71f ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Aug 5, 2026
This PR needs a
|
JCNTH
added a commit
that referenced
this pull request
Aug 5, 2026
…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/)
psiddh
approved these changes
Aug 6, 2026
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):
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:
GELUandexpand_copyuse overflow-safe folded dispatch and live resize updates.Compare,expand_copy, andto_copycreate graph-owned parameter buffers before pipeline construction, mirroring VulkanComputeGraphownership.to_copyrejectsBOOL-to/from-INT8orUINT8before same-width flat-copy routing.Kernel math and below-limit one-dimensional dispatch behavior are unchanged.
Co-authored-with: Claude Code.
Differential Revision: D114936147