Repository navigation
[routing 4/4] Integrate native routing and route LoRA pools with cache_wait by default #123
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
Kailash Ranganathan (kailash109)
merged 15 commits into
main
from
codex/routing-4-native
Oct 28, 2026
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a663542
Run routing and retries in Rust and integrate exact-version sampling
kailash109 585cd8f
Name routing service rates and the worker retry limits.
kailash109 714f50a
Start the affinity clock on saturated waits and drop the routing doc
kailash109 c5e51d2
Call the native router in-process instead of over localhost HTTP
kailash109 d4f330c
Use the policy's admission clock and configure only the prefill rate
kailash109 75dd1d1
Remove the single-implementation router interface and unused dispatch…
kailash109 dd4b6ec
Validate LoRA routing settings at deploy and note cache_wait routing …
kailash109 edb5ade
Drop the sampling-group wire now that pending-prefix waits are gone.
kailash109 0a6aa6d
Keep one native-router test per routing behavior.
kailash109 017c2a5
Drop sampling stats and retry codes nothing reads or can receive.
kailash109 37069b1
Build the router extension only in the Modal image.
kailash109 6c3d725
Fall back to the gateway, poll replicas independently, and return wor…
kailash109 c4cbcca
Note the gateway fallback in the changelog.
kailash109 5161b5e
Route LoRA pools with cache_wait and split-K by default, measuring th…
kailash109 50c689b
Drop the duplicate-ID guard, routing key and policy echo from the nat…
kailash109 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ build/ | |
| dist/ | ||
| .env | ||
| scripts/results/ | ||
| *.so | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| include rust/router/Cargo.toml rust/router/Cargo.lock rust/router/pyproject.toml | ||
| recursive-include rust/router/src *.rs |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: nothing reads
SGLANG_SPINDLE_MODEL_ROUTING, in Spindle or in the pinned SGLang (a3e0e17), so we can drop it. The routing observer is now turned on byinference_lora_routing = "cache_wait"itself.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped in 50c689b, along with the example's
SGLANG_ENABLE_LORA_CSGMV_SPLIT_K: split-K is on by default for LoRA pools now, and it never fires on the 27B's 5,120-wide layers anyway.