Refactor kv cache free (#11351)

This commit is contained in:
cctry
2025-10-14 17:45:19 -07:00
committed by GitHub
parent 325951460f
commit 1d7f783501
8 changed files with 72 additions and 90 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class ChunkCache(BasePrefixCache):
last_host_node=None,
)
def cache_finished_req(self, req: Req, insert: bool = True):
def cache_finished_req(self, req: Req, is_insert: bool = True):
kv_indices = self.req_to_token_pool.req_to_token[
req.req_pool_idx,
# For decode server: if req.output_ids is empty, we want to free all req.origin_input_ids