Repository navigation
[Feat] sgl-router: Separate LoRA block IDs from prompt lookup keys - #42818
Merged
Merged
Conversation
sherlockwu
force-pushed
the
kan/lora-kv-router
branch
4 times, most recently
from
October 12, 2026 05:15
4a701ed to
cbbc3bb
Compare
sherlockwu
force-pushed
the
kan/lora-kv-router
branch
from
October 12, 2026 07:36
cbbc3bb to
55c6bd0
Compare
ShangmingCai
requested review from
ByronHsu,
Duyi-Wang,
HaiShaw,
Jialin,
ShangmingCai,
Ying1123,
alphabetc1,
hanming-lu,
hnyls2002,
huangtingwei9988,
hzh0425,
ispobock,
merrymercy,
sogalin,
xiezhq-hermann and
yizhang2077
as code owners
October 14, 2026 14:56
…_salt Workers publish LoRA blocks under hashes keyed by the adapter name, and salted blocks under a salt-seeded chain. The router hashed every prompt as an unsalted base-model prompt, so LoRA, base and salted requests matched each other's blocks, and salted requests never matched their own. Requests now carry a CacheNamespace (cache_salt, and the adapter from `model: "base:adapter"` or `lora_path`), and every prefix lookup hashes the prompt the way the engine publishes it. Chat also resolves `base:adapter` model ids to the base model's workers. The parity fixture gains salt and LoRA cases, and its --validate-against-sglang mode now checks against the engine's KV event recorder (RadixKey.hash_page no longer exists). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ShangmingCai
force-pushed
the
kan/lora-kv-router
branch
from
October 14, 2026 15:47
e67eccc to
2af1601
Compare
Collaborator
|
/tag-and-rerun-ci |
1 task done
ShangmingCai
added a commit
that referenced
this pull request
Oct 16, 2026
Resolve conflicts with #42674 (squash-merged), #42818 and #44072: - prepare() resolves OpenAI-route models with lookup_openai, so HTTP `model: "base:adapter"` keeps routing to the base model. - Leg::new passes the pinned prefill rank so decode still receives disagg_prefill_dp_rank under --dp-aware. - PreparedRequest::completion and ::typed set cache_namespace. Co-Authored-By: Claude Opus 5.5 <[email protected]>
3 of 6 tasks
2 of 3 tasks
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.
Worker KV-event block IDs may include a worker-local LoRA UUID and cannot be reproduced from an incoming prompt. This separates those external IDs from canonical lookup keys, so base requests and different adapters do not receive each other's prefix credit.
Stacked on #42817. Both existing event modes can supply LoRA events; the router uses tokens, the public adapter name, and cache salt to compute lookup keys.
Changes
sgl-kv-indexer::loraimplementation. Keep mappings scoped to each worker/DP rank, retain parent digests for continuation events, and count independent external owners of each lookup key on each storage tier.AllBlocksCleared.include_lora=true. New consumers receive version 2 when mappings are present; legacy consumers receive a base-only version-1 view at the same watermark. Mixed-version deployments can continue bootstrapping base caches. Base-only snapshots remain version 1.base:adapterto the base model's workers while preserving the adapter in the forwarded body.Validation
Serving E2E and CUDA HiCache transitions remain unverified on this revision: the GPU devbox was evicted for low ephemeral storage. The remote indexer retains its existing soft-state/reconnect limitations. Reloading different weights under the same public adapter name still requires versioned names to avoid stale lookup credit.
CI States
Latest PR Test (Base): ✅ Run #38592394711
Latest PR Test (Extra): ❌ Run #38592394633
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.