standalone-indexer (h24 line): hash image blocks from tokens only - #44
Merged
Merged
Conversation
vLLM attaches each image's identifier to a stored block in extra_keys, and the shared ZMQ normalizer mixed it into the block's tokens hash. The standalone indexer's queriers hash plain token ids: deepapi's probe does, and so do the engine local-indexer TreeDumps served by /kv_recover. Every query therefore stopped matching at a conversation's first image block. Measured on frank/DeepSeek-V4.1-Flash with a live ZMQ capture: for chains whose first image fell in the window, a plain probe matched exactly up to the image block (217, 1098, 1569, 358 blocks) while an image-aware probe matched the whole chain (589, 2432, 3054, 6450). The indexer predicted 0.77 vs actual 0.96 on prompts over 500k tokens. Add ZmqEventNormalizer::with_plain_mm_hashing() and use it in the standalone listener. The library default is unchanged for Dynamo's own router, which queries with image info. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Shang-Pin
changed the base branch from
recover-hardening-h24
to
v41-partial-skip-h24
September 22, 2026 23:07
Shang-Pin
marked this pull request as ready for review
September 22, 2026 23:07
This branch was successfully deployed
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.
Cherry-pick of #43 onto the h24 line. The h24 flavor takes its tokens hashes from the same listener normalizer, so it had the same break at a conversation's first image block.
Validation: cargo test -p dynamo-kv-router --features kube-discovery --lib: 615 passed.
Stacked on #42.
🤖 Generated with Claude Code