Repository navigation
fix(sglang-sidecar): advertise enable_eagle so KV routers bigram-align hashes - #14374
Conversation
2e39577 to
ce4b251
Compare
…g EAGLE events With EAGLE speculative decoding, SGLang keys its radix cache by token bigrams and publishes KV events with bigram token_ids. The sidecar decodes those and hashes them as Eagle blocks, but it never told the router: LlmRegistration had no enable_eagle, so the model card said false and the router hashed prompts the normal way. Every event was accepted and none ever matched. - Add LlmRegistration::enable_eagle and pass it into ModelRuntimeConfig. - SGLang sidecar sets it from server_info.speculative_algorithm (EAGLE, EAGLE3, FROZEN_KV_MTP, NEXTN), same predicate as SGLang's SpeculativeAlgorithm.is_eagle() and the Python worker's register.py. - KvRouter: DYN_ROUTER_WAIT_FOR_MODEL_CARD=1 makes a stock router wait for the worker's card (bounded by DYN_ROUTER_MODEL_CARD_WAIT_SECS) instead of taking a one-shot snapshot. is_eagle is frozen from that lookup, so a router that starts before its workers otherwise stays non-Eagle for good. Logs the resolved card. Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
ce4b251 to
d007300
Compare
Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. WalkthroughChangesThe change adds EAGLE registration
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change enables EAGLE-compatible SGLang registrations to select matching KV routing behavior while preserving false defaults for other backends and older Python registrations. The implemented propagation and unit coverage indicate no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
This comment has been minimized.
This comment has been minimized.
…gle-discovery Signed-off-by: Ishan Dhanani <ishandhanani@gmail.com>
Summary
Advertise SGLang EAGLE speculative decoding in the native sidecar's model card, matching the Python worker. This lets KV routers use the same bigram hashing as the engine's KV events.
enable_eaglefrom the resolved speculative algorithm: EAGLE, EAGLE3, FROZEN_KV_MTP, and the legacy NEXTN alias.LlmRegistrationintoModelRuntimeConfig.Falseand preserving existing positional arguments and missing-attribute compatibility.Validation
Related Issues
🚫 This PR is NOT linked to an issue:
Summary by CodeRabbit
New Features
Bug Fixes