diff --git a/examples/online_serving/kv_events_subscriber.py b/examples/online_serving/kv_events_subscriber.py index d30510634f47d..30c3986f2fa40 100644 --- a/examples/online_serving/kv_events_subscriber.py +++ b/examples/online_serving/kv_events_subscriber.py @@ -28,7 +28,12 @@ class BlockStored(KVCacheEvent): parent_block_hash: ExternalBlockHash | None token_ids: list[int] block_size: int + lora_id: int | None + """Deprecated: use `lora_name` for KV block key hash. + Retained for backward compatibility. + """ + medium: str | None lora_name: str | None diff --git a/vllm/distributed/kv_events.py b/vllm/distributed/kv_events.py index 8137bdb758fe6..123af17ef0912 100644 --- a/vllm/distributed/kv_events.py +++ b/vllm/distributed/kv_events.py @@ -51,7 +51,12 @@ class BlockStored(KVCacheEvent): parent_block_hash: ExternalBlockHash | None token_ids: list[int] block_size: int + lora_id: int | None + """Deprecated: use `lora_name` for KV block key hash. + Retained for backward compatibility. + """ + medium: str | None lora_name: str | None