vllm.config.kv_events
¶
Classes:
-
KVEventsConfig–Configuration for KV event publishing.
-
PublisherConfig–Transport settings shared by all cache event publishers.
KVEventsConfig
¶
PublisherConfig
¶
Transport settings shared by all cache event publishers.
Subclasses add the switch that gates the events they publish and override
enable_events, which resolves publisher to "null" when they are off.
Attributes:
-
buffer_steps(int) –The number of steps to cache for replay endpoint. Will only save
-
enable_events(bool) –Whether the events gated by this config are enabled.
-
endpoint(str) –The zmq endpoint to use for publishing cache events.
-
hwm(int) –The zmq high water mark for the event publisher. After queueing N events,
-
max_queue_size(int) –The maximum number of events to queue while waiting for publishing.
-
publisher(Literal['null', 'zmq']) –The publisher to use for publishing cache events. Can be "null", "zmq".
-
replay_endpoint(str | None) –The zmq endpoint to use for replaying cache events.
-
topic(str) –The topic to use for the event publisher. Consumers can subscribe to
buffer_steps = 10000
class-attribute
instance-attribute
¶
The number of steps to cache for replay endpoint. Will only save events from the last N steps for the replay endpoint.
The replay socket's send high-water mark is 2 * (buffer_steps + 1).
enable_events
property
¶
Whether the events gated by this config are enabled.
endpoint = 'tcp://*:5557'
class-attribute
instance-attribute
¶
The zmq endpoint to use for publishing cache events.
hwm = 100000
class-attribute
instance-attribute
¶
The zmq high water mark for the event publisher. After queueing N events, events will start dropping if the consumer is not keeping up.
max_queue_size = 100000
class-attribute
instance-attribute
¶
The maximum number of events to queue while waiting for publishing.
publisher = None
class-attribute
instance-attribute
¶
The publisher to use for publishing cache events. Can be "null", "zmq".
replay_endpoint = None
class-attribute
instance-attribute
¶
The zmq endpoint to use for replaying cache events.
topic = ''
class-attribute
instance-attribute
¶
The topic to use for the event publisher. Consumers can subscribe to this topic to receive events.
_KVEventsToggle
¶
The original first positional argument of KVEventsConfig.
Attributes:
-
enable_kv_cache_events(bool) –If True, enable KV cache events for tracking block storage and removal.
enable_kv_cache_events = False
class-attribute
instance-attribute
¶
If True, enable KV cache events for tracking block storage and removal. Events can be published externally by zmq using the event publisher config.