Skip to content

Commit c72c447

Browse files
Abatomheheda12345
andcommitted
Update vllm/v1/core/kv_cache_manager.py
Co-authored-by: Chen Zhang <zhangch99@outlook.com> Signed-off-by: Abatom <abzhonghua@gmail.com> Signed-off-by: Chen Zhang <zhangch99@outlook.com>
1 parent 106cdfb commit c72c447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/v1/core/kv_cache_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,6 @@ def take_events(self) -> list[KVCacheEvent]:
368368
def get_block_ids(self, request_id: str) -> list[list[int]]:
369369
"""Get the block ids of a request."""
370370
if request_id not in self.single_type_manager.req_to_blocks:
371-
return [[]]
371+
return KVCacheBlocks.create_empty().get_block_ids()
372372
return KVCacheBlocks(self.single_type_manager.req_to_blocks[request_id]
373373
).get_block_ids()

0 commit comments

Comments
 (0)