Repository navigation
[None][feat] Add ZMQ KV-cache event tee with gap replay - #8
Merged
Merged
Conversation
…a bounded buffer of events with the main publisher loop
Thachnh
reviewed
Jun 16, 2026
| multimodal_server_config: Optional[MultimodalServerConfig] = None, | ||
| served_model_name: Optional[str] = None): | ||
| served_model_name: Optional[str] = None, | ||
| kv_events_zmq_endpoint: Optional[str] = None, |
There was a problem hiding this comment.
follow vllm format. kv-event-config dict instead of multiple params here
Thachnh
approved these changes
Jun 22, 2026
mohammed-deepinfra
merged commit Jun 23, 2026
1f7cc11
into
deep-main-v1.3.0rc16
7 of 8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[None][feat] Add ZMQ KV-cache event tee with gap replay
Description
Adds an optional read-only ZMQ publisher that tees TensorRT-LLM's native KV-cache events (including token_ids, which the SSE /kv_cache_events path drops) to an external consumer such as a Dynamo RadixTree indexer, in the vLLM ZMQ wire format.
The tee is driven synchronously from the existing kv_event_processor drain loop, so it preserves the single-consumer invariant and never disturbs the production SSE path. The PUB socket is bounded (SNDHWM) with non-blocking sends a missing or slow subscriber drops events rather than backing up the engine.
Because PUB/SUB is lossy, this also adds gap replay, ported to be byte-compatible with vLLM's ZmqEventPublisher protocol so an existing Dynamo / standalone-indexer replay client works unchanged: