Skip to content

[Bugfix] AssertionError when releasing waiting requests without KV cache allocation #18829

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

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion vllm/v1/core/kv_cache_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def take_events(self) -> list[KVCacheEvent]:

def get_block_ids(self, request_id: str) -> list[list[int]]:
"""Get the block ids of a request."""
assert request_id in self.single_type_manager.req_to_blocks
if request_id not in self.single_type_manager.req_to_blocks:
return KVCacheBlocks.create_empty().get_block_ids()
return KVCacheBlocks(self.single_type_manager.req_to_blocks[request_id]
).get_block_ids()