Skip to content
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

[Misc] Remove cache stream and cache events #3461

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Conversation

WoosukKwon
Copy link
Collaborator

This PR removes cache_stream and cache_events. Previously, these objects were introduced for fine-grained overlapping between swapping and model execution. However, the overlapping has been disabled since vLLM introduced CUDA graphs. Therefore, we don't need a separate CUDA stream and CUDA events for swapping.

This PR removes such unused objects by launching the swapping ops in the default CUDA stream (same stream used in model execution).

Copy link
Collaborator

@cadedaniel cadedaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a test that verifies correctness of swap ?

Copy link
Collaborator

@zhuohan123 zhuohan123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Please consider adding a test as suggested by @cadedaniel

@WoosukKwon
Copy link
Collaborator Author

@cadedaniel @zhuohan123 Added the test.

@WoosukKwon WoosukKwon merged commit 5ee1449 into main Mar 20, 2024
30 checks passed
@WoosukKwon WoosukKwon deleted the remove-cache-stream branch March 20, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants