fix(lmcache): correct store for cached requests and num_scheduled_tokens in lmcache_mp_connector.py#39655
Merged
ApostaC merged 1 commit intovllm-project:mainfrom Apr 13, 2026
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the KV transfer logic to include LMCache hit blocks in the calculation of available blocks, ensuring the upper bound aligns with stored blocks. It also improves consistency in token tracking by using incremental scheduled tokens from the scheduler output. A redundant comment fragment was identified in the GetStoreMetadata function that should be removed for clarity.
…ens in lmcache_mp_connector.py Signed-off-by: baoloongmao <baoloongmao@tencent.com>
194ec3c to
6af8b32
Compare
ApostaC
approved these changes
Apr 13, 2026
Collaborator
ApostaC
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the fix!
Contributor
Author
5 tasks
wojciech-wais
pushed a commit
to wojciech-wais/vllm
that referenced
this pull request
Apr 13, 2026
…ens in lmcache_mp_connector.py (vllm-project#39655) Signed-off-by: baoloongmao <baoloongmao@tencent.com>
whk-lab
pushed a commit
to whk-lab/vllm
that referenced
this pull request
Apr 23, 2026
…ens in lmcache_mp_connector.py (vllm-project#39655) Signed-off-by: baoloongmao <baoloongmao@tencent.com>
avinashsingh77
pushed a commit
to avinashsingh77/vllm
that referenced
this pull request
Apr 27, 2026
…ens in lmcache_mp_connector.py (vllm-project#39655) Signed-off-by: baoloongmao <baoloongmao@tencent.com> Signed-off-by: Avinash Singh <avinashsingh.rcoem@gmail.com>
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.
Purpose
Fix two bugs in lmcache_mp_connector.py related to incorrect KV store behavior for cached requests:
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.