-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Core] More-efficient cross-attention parallel QKV computation #7448
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
Closed
afeldman-nm
wants to merge
29
commits into
vllm-project:main
from
neuralmagic:afeldman-nm/infra_enc_dec_cross2
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c724b2a
wip cross qkv parallel linear
afeldman-nm 94b78a9
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm 62e9f45
an approach that only works for unquantized linear
afeldman-nm 9f9350d
working QCrossKVParallelLinear for unquantizedlinear case
afeldman-nm 2bb4c3a
removed unnecessary comment
afeldman-nm 158a148
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm 02b62cd
remember shard shapes during weight loading
afeldman-nm 5952bc3
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm 659018c
reorganized
afeldman-nm 94e5e37
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm 50c9696
Merge branch 'infra_enc_dec_cross' into infra_enc_dec_cross_infer
afeldman-nm 427468f
modified test infra
afeldman-nm 3ed28b1
test
afeldman-nm 284eb05
typo
afeldman-nm 0b2ee5c
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm a78f42b
SOW
afeldman-nm 6888228
removing tests
afeldman-nm 5057726
formatting
afeldman-nm ed2c73a
Caching; refactoring; formatting
afeldman-nm 761d34d
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm efc5f75
small fix
afeldman-nm d536085
comments
afeldman-nm af6dc00
slight refactor
afeldman-nm de054e3
changes
afeldman-nm fab5773
test
afeldman-nm 9a3b5ec
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm aaf920b
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm c299520
Merge branch 'main' into infra_enc_dec_cross
afeldman-nm 585a9c8
refactor
afeldman-nm 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was wondering if in the encoder-decode e2e test (e.g. test_bart.py) did you observe any increase in the input token/s or the output token/s with this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I ran a very informal test to prove to myself that QCrossKVParallelLinear improved the total runtime of the encoder/decoder example script. I should run an actual benchmark in order compare tokens/s