From c90817f538e2dd00c89865746c3c9140a6cf70d4 Mon Sep 17 00:00:00 2001 From: Sage Ahrac Date: Wed, 17 Dec 2025 12:27:59 +0200 Subject: [PATCH] add a deprecated comment to the lora_id field Signed-off-by: Sage Ahrac --- examples/online_serving/kv_events_subscriber.py | 5 +++++ vllm/distributed/kv_events.py | 5 +++++ 2 files changed, 10 insertions(+) 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