Skip to content

[Deps] Enable lmcache 0.5.4 with the kvaware router stack - #2

Closed
tyler2cr wants to merge 1 commit into
mainfrom
router-lmcache-054
Closed

[Deps] Enable lmcache 0.5.4 with the kvaware router stack#2
tyler2cr wants to merge 1 commit into
mainfrom
router-lmcache-054

Conversation

@tyler2cr

Copy link
Copy Markdown
Owner

The "enable the new version of lmcache with vllm-stack" change, as a standalone diff (3 files, +18/−5) — independent of the chat-tokenization PR (vllm-project#1045); mergeable in either order.

What it changes

pin before after
[lmcache] extra: lmcache 0.3.11 0.5.4 (current stable)
[lmcache] / [test] extras: vllm 0.13.0 0.22.0
docker/Dockerfile.kvaware base lmcache/vllm-openai:2025-05-27-v1 lmcache/vllm-openai:v0.5.4
tutorial-17 engine image v0.3.9post2 v0.5.4

Each pin site now carries a comment documenting why the versions must move in lockstep — the two silent failure modes we hit on hardware:

  1. lmcache's controller↔worker ZMQ messages are not a stable protocol across versions: a 0.3.x controller rejects a 0.4+/0.5+ worker's RegisterMsg as "unknown message type," and the worker never registers — every KV lookup misses, routing degrades to session/QPS with no error.
  2. kv-aware chunk hashes are rooted in vLLM's NONE_HASH — a router whose vllm differs from the engines' derives a different hash chain, and again every lookup silently misses.

Verification

One heads-up for 0.5.4 adopters

lmcache 0.5.4 still defaults lmcache_worker_heartbeat_time: Noneworkers never send heartbeats by default, while the controller reaps silent workers after ~30s, emptying the KV index shortly after startup ("misses that shouldn't be occurring"). The helm chart already maps lmcacheConfig.workerHeartbeatTimeLMCACHE_LMCACHE_WORKER_HEARTBEAT_TIME and tutorial-17's values set it to "30", so chart-driven deployments are safe — but any hand-rolled engine config must set it explicitly.

🤖 Generated with Claude Code

Bumps the [lmcache] extra (lmcache 0.3.11 -> 0.5.4, vllm 0.13.0 -> 0.22.0),
the kvaware router base image (2025-05-27-v1 -> v0.5.4), and the tutorial-17
engine image (v0.3.9post2 -> v0.5.4), with comments documenting WHY the
pins must move in lockstep: the controller<->worker ZMQ messages are not a
stable protocol across lmcache versions, and kv-aware chunk hashes are
rooted in vLLM's NONE_HASH - a version mismatch on either axis makes every
KV lookup miss silently.

Router API surface verified against lmcache 0.5.4
(LMCacheControllerManager constructor, handle_orchestration_message,
start_all, LookupMsg, QueryInstMsg - all unchanged, two new optional
constructor params). Full router test suite passes (220/220).

Signed-off-by: tyler <tcr@enfuse.io>
@tyler2cr

Copy link
Copy Markdown
Owner Author

Submitted upstream as vllm-project#1060 — that's now the canonical review venue; closing this staging PR. The branch stays available for interim image builds.

@tyler2cr tyler2cr closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants