feat(router): add lmdeploy router - #4981
Open
caikun-pjlab wants to merge 30 commits into
Open
caikun-pjlab wants to merge 30 commits into
caikun-pjlab wants to merge 30 commits into
Conversation
…isaggregation e2e test
caikun-pjlab
marked this pull request as draft
September 17, 2026 02:56
caikun-pjlab
marked this pull request as ready for review
September 20, 2026 07:16
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.
Summary
This PR integrates the Rust-based
lmdeploy-routerinto the main LMDeploy repository, providing unified development, testing, packaging, documentation, and release management.Key Changes
lmdeploy/router, including source code, benchmark suite, Python launcher, wheel packaging configuration, and tests.lmdeploy-router;lmdeploy serve proxynow remains as a compatibility entry point that launches the Rust router.lmdeploy-routeras an independent Python distribution while colocating its source in the LMDeploy repository. The wheel provides the Python launcher,lmdeploy_router_rsextension, and standalone router binary.cargo fmtcargo clippylmdeploy serve api_servertests run throughlmdeploy-router, ensuring REST traffic is exercised through the router in real CI environments.Qwen/Qwen3.5-35B-A3B, deploying separate Prefill and Decode instances and routing requests throughlmdeploy-router.BUILD_ROUTER=0available to skip Rust compilation when router support is not needed.Compatibility
lmdeploy serve proxycommand is preserved for compatibility.min_expected_latencyandmin_observed_latencyrouting values are accepted and mapped tocache_aware.lmdeploy-routeror the compatibility CLI entry point.Testing
lmdeploy-router.