-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Native WebGPU EP] Add packedQKV and do_rotary attribute support to GroupQueryAttention operator #23386
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
[Native WebGPU EP] Add packedQKV and do_rotary attribute support to GroupQueryAttention operator #23386
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fdd5ceb
Added GroupQuerryAttention do_rotary attribute.
satyajandhyala f6b0222
Added packed QKV and rotary embedding support for GQA
satyajandhyala ae87526
Fix lint errors.
satyajandhyala df90ffa
Fixed shader code compilation errors.
satyajandhyala 0704462
more lint stuff
satyajandhyala 177f535
Fixed shader code issues.
satyajandhyala 0b94f10
Added split functionality to unpack packed-QKV.
satyajandhyala f0d238a
Removed unnecessary uniforms in GeneratePositionIdsProgram
satyajandhyala 1009fc9
Apply split and rotrary embedding before converting input ro BSD to BNSH
satyajandhyala a4d8482
Fix the input_output_stride for 4-dim input.
satyajandhyala 4d42d06
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala e406b81
Allocate position_ids tensor size/shape even for the first prompt
satyajandhyala 9e38efd
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala de0d4b0
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala 0b08117
Fixed the input_output_strides
satyajandhyala a7328f5
Added is_first_first prompt to the shader that generates position ids…
satyajandhyala 531c6e3
Fixed position_ids generation code.
satyajandhyala 29819ed
Check is_first_prompt and is_subsequence_prompt flags in the c++ code…
satyajandhyala 91e8801
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala 6bbef62
lint
satyajandhyala ff84b7b
Removed unused variable.
satyajandhyala d4e4f29
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala e468128
Added condition to check do_rotary before call fa2
satyajandhyala 9f2782c
typo
satyajandhyala b4a6546
Revert changes to rotary embedding code.
satyajandhyala a80e9f9
Removed packed QKV support in attention.
satyajandhyala 19c48d4
lint
satyajandhyala 5c70cb3
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala 3d4e022
Merge branch 'main' of https://github.com/microsoft/onnxruntime into …
satyajandhyala ce3d60b
Replaced gsl::naroow with gsl::narrow_cast
satyajandhyala 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
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.