Skip to content

standalone-indexer (h24 line): hash image blocks from tokens only - #44

Merged
Shang-Pin merged 1 commit into
v41-partial-skip-h24from
mm-plain-hash-h24
Sep 22, 2026
Merged

Shang-Pin merged 1 commit into
v41-partial-skip-h24from
mm-plain-hash-h24

Conversation

@Shang-Pin

Copy link
Copy Markdown

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

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
Shang-Pin deployed to external_collaborator September 22, 2026 20:53 — with GitHub Actions Active
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 22, 2026
@Shang-Pin
Shang-Pin changed the base branch from recover-hardening-h24 to v41-partial-skip-h24 September 22, 2026 23:07
@Shang-Pin
Shang-Pin marked this pull request as ready for review September 22, 2026 23:07
@Shang-Pin
Shang-Pin merged commit 38ce542 into v41-partial-skip-h24 Sep 22, 2026
14 of 27 checks passed

This branch was successfully deployed

1 active deployment
external_collaborator 7f609604 Deployed Sep 22, 2026 by Shang-Pin via ok-to-test #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant