mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-08 13:47:20 +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
|
return False
|
||||||
block.reset_hash()
|
block.reset_hash()
|
||||||
blocks_by_id.pop(block.block_id, None)
|
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]
|
del self.cached_block_hash_to_block[block_hash]
|
||||||
|
|
||||||
if self.enable_kv_cache_events:
|
if self.enable_kv_cache_events:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user