[Core] Support reseting all running requests' KV while calling reset_prefix_cache (#28827)

Signed-off-by: Zhuohan Li <zhuohan123@gmail.com>
Signed-off-by: Nick Hill <nhill@redhat.com>
Co-authored-by: Nick Hill <nhill@redhat.com>
This commit is contained in:
Zhuohan Li
2025-12-02 02:25:05 +00:00
committed by GitHub
co-authored by Nick Hill
parent fa8804ad9c
commit d0cd728907
16 changed files with 315 additions and 35 deletions
+2 -2
View File
@@ -329,8 +329,8 @@ class LLMEngine:
self.input_processor.clear_mm_cache()
self.engine_core.reset_mm_cache()
def reset_prefix_cache(self):
self.engine_core.reset_prefix_cache()
def reset_prefix_cache(self, reset_running_requests: bool = False) -> bool:
return self.engine_core.reset_prefix_cache(reset_running_requests)
def sleep(self, level: int = 1):
self.engine_core.sleep(level)