Skip to content

[AgentX] MiniMax-M3.1-Flash GB300 SGLang: add TP2 and TP4 shortest-prefill-first points / [AgentX] MiniMax-M3.1-Flash GB300 SGLang:新增 TP2 和 TP4 的 shortest-prefill-first 点 - #4676

Merged
Oseltamivir merged 5 commits into
mainfrom
minimaxm31flash-gb300-sglang-spf-interval32
Oct 31, 2026
Merged

Oseltamivir merged 5 commits into
mainfrom
minimaxm31flash-gb300-sglang-spf-interval32

Conversation

@ispobock

@ispobock ispobock commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Add TP4 and TP2 points with DRAM KV offload (L2 HiCache, 180 GB per rank) to the existing GB300 SGLang AgentX curve, in a new recipe file agentic-spf.yaml: --schedule-policy shortest-prefill-first with --prefill-decode-interval 32, 8192-token prefill chunks, --stream-interval 20 and --mem-fraction-static 0.87.

  • TP4 at conc 24, 32 and 40.
  • TP2 at conc 20, 24, 28, 36 and 40.

Existing points are unchanged.

The serving flags are in the SGLang cookbook: sgl-project/sglang#47623

中文

在现有 GB300 SGLang AgentX 曲线上新增 TP4 和 TP2 的点(DRAM KV offload,L2 HiCache,每个 rank 180 GB),配置放在新的 recipe 文件 agentic-spf.yaml 中:使用 --schedule-policy shortest-prefill-first 和 --prefill-decode-interval 32,prefill chunk 为 8192 token,--stream-interval 20,--mem-fraction-static 0.87。

  • TP4:conc 24、32、40。
  • TP2:conc 20、24、28、36、40。

现有点不变。

服务参数已同步到 SGLang cookbook:sgl-project/sglang#47623

AI model disclosure

Prepared with Claude Code using claude-opus-5-5. Reviewed by the human author before submission.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution!

  • Review: If this PR changes files owned by someone other than a repository admin or @SemiAnalysisAI/core, ask one eligible CODEOWNER to complete the latest PR_REVIEW_CHECKLIST.md before contacting a core maintainer on Slack. Follow the template exactly, including As a PR reviewer and CODEOWNER, I have reviewed this and have, so sign-off verification triggers.
  • PR verification: Sweeps run only when the PR appends an inferencex-e2e/perf-changelog.yaml entry and carries exactly one primary label: full-sweep-fail-fast (strongly recommended; canary plus per-matrix fail-fast), full-sweep-enabled (canary; matrix jobs continue after a failure), or non-canary-full-sweep-enabled (no canary or fail-fast). The modifiers all-evals, evals-only, and agentx-fast require a primary label. On fork PRs, a maintainer applies the label. See sweep labels and reuse.
  • After merging: PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see how to rerun failed jobs.
中文

感谢你的贡献!

  • **审阅:**如果 PR 修改的文件归属于仓库管理员及 @SemiAnalysisAI/core 之外的 CODEOWNER,请先联系一位有资格的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 As a PR reviewer and CODEOWNER, I have reviewed this and have,才能触发签核验证。
  • **PR 验证:**只有当 PR 在 inferencex-e2e/perf-changelog.yaml 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:full-sweep-fail-fast(强烈推荐;canary 加逐矩阵 fail-fast)、full-sweep-enabled(有 canary;矩阵任务在失败后继续运行)或 non-canary-full-sweep-enabled(无 canary,也无 fail-fast)。修饰标签 all-evals、evals-only 和 agentx-fast 必须与主标签一起使用。fork PR 的标签由维护者添加。参见扫描标签与复用。
  • **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@ispobock ispobock added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Oct 30, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

AIPERF_HTTP_TCP_USER_TIMEOUT: '900000'
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: 'sglang:'

# TP4 with L2 HiCache, shortest-prefill-first and a decode interval of 32.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 nit (optional): Override header comments that restate the flags break the AGENTS.md comment rule, sweep:^# (TP[24] with L2 HiCache|Shortest-prefill-first with a decode interval). AGENTS.md:56 forbids header comments describing an override or section. AGENTS.md:58 also says comments must never restate the code. Fix: delete these headers (agentic-spf.yaml:53 and the matching section header in nvidia-master.yaml), or replace each with one line on why SPF and interval 32 were chosen. The b300 agentic-tp2-spf.yaml does the second.

Why this was flagged

agentic-spf.yaml:53 ("# TP4 with L2 HiCache, shortest-prefill-first and a decode interval of 32.") sits above zip_override_tp4_hicache_spf_interval32. A copy of it sits above zip_override_tp2_hicache_spf_interval32. Both only repeat tensor-parallel-size, enable-hierarchical-cache, schedule-policy and prefill-decode-interval from the block below. configs/nvidia-master.yaml adds the section header "# Shortest-prefill-first with a decode interval of 32 on L2 HiCache." above the nine new rows, and it also restates the srt-recipe names. AGENTS.md:54-58 makes the comment rules mandatory for every file. They ban header comments on a recipe, override or section, and comments that restate the code. Nothing in the base branch has these lines. The run is not affected, so this is a convention nit only.

Verification: The trigger is any merge of this diff as written. AGENTS.md:56 says: "No header comments describing a file, topology, config, recipe, override, or section." agentic-spf.yaml:53 sits directly above zip_override_tp4_hicache_spf_interval32:, and a TP2 copy and a configs/nvidia-master.yaml section header do the same. Each only repeats values already in the code below it. Nothing breaks at runtime.

@ispobock

Copy link
Copy Markdown
Collaborator Author

/use 41054395691

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

@ispobock staged run 41054395691.

This run remains available across future /stage-results requests. Staging the same run ID again updates its staged data. Staging workflow

@Oseltamivir

Copy link
Copy Markdown
Collaborator

As a PR reviewer and CODEOWNER, I have reviewed this and have

Ignore missing checklist, check recipe at sgl-project/sglang#47623

@github-actions

Copy link
Copy Markdown
Contributor

❌❌❌ REJECTED ❌❌❌

@Oseltamivir This sign-off can't pass yet, for three reasons. No passing sweep with executed evals exists on any commit in this PR. No eval results exist to verify. The sign-off doesn't use the checklist template. Rerun the sweep so agentic / and agentic eval / both succeed on a commit in this PR, then replace the sign-off with the full current checklist.

❌ Check 1 (Passing sweep on in-PR commit): FAIL — No passing sweep/eval was found on any commit in this PR. The only executed run, 41054395691 (attempt 2, on in-PR commit 51c91c3), concluded failure: the TP2 c32 job failed, and agentic eval /, eval /, collect-results and collect-evals were all skipped because the agentic eval matrix was empty. Commits 3bd9ec9, 5ec0c0d and be2067f have no executed benchmark or eval check-runs. The later changes are non-material: they drop TP2 c32, merge main (which touched no MiniMax-M3.1-Flash path) and leave the recipe identical to 51c91c3. But the missing eval execution still blocks this check.

❌ Check 2 (Evals pass): FAIL — Evals were skipped. Run 41054395691 ran no agentic eval / job and produced no eval_* artifacts, so there is no accuracy result to compare with the cohort, and no eval exercised the new shortest-prefill-first / prefill-decode-interval 32 scheduling path.

❌ Check 5 (Latest checklist template): FAIL — The sign-off has no checklist: its whole body is "Ignore missing checklist, check recipe at sgl-project/sglang#47623". Every item of the current PR_REVIEW_CHECKLIST.md template is missing or unchecked, and the additional detail section gives no reason for skipping them.

⚠️ Check 13 (Draft precision): WARN — Draft precision could not be verified for minimaxm31flash-fp4-gb300-sglang-agentic-dspark (agentic-spf.yaml). The recipe sets the draft-only flag speculative-draft-kv-cache-dtype: fp8_e4m3 and leaves the target KV cache at its default. The checkpoint config defines no KV quantization, and the recipe's own comment says BF16 is the alternative. Under the current CONTRIBUTING rule, a draft KV dtype below the framework default is not allowed (#4640, which would relax this, is still open). Missing evidence: the pinned lmsysorg/sglang:dev-minimax-m31-flash@sha256:614b15… image's default draft KV and target KV dtypes, and the shipped and effective draft precision, which the sign-off does not record. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is absent from the logged worker environment. Human review is needed.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — Oseltamivir is a CODEOWNER (collectivex/) with repository admin. The changed NVIDIA paths (nvidia-master.yaml, **/gb300-*/) list @SemiAnalysisAI/core, and perf-changelog.yaml falls under the * catch-all. Team membership was unreadable (404), so it is not held against the signer.

✅ Check 3 (Upstream recipe): PASS — sgl-project/sglang#47623 is MERGED (2026-10-31T07:48:37Z, 7adb930). It adds cookbook entries #7 (TP4) and #10 (TP2) for GB300 MiniMax-M3.1-Flash. Through their ref chain they cover DSpark 7 with block verification, the FP8 draft KV, flashinfer_trtllm_routed, mem-fraction-static 0.87, HiCache 180 GB write_back, shortest-prefill-first, prefill-decode-interval 32, chunked-prefill-size 8192, stream-interval 20 and the per-concurrency max-running-requests and cuda-graph batch sizes. Only harness settings are omitted (enable-metrics, Python environment variables, health checks).

✅ Check 4 (Reuse command): PASS — ispobock (COLLABORATOR) posted /use 41054395691 on its own line on 2026-10-31.

✅ Check 6 (Upstream images): PASS — The image is lmsysorg/sglang:dev-minimax-m31-flash@sha256:614b1509…, from the upstream lmsysorg org and the same digest the existing curve uses. The framework is sglang, so engine-first ordering doesn't apply. The image comes from a temporary model-enablement build, which is allowed because MiniMax-M3.1-Flash was added on 2026-10-23.

✅ Check 7 (Deprecated models): PASS — minimaxm31flash agentic coding is active in MODELS.md as of 2026-10-31.

✅ Check 8 (No architecture hacks): PASS — No --hf-overrides, model-override arguments or config edits, and no indexer-skipping or other accuracy-trading lever. The CUDA SGLang path sets no integer all-reduce control: the logged worker environment has no *QUICK_REDUCE_QUANTIZATION.

✅ Check 9 (Spec-decode chat template): PASS — The AgentX trace replay sends multi-turn chat conversations through SGLang's reasoning and tool-call parsers. Acceptance is simulated at the golden AL (see Check 11), so raw-completions acceptance does not apply.

✅ Check 10 (No engine patches): PASS — agentic-spf.yaml is self-contained, with no setup script, .patch file, inline source edit or wheel install. The pinned image runs as shipped.

✅ Check 11 (Golden AL): PASS — The connector injects SGLANG_SIMULATE_ACC_LEN=4.04 with match-expected and real-draft-token, as confirmed in the job log for run 41054395691. This matches minimaxm31flash_dspark.yaml (DSpark, 7 tokens, thinking_on), golden value 4.04.

✅ Check 12 (Append-only): PASS — The only new changelog entry is append-only. The base's 17 generated points are unchanged (0 removed, 0 re-tuned). The 8 added TP4/TP2 points use the same image, and the new agentic-spf.yaml is reachable only through their srt-recipe selectors.

✅ Check 14 (Pareto coverage): PASS — Curve: MiniMax-M3.1-Flash / agentic / gb300_sglang / fp4 / run 41054395691 (2026-10-30) / p90 E2EL. Computed by hand from the bmk_agentic_* artifacts (latest attempt per point; the sandbox blocked the pareto_coverage helper's input file), the frontier has 8 of 8 measured points, rising monotonically from 46.6k tok/s/GPU at 6.83 s to 123.2k at 16.90 s. The failed TP2 c32 point is excluded.

✅ Check 15 (PR description): PASS — The body's claims match the pinned code: TP4 at 24/32/40, TP2 at 20/24/28/36/40, HiCache 180 GB, SPF with PDI 32, 8192-token chunks, stream interval 20, mem-fraction 0.87, existing points unchanged, and the cookbook link.

✅ Check 16 (NVIDIA overview): PASS — The NVIDIA overview Framework Recipes table lists MiniMax-M3.1-Flash with SGLang checked.

➖ Check 17 (Metrics publication): N/A — These are direct SGLang single-node agg workers, not Dynamo TRT-LLM.

✅ Check 18 (Recipe/image/sweep consistency): PASS — The selectors resolve: TP4 [0..2] map to 24/32/40 and TP2 [0,1,2,4,5] map to 20/24/28/36/40, with no generation errors. GPU counts (4 and 2) match tensor-parallel-size. No new images, orchestration pins or dispatch. The changelog description is accurate. No points are removed or re-tuned.

Assessed commit: be2067f160f532891b949faa1050cc3249fe0e50.

@Oseltamivir
Oseltamivir merged commit 98db676 into main Oct 31, 2026
30 checks passed
@Oseltamivir
Oseltamivir deleted the minimaxm31flash-gb300-sglang-spf-interval32 branch October 31, 2026 16:41
@github-actions

Copy link
Copy Markdown
Contributor

Ingest report — ✅ Results ingested into the production database.

Ingest workflow · Merge Ingest run · Benchmark source run

Category new duplicate skipped unmapped failed
benchmark 8 0 1 0 0
eval 0 0 0 0 0
trace 8 0 0 0 0
power 8 0 0 1 0

benchmarkFiles 9, rawBenchmarkRows 9, coveredByPerJobFiles 0, purgedPoints 0, failedRunRows 1, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 0, gpuMetricSamplesNew 127100, powerPublicationPoints 8, changelogEntriesWritten 1

Counts cover only this run. Rows: benchmark_results, eval_results, agentic rows linked to a trace, gpu_metrics series. This comment updates if the ingest is rerun.

中文

Ingest 报告 — ✅ 结果已写入 production 数据库。

上表仅统计本次运行写入的数据,各行单位依次为 benchmark_results 行、eval_results 行、已关联 trace 的 agentic 行和 gpu_metrics 序列。重新运行 ingest 时本评论会原地更新。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants