mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-27 23:12:30 +08:00
[Bugfix] Fix eviction cached blocked logic (#21357)
Signed-off-by: simon-mo <simon.mo@hey.com>
This commit is contained in:
parent
82b8027be6
commit
32142b3c62
@ -253,7 +253,7 @@ class BlockPool:
|
||||
return False
|
||||
block.reset_hash()
|
||||
blocks_by_id.pop(block.block_id, None)
|
||||
if blocks_by_id:
|
||||
if len(blocks_by_id) == 0:
|
||||
del self.cached_block_hash_to_block[block_hash]
|
||||
|
||||
if self.enable_kv_cache_events:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user