feat(examples): deploy SGLang activation scorers by KV transfer domain #19726
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.64) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.64 · 314 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.064
Real PR Conversation Timeline
1 comments
"Review active on #19726"
general
weight: 0.35
neilkg
Overview
A worker can reuse a cached prefix and generate the right text while its scorer has no history for that prefix. This SGLang deployment example gives each zone one scorer and its own Mooncake cache tag, so workers can scale within the zone and still produce complete scores.
| Worker zone | Scorer service | Mooncake cache tag |
| --- | --- | --- |
|
zone-a|sglang-scorer-zone-a|zone-a||
zone-b|sglang-scorer-zone-b|zone-b|Key Changes
63 lines of runtime logic added above #19720, plus the deployment example.
Validation
The placement tests cover aggregated and disaggregated deployments. On Kubernetes, all six CPU worker fixtures reached their zone’s scorer. In a separate H200 test, both owners computed the prefix once, reused 72 tokens on repeat, and returned identical linear, MLP and minGRU scores.
Issues and Ongoing Work
Builds on #19720. Each active prefill zone needs a ready decoder. If a scorer loses its history, drain its workers and clear their local caches and that owner’s external KV before resuming.
<details>
<summary>Pull Request Checklist</summary>
/pr-checklistskill.</details>
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added support for requesting activation-monitor score handles in supported token-streaming chat and completion requests. Handles are included in response metadata when requested; unsupported request modes and configurations are rejected.
Added an optional
/v1/monitor_scoresendpoint that forwards score queries to the configured scorer.Added deployment guidance and tooling for monitored SGLang deployments by zone.
Documentation
Documented score-handle requests, score retrieval, and monitored deployment setup.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->