8000 fix: set correct parent_hash for each kv block when publish kv events by ziqif-nv · Pull Request #671 · ai-dynamo/dynamo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: set correct parent_hash for each kv block when publish kv events #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

ziqif-nv
Copy link
Contributor
@ziqif-nv ziqif-nv commented Apr 15, 2025

Overview:

The correct parent_hash of each kv block should be from trtllm kv event.blocks.block_hash of the previous block in the sequence, except the first block, which is carried by trtllm kv event.data.parent_hash. However, currently, we set all blocks' parent_hash with event.data.parent_hash

Test:

With the change, sending the same requests would give high prefix hit rate, while before, the hit rate is quite low

2025-04-15T00:11:37.382Z  INFO processor._generate: Worker ID: 7587886108854196461 with estimated prefix hit rate: 0.9948186528497409
2025-04-15T00:11:39.746Z  INFO processor._generate: Worker ID: 7587886108854196461 with estimated prefix hit rate: 0.9948186528497409
2025-04-15T00:11:41.198Z  INFO processor._generate: Worker ID: 7587886108854196461 with estimated prefix hit rate: 0.9948186528497409

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Copy link
copy-pr-bot bot commented Apr 15, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ziqif-nv ziqif-nv merged commit 15455df into main Apr 15, 2025
5 checks passed
@ziqif-nv ziqif-nv deleted the ziqif/fix-trtllm-parent-hash branch April 15, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0