From 46b0779996dd689ca7e5e292a34c2909967915c1 Mon Sep 17 00:00:00 2001 From: Snehlata Date: Tue, 7 Oct 2025 14:12:28 +0530 Subject: [PATCH] [BugFix] Update KV block hash type from BlockHash to ExternalBlockHash in kv_events_subscriber - #26264 (#26265) Signed-off-by: atalhens --- examples/online_serving/kv_events_subscriber.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/online_serving/kv_events_subscriber.py b/examples/online_serving/kv_events_subscriber.py index 9fd55fc9ddc94..f4b79b5e13020 100644 --- a/examples/online_serving/kv_events_subscriber.py +++ b/examples/online_serving/kv_events_subscriber.py @@ -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]