← Back to Pull requests

[AgentX] Update Muse Spark Open B300 SGLang image and retune per concurrency / [AgentX] 更新 Muse Spark Open B300 SGLang 镜像并按并发重新调优 #4417

Open
unknown opened this pull request with 598 lines diff across 7 files
View on GitHub
unknown unknown commented on Oct 23, 2026 01:55 UTC
Author

Summary

Update the Muse Spark Open B300 SGLang AgentX curve to lmsysorg/sglang:nightly-dev-20261021-c1c287a4, set SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0 in the base serving environment, and retune the per-concurrency points:

  • TP8/EP8, GPU-resident KV: concurrency 1, 4, 10, 14, 16, 20, 24

  • TP4/EP4 on 4 GPUs, DRAM HiCache: concurrency 28, 32, 36, 40
  • TP8 concurrency 8, TP4 GPU-resident KV concurrency 4, and TP4 HiCache concurrency 10, 16, 20 are removed.

    Per-point changes:

  • TP8 concurrency 4: stream interval 20

  • TP8 concurrency 10 (new), starting from the previous concurrency 8 settings: shortest-prefill-first scheduling

  • TP8 concurrency 14:

  • - request admission and decode graph batch 14 → 3
    - shortest-prefill-first scheduling
  • TP8 concurrency 16, 20, 24 (new), starting from the previous concurrency 8 settings:

  • - request admission and decode graph batch 4, 6, 8
    - shortest-prefill-first scheduling
    - stream interval 20 at concurrency 20 and 24
  • TP4 concurrency 28:

  • - prefill-decode interval 80 → 128
    - stream interval 20
  • TP4 concurrency 32 (new), starting from the concurrency 40 settings:

  • - request admission and decode graph batch 64
    - prefill-decode interval 128
    - stream interval 20
  • TP4 concurrency 36: FCFS scheduling instead of shortest-prefill-first

  • TP4 concurrency 40:

  • - prefill-decode interval 64 → 80
    - SWA/full token ratio 0.1 → 0.2
    - stream interval 20

    TP8 concurrency 1 keeps its per-point settings; it only picks up the new image and the base environment variable. HiCache sizes, chunked prefill, memory fractions, the checkpoint, and the DFlash2 draft settings are unchanged.

    <details>
    <summary>AI model disclosure</summary>

  • Model/version: claude-opus-5-5 (the identifier exposed by the runtime).

  • Role: ran the tuning measurements, generated the recipe, master-config and perf-changelog changes from the measured runs, checked them locally against the measured server configurations, and drafted this PR description.
  • </details>

    <details>
    <summary>PR checklist and change type</summary>

    Type of Change

  • Bug fix

  • New feature

  • Configuration change

  • Documentation update

  • Other (please describe)
  • Checklist

  • I have completed the AI model disclosure and kept it current

  • I have tested my changes locally

  • I have updated documentation if necessary

  • If python -m infx.matrix.changed --base origin/main lists affected config keys, I have appended one new entry covering them to the physical end of inferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entries

  • If this PR appends an inferencex-e2e/perf-changelog.yaml entry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs): full-sweep-fail-fast (recommended), full-sweep-enabled, or non-canary-full-sweep-enabled. Optional modifiers all-evals, evals-only, and agentx-fast require a primary label; the last two block reuse while applied.

  • Before merging via reuse, an authorized maintainer (OWNER/MEMBER/COLLABORATOR) has commented /use <run_id> (or the legacy /reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
  • </details>

    <details>
    <summary>中文</summary>

    将 Muse Spark Open B300 SGLang AgentX 曲线更新到 lmsysorg/sglang:nightly-dev-20261021-c1c287a4,在 base 的服务环境变量中设置 SGLANG_FLASHINFER_NVFP4_PER_TOKEN_ACTIVATION=0,并按并发重新调优各点:

  • TP8/EP8,KV 留在 GPU:并发 1、4、10、14、16、20、24

  • TP4/EP4(4 张 GPU),DRAM HiCache:并发 28、32、36、40
  • 移除 TP8 并发 8、TP4 KV 留在 GPU 的并发 4,以及 TP4 HiCache 并发 10、16、20。

    各点改动:

  • TP8 并发 4:stream interval 20

  • TP8 并发 10(新增),以原并发 8 的设置为基础:shortest-prefill-first 调度

  • TP8 并发 14:

  • - 请求数上限与 decode graph batch 14 → 3
    - shortest-prefill-first 调度
  • TP8 并发 16、20、24(新增),以原并发 8 的设置为基础:

  • - 请求数上限与 decode graph batch 分别为 4、6、8
    - shortest-prefill-first 调度
    - 并发 20 与 24 使用 stream interval 20
  • TP4 并发 28:

  • - prefill-decode interval 80 → 128
    - stream interval 20
  • TP4 并发 32(新增),以并发 40 的设置为基础:

  • - 请求数上限与 decode graph batch 64
    - prefill-decode interval 128
    - stream interval 20
  • TP4 并发 36:改用 FCFS 调度(原为 shortest-prefill-first)

  • TP4 并发 40:

  • - prefill-decode interval 64 → 80
    - SWA/full token 比例 0.1 → 0.2
    - stream interval 20

    TP8 并发 1 的各点设置不变,只随之更新镜像与 base 环境变量。HiCache 大小、chunked prefill、memory fraction、checkpoint 与 DFlash2 draft 设置不变。

    AI 模型使用说明:运行环境提供的模型标识为 claude-opus-5-5。工作内容包括执行调优量测、根据实测结果生成配方、主配置和性能变更记录的改动、在本地与实测的服务配置逐项核对,以及起草本 PR 说明。

    </details>

    🤖 Generated with Claude Code

    Diff: 598 lines (+448 / -150) across 7 files Reviewer: claude[bot] Review duration: 14m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.50) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 598 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 99% · Reviewer familiarity: 35%
    42%
    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.383
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #4417"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 42.8% reviewed
    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: 50% (MEDIUM) · Higher = larger blast radius
    50%
    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: 42.8% · Lower = rushed or shallow review
    42.8%
    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: 28.6% · Safe to merge
    28.6%