Skip to content

[ExecuTorch][WebGPU] Cover Conv1d routes and dynamic manifests - #21666

Merged
JCNTH merged 5 commits into
gh/JCNTH/207/origfrom
gh/JCNTH/208/orig
Aug 7, 2026
Merged

[ExecuTorch][WebGPU] Cover Conv1d routes and dynamic manifests#21666
JCNTH merged 5 commits into
gh/JCNTH/207/origfrom
gh/JCNTH/208/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #21601 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/208/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/208/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/JCNTH/207/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/JCNTH/208/orig
Differential Revision: D114936144
@diff-train-skip-merge

JCNTH added 3 commits August 5, 2026 12:54
[ghstack-poisoned]
[ghstack-poisoned]
Pull Request resolved: #21601

**Cover Conv1d routing, resize, and dynamic manifest replay**

Static numeric coverage pins the general groups=1 Conv1d kernel while preserving pointwise and depthwise routing. The manifest harness now separates upper-bound export inputs from live runtime inputs so dynamic execution proves a distinct shape through one loaded graph.

Key changes:

- Dispatch assertions distinguish general, pointwise, and depthwise Conv1d routes.
- Numeric cases cover padding, dilation, batching, optional bias, and dynamic resize.
- `Case.export_inputs` and `Case.dynamic_shapes` carry export-time samples and constraints while `Case.inputs` remains the live runtime input.
- Generator coverage proves export length 10 and runtime length 7.

This is coverage-only; runtime kernels are unchanged.

Co-authored-with: Claude Code.
ghstack-source-id: 411059163
@exported-using-ghexport

Differential Revision: [D114936144](https://our.internmc.facebook.com/intern/diff/D114936144/)
@pytorch-bot

pytorch-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/21666

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.

…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/)
@JCNTH

JCNTH commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

…/208/orig

# Conflicts:
#	backends/webgpu/runtime/WebGPUGraph.cpp
#	backends/webgpu/test/native/test_compute_dispatch.cpp
#	backends/webgpu/test/native/test_dynamic_shape.cpp
#	backends/webgpu/test/ops/dynamic_shape/test_dynamic_shape_export.py

Co-authored-by: JCNTH <107437036+JCNTH@users.noreply.github.com>

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved. The four conflicted files have been merged with gh/JCNTH/207/orig and the merge commit has been pushed.

Copilot AI requested a review from JCNTH August 7, 2026 17:30
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 7, 2026
@JCNTH
JCNTH merged commit 3fd9a87 into gh/JCNTH/207/orig Aug 7, 2026
136 of 180 checks passed
@JCNTH
JCNTH deleted the gh/JCNTH/208/orig branch August 7, 2026 17:32
Copilot stopped work on behalf of JCNTH due to an error August 7, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants