[BugFix] Update KV block hash type from BlockHash to ExternalBlockHash in kv_events_subscriber - #26264 (#26265)

Signed-off-by: atalhens <sneh.lata@nutanix.com>
This commit is contained in:
Snehlata 2025-10-07 14:12:28 +05:30 committed by GitHub
parent de342585ff
commit 46b0779996
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ import msgspec
import zmq
from msgspec.msgpack import Decoder
from vllm.v1.core.kv_cache_utils import BlockHash
from vllm.v1.core.kv_cache_utils import ExternalBlockHash
#
@ -24,8 +24,8 @@ class KVCacheEvent(
class BlockStored(KVCacheEvent):
block_hashes: list[BlockHash]
parent_block_hash: Optional[BlockHash]
block_hashes: list[ExternalBlockHash]
parent_block_hash: Optional[ExternalBlockHash]
token_ids: list[int]
block_size: int
lora_id: Optional[int]
@ -33,7 +33,7 @@ class BlockStored(KVCacheEvent):
class BlockRemoved(KVCacheEvent):
block_hashes: list[BlockHash]
block_hashes: list[ExternalBlockHash]
medium: Optional[str]