-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[Attention] MLA with chunked prefill #12639
Merged
simon-mo
merged 44 commits into
vllm-project:main
from
LucasWilkinson:lwilkinson/chunked-mla
Feb 21, 2025
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
4267344
chunked mla
LucasWilkinson 2821aed
add gather cache kernel
LucasWilkinson dc00371
wip
LucasWilkinson f50719b
wip running
LucasWilkinson 3d2e770
more cleanup
LucasWilkinson ea19198
better defaults
LucasWilkinson d116752
increase MLA gpu_memory_utilization default
LucasWilkinson c3ad988
wip
LucasWilkinson ca1b07d
wip fix tensor on wrong device
LucasWilkinson 396f4db
wip
LucasWilkinson b4a900e
finally :/
LucasWilkinson 04c6042
working!
LucasWilkinson d0925bb
clean-up
LucasWilkinson 0e173be
delete files
LucasWilkinson 25bd9cb
cleanup
LucasWilkinson b73fb74
cleanup
LucasWilkinson 829ce2b
relocate merge_attn_states
LucasWilkinson dee34f7
add comments
LucasWilkinson b28f99a
comment fixes
LucasWilkinson 54ae713
minor fixes
LucasWilkinson 3db8ab6
remove no-longer necessary changes
LucasWilkinson 04644e3
clean-up
LucasWilkinson 4398787
fix tp
LucasWilkinson d73f9ff
review comments
LucasWilkinson f4da0b6
minor fix
LucasWilkinson 50a53aa
fix wrong device, increase workspace, enable cuda-graphs
LucasWilkinson e0a758e
minor changes
LucasWilkinson 3c800bb
add comment
simon-mo a79ee4c
fix assert
LucasWilkinson 1c59597
extra workspace allocation during profile run
LucasWilkinson 1137f76
rename
LucasWilkinson 920ecc6
fix illegal memory access
LucasWilkinson 0547a94
Merge remote-tracking branch 'origin/main' into lwilkinson/chunked-mla
LucasWilkinson b665575
format
LucasWilkinson 3a0ae51
format
LucasWilkinson 28464b5
mypy pass
LucasWilkinson 609267b
Merge branch 'main' into lwilkinson/chunked-mla
tlrmchlsmth dfb3ada
fix basic model test
LucasWilkinson 9ca182b
attempt to fix AMD build
LucasWilkinson d325935
attempt 2 fix amd build
LucasWilkinson 6394a8a
Merge remote-tracking branch 'origin/main' into lwilkinson/chunked-mla
LucasWilkinson f17599e
Merge remote-tracking branch 'origin/main' into lwilkinson/chunked-mla
LucasWilkinson c5fbdaa
Merge remote-tracking branch 'origin/main' into lwilkinson/chunked-mla
LucasWilkinson 10c4e54
Merge remote-tracking branch 'origin/main' into lwilkinson/chunked-mla
LucasWilkinson 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 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 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 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 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 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 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 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 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 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.
Future work: this is generally useful across all kernels and we should probably factor these checks out into a helper function. Something like this:
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.
agreed, that would be nice, ill work on a separated PR