← Back to Pull requests

feat(examples): deploy SGLang activation scorers by KV transfer domain #19726

Open
unknown opened this pull request with 314 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 18:07 UTC
Author

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.

  • Pin workers to their zone and keep disaggregated prefill and decode in the same zone. Deployment renderer

  • Use the scorer owner as Mooncake’s prefix-cache tag. Cache configuration
  • 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>

  • I used Dynamo's /pr-checklist skill.
  • </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_scores endpoint 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 -->

    Diff: 314 lines (+235 / -79) across 3 files Reviewer: neilkg Review duration: 1457m
    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
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 33.9% · Safe to merge
    33.9%