Skip to content

Commit 9b966b1

Browse files
committed
exclude null block
Signed-off-by: Chen Zhang <[email protected]>
1 parent 2d4645f commit 9b966b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/v1/core/block_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def reset_prefix_cache(self) -> bool:
251251
if num_used_blocks != 1: # The null block is always marked as used
252252
logger.warning(
253253
"Failed to reset prefix cache because some "
254-
"blocks (%d) are not freed yet", num_used_blocks)
254+
"blocks (%d) are not freed yet", num_used_blocks - 1)
255255
return False
256256

257257
# Remove all hashes so that no new blocks will hit.

0 commit comments

Comments
 (0)