-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[WebGPU] QKV and MLP layer fusions for Qwen3-style models #28280
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 36 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
7c0c1b9
Initial commit
hariharans29 c42879d
Merge remote-tracking branch 'origin' into hari/webgpu_perf_1
hariharans29 a0550b6
More changes
hariharans29 c55adfe
Merge branch 'hari/webgpu_perf_1' of https://github.com/microsoft/onn…
hariharans29 ee09d8e
Stage
hariharans29 aa357ee
More changes
hariharans29 318b26b
Stage
hariharans29 ad53b3d
Worka nd good perf
hariharans29 b67ae81
Skip + MatmulNBitsSilu fusion - works and good perf
hariharans29 01671d9
Cleanup
hariharans29 30485dd
Move back to workgroup/tile_size default
hariharans29 27317b8
Merge main
hariharans29 a56fb56
Merge remote-tracking branch 'origin' into hari/webgpu_perf_1
hariharans29 13bf979
Copilot comments + Fix builds + Fix lint + Fusion diagrams
hariharans29 d1090c8
Fix test
hariharans29 ffacd4c
Fix builds
hariharans29 92874ce
Fixes
hariharans29 a7899c6
Slim PR: drop benchmark harness, lazy buffer-mgr fix, consteval fix, …
hariharans29 2039c7f
Remove unused dp4a_matmul_mlp.wgsl.template
hariharans29 a02cf12
Cleanup: drop unused empty namespace + env_var_utils include in graph…
hariharans29 beb1709
Merge remote-tracking branch 'origin' into hari/webgpu_perf_1
hariharans29 9065063
Copilot comments
hariharans29 4ac9c81
Fixes
hariharans29 306fba3
Fix
hariharans29 6c8c7a3
Use fresh WebGPU EP per session in fusion-vs-unfused tests
hariharans29 a90a049
Remove unused file
hariharans29 007a78e
[WebGPU] Extract shared LayerNorm/SkipLayerNorm program runners
hariharans29 37db5b8
[WebGPU] MatMulNBitsMlp: adopt shared norm helpers + activation enum
hariharans29 2c1a2a3
[WebGPU] MatMulNBitsMlpFusion: match fused-QuickGelu MLP shape
hariharans29 234bcf4
[WebGPU/JSEP] Enable QuickGeluFusion for WebGPU and JSEP EPs
hariharans29 eaa6635
Copilot comments
hariharans29 106c07e
Merge main and resolve conflicts
hariharans29 16f05f2
Address PR #28280 review comments
hariharans29 130111f
Merge remote-tracking branch 'origin/main' into hari/webgpu_perf_1
hariharans29 159894a
Merge remote-tracking branch 'origin/main' into HEAD
hariharans29 b5c2a4e
WebGPU MatMulNBits QKV/MLP fusion: address PR #28280 reviewer comments
hariharans29 8bfb7ee
Update onnxruntime/test/optimizer/matmul_nbits_qkv_fusion_test.cc
hariharans29 cb49505
Update onnxruntime/test/optimizer/matmul_nbits_qkv_fusion_test.cc
hariharans29 be8260a
Copilot comments + Build break
hariharans29 b8ee37e
Merge branch 'hari/webgpu_perf_1' of https://github.com/microsoft/onn…
hariharans29 7433696
Fix QKV asymmetry with respect to bias in schema
hariharans29 b3595d2
Address copilot comments
hariharans29 4f34f06
Docs + Merge main
hariharans29 128b887
Remove unnecessary docs
hariharans29 30054e5
Revert "Remove unnecessary docs"
hariharans29 6abd605
Remove unnecessary docs - 2
hariharans29 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
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.
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.