Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/online_serving/kv_events_subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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


#
Expand All @@ -24,16 +24,16 @@ 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]
medium: Optional[str]


class BlockRemoved(KVCacheEvent):
block_hashes: list[BlockHash]
block_hashes: list[ExternalBlockHash]
medium: Optional[str]


Expand Down