From 5b3807e862fe70f51139ac518a5dd361e57de2e5 Mon Sep 17 00:00:00 2001 From: Sage <80211083+sagearc@users.noreply.github.com> Date: Tue, 9 Jun 2026 14:39:52 +0300 Subject: [PATCH] [KV Events] Switch event structs from array to map encoding (#42892) Signed-off-by: Sage Ahrac --- examples/features/kv_events/kv_events_subscriber.py | 4 +--- vllm/distributed/kv_events.py | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/features/kv_events/kv_events_subscriber.py b/examples/features/kv_events/kv_events_subscriber.py index 0512297fcf..b8561c7398 100644 --- a/examples/features/kv_events/kv_events_subscriber.py +++ b/examples/features/kv_events/kv_events_subscriber.py @@ -17,9 +17,7 @@ class EventBatch(msgspec.Struct, array_like=True, omit_defaults=True, gc=False): events: list[Any] -class KVCacheEvent( - msgspec.Struct, array_like=True, omit_defaults=True, gc=False, tag=True -): +class KVCacheEvent(msgspec.Struct, omit_defaults=True, gc=False, tag=True): """Base class for all KV cache-related events""" diff --git a/vllm/distributed/kv_events.py b/vllm/distributed/kv_events.py index c9bc890951..adc8b08269 100644 --- a/vllm/distributed/kv_events.py +++ b/vllm/distributed/kv_events.py @@ -35,7 +35,6 @@ class EventBatch( class KVCacheEvent( msgspec.Struct, - array_like=True, # type: ignore[call-arg] omit_defaults=True, # type: ignore[call-arg] gc=False, # type: ignore[call-arg] tag=True,