Skip to content

[ExecuTorch][WebGPU] Graph-owned scratch buffers for fused-op intermediates#20073

Open
JulianCloudNTH wants to merge 5 commits into
gh/JulianCloudNTH/13/basefrom
gh/JulianCloudNTH/13/head
Open

[ExecuTorch][WebGPU] Graph-owned scratch buffers for fused-op intermediates#20073
JulianCloudNTH wants to merge 5 commits into
gh/JulianCloudNTH/13/basefrom
gh/JulianCloudNTH/13/head

Conversation

@JulianCloudNTH
Copy link
Copy Markdown
Contributor

@JulianCloudNTH JulianCloudNTH commented Jun 5, 2026

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jun 5, 2026

🔗 Helpful Links

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

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit ddc439f with merge base f976e63 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@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 Jun 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

JulianCloudNTH added a commit that referenced this pull request Jun 5, 2026
…diates

Pull Request resolved: #20073

Add `WebGPUGraph::create_scratch_buffer` for fused-op intermediates (SDPA's `attn_weights`/`attn_weights_softmax`) that are not model tensors and live only between dispatches. Graph-owned, released in the destructor. Vulkan models these as graph tensors; we use raw buffers (buffer-only backend). Consumed by the fused SDPA op above.
ghstack-source-id: 390416621
@exported-using-ghexport

Differential Revision: [D107543259](https://our.internmc.facebook.com/intern/diff/D107543259/)
JulianCloudNTH added a commit that referenced this pull request Jun 5, 2026
…diates

Pull Request resolved: #20073

Add `WebGPUGraph::create_scratch_buffer` for fused-op intermediates (SDPA's `attn_weights`/`attn_weights_softmax`) that are not model tensors and live only between dispatches. Graph-owned, released in the destructor. Vulkan models these as graph tensors; we use raw buffers (buffer-only backend). Consumed by the fused SDPA op above.
ghstack-source-id: 390416621
@exported-using-ghexport

Differential Revision: [D107543259](https://our.internmc.facebook.com/intern/diff/D107543259/)
[ghstack-poisoned]
JulianCloudNTH added a commit that referenced this pull request Jun 5, 2026
…diates

Pull Request resolved: #20073

Add `WebGPUGraph::create_scratch_buffer` for fused-op intermediates (SDPA's `attn_weights`/`attn_weights_softmax`) that are not model tensors and live only between dispatches. Graph-owned, released in the destructor. Vulkan models these as graph tensors; we use raw buffers (buffer-only backend). Consumed by the fused SDPA op above.
ghstack-source-id: 390416621
@exported-using-ghexport

Differential Revision: [D107543259](https://our.internmc.facebook.com/intern/diff/D107543259/)
Copy link
Copy Markdown
Contributor

@digantdesai digantdesai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

[ghstack-poisoned]
JulianCloudNTH added a commit that referenced this pull request Jun 5, 2026
…diates

Pull Request resolved: #20073

Add `WebGPUGraph::create_scratch_buffer` for fused-op intermediates (SDPA's `attn_weights`/`attn_weights_softmax`) that are not model tensors and live only between dispatches. Graph-owned, released in the destructor. Vulkan models these as graph tensors; we use raw buffers (buffer-only backend). Consumed by the fused SDPA op above.
ghstack-source-id: 390440808
@exported-using-ghexport

Differential Revision: [D107543259](https://our.internmc.facebook.com/intern/diff/D107543259/)
[ghstack-poisoned]
[ghstack-poisoned]
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants