-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[FEAT]Support reset prefix cache by specified device #15003
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
from vllm.transformers_utils.tokenizer_group import ( | ||
BaseTokenizerGroup, init_tokenizer_from_configs) | ||
from vllm.usage.usage_lib import UsageContext | ||
from vllm.utils import Device | ||
from vllm.v1.engine.core_client import EngineCoreClient | ||
from vllm.v1.engine.output_processor import OutputProcessor | ||
from vllm.v1.engine.parallel_sampling import ParentRequest | ||
|
@@ -226,7 +227,7 @@ def start_profile(self): | |
def stop_profile(self): | ||
self.engine_core.profile(False) | ||
|
||
def reset_prefix_cache(self): | ||
def reset_prefix_cache(self, device: Optional[Device] = None): | ||
self.engine_core.reset_prefix_cache() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this isn't implemented for V1... should that be included? (we are aiming to deprecate v0 now) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will implement this for v1 after #13377 merged. |
||
|
||
def sleep(self, level: int = 1): | ||
|
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.