-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
[Misc]: Implement CPU/GPU swapping in BlockManagerV2 #3834
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
cadedaniel
merged 39 commits into
vllm-project:main
from
Kaiyang-Chen:dev_block_manager_v2_swap
Jun 3, 2024
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
182d4a8
feat: support swap in/out for block manager v2
Kaiyang-Chen b6b4b8f
fix: linter
Kaiyang-Chen 938d10e
fix: fix some bugs and add test
Kaiyang-Chen 9181552
fix: address comment
Kaiyang-Chen e9a907f
fix: reduce overestimate for can_swap_in
Kaiyang-Chen dcff0e1
fix: reuse similar logic in can_swap_in to reduce overestimation in c…
Kaiyang-Chen 205dda1
fix: refactor swap in/out logic
Kaiyang-Chen 3bb125c
misc: remove useless code
Kaiyang-Chen 403a9bd
fix: refactor can_swap_in/out
Kaiyang-Chen 3237d63
fix: remove unused code
Kaiyang-Chen 4131247
fix: remove unused code
Kaiyang-Chen 0067ddf
fix: refactor swap in/out oprations
Kaiyang-Chen b8aee85
fix
Kaiyang-Chen cba0f62
fix
Kaiyang-Chen 0430758
doc: adding docstring
Kaiyang-Chen fbb3099
test: adding e2e correstness test for preemption by swapping
Kaiyang-Chen 66a7bbd
fix
Kaiyang-Chen 35d391e
remove import for __future__.annotations
Kaiyang-Chen 13ab5f5
fix: address comments
Kaiyang-Chen a1e228c
feat: add preemption as an user input arg
Kaiyang-Chen 9848419
nit
Kaiyang-Chen fc5726d
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 170d5a2
fix: format and test
Kaiyang-Chen c7a3484
fix: ruff
Kaiyang-Chen c252294
test: add enable_cache=True for test_swap
Kaiyang-Chen 880b855
nit
Kaiyang-Chen f16e9f1
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 8b2217b
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen fe13a91
fix
Kaiyang-Chen 773d331
fix: test
Kaiyang-Chen 37d9b31
test: retry ci tests
Kaiyang-Chen a2f1df3
retry
Kaiyang-Chen 228950a
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 216eb76
merge
Kaiyang-Chen e318e7e
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 4e1c511
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 862a5d4
fix: ci
Kaiyang-Chen cb28e8f
Merge branch 'main' into dev_block_manager_v2_swap
Kaiyang-Chen 29df092
fix: merge
Kaiyang-Chen 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
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.