-
Notifications
You must be signed in to change notification settings - Fork 4.1k
WebGPU: Add indirect dispatch for flash attention graph capture to support Gemma4 #29236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c5f0345
add indirect dispatch support for graph capture
feich-ms 2f70dec
webgpu: refactor indirect dispatch normalization in flash attention
feich-ms faee205
webgpu: add indirect dispatch path tests for flash attention
feich-ms e5f62cd
webgpu: clang-format and remove verbose comment in flash attention
feich-ms 4ee58bb
webgpu: fix RunGQASharedKV call sites for GqaTargetEp API change
feich-ms 9272ceb
webgpu: fix GQA kv_empty tests to use valid total_sequence_length
feich-ms aa60c43
webgpu: exempt kv_empty layers from graph capture share_buffer assertion
feich-ms 4993603
webgpu: fix stale kNormalizeDispatchGroupSizeFn reference after rebase
feich-ms 9cefb10
webgpu: rename AppendNormalizeDispatchShader to AppendPopulateIndirec…
feich-ms 495aac7
webgpu: inline AppendPopulateIndirectDispatchShader into its only cal…
feich-ms bc84e8d
webgpu: switch PrepareIndirectDispatchProgram to use total_seqlen input
feich-ms 99c41ee
Fix kv_empty WebGPU tests: reuse EP, drop unvalidated present outputs
Copilot dabdf99
webgpu: add graph capture test for kv_empty indirect dispatch
feich-ms f99046c
webgpu: rewrite graph capture GQA test to exercise real ORT GC path
feich-ms ec1d50c
webgpu: replay graph capture test with different inputs to verify cor…
feich-ms 053c2b9
webgpu: move #ifdef USE_WEBGPU to wrap the whole GC test, not just body
feich-ms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.