Skip to content

Select golden AL curves by verifier and add SPEED-Bench collectors / 按验证器选择黄金 AL 曲线并新增 SPEED-Bench 收集脚本 - #4663

Merged
cquil11 merged 7 commits into
mainfrom
golden-al-verify-collectors
Nov 4, 2026
Merged

cquil11 merged 7 commits into
mainfrom
golden-al-verify-collectors

Conversation

@Ankur-singh

@Ankur-singh Ankur-singh commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

[by Claude Code]

Follows #4661. Lets a golden AL curve be selected by the run's verifier, adds the SPEED-Bench collectors for the curves today's verifier mismatches need, and commits three of those curves. On current main, 11 of the 984 agentic spec-decode rows select a different curve (both GLM-5.3 configs); every other row is unchanged. The AL gate from #4654 picks curves the same way. Kimi-K3 (retired in #4762), MiniMax-M3 and DeepSeek-V4-Pro no longer have serving configs, so their new curves and collectors select no row today; they are kept for acceptance-length research, as MODELS.md does for retired models.

Verifier selection. A curve's select block may name verify (standard, block, relaxed). curve_name now picks the most specific matching curve, so a verifier-specific curve wins over a general sibling. The run's verifier is read once (synthetic_acceptance.verifier) and shared by the launcher, the audit, lookup --verify and signoff_facts golden-al --verify:

  • vLLM: rejection_sample_method; unset means standard; a recipe's synthetic sampler counts as block.
  • SGLang: speculative-use-block-verification.
  • TRT-LLM: relaxed acceptance.
  • ATOM and TileRT: unknown, so they never match a curve that sets verify and keep today's curve.

New curves

Curve Source run Rows that change Effect
kimi-k3__dspark__kimi-k3-dspark__probabilistic-default (probabilistic draft, standard verify; select: verify: standard) 41121033716 0 (Kimi-K3 retired in #4762; it fixed 33 rows before) Probabilistic standard-verify runs select it over the block-verify curve: K=4 3.24 vs 3.36, K=7 3.84 vs 3.84.
minimax-m3__eagle3__minimax-m3-eagle3-gqa__default-block (GQA draft, block verify; select: verify: block) 41121037354 0 (MiniMax-M3 retired) Block-verify GQA runs select it; other GQA runs keep the default curve.
glm-5.3-nvfp4__mtp__native__default-default (B300 SGLang), replacing the provisional glm-5.3-fp8 copy of GLM-5.2 41127067850 11 (both glm5.3 configs) No longer provisional. K=3 golden 2.99 → 2.94. The MI355X TileRT config still reports the engine difference.

The Kimi-K3 standard-verify curve is within 0.12 of the block-verify curve at every K, so the verifier does not explain Kimi-K3 runs measuring above golden.

AL gate (#4654). The gate's planner and its launch check now pass the generation worker's verifier, so a deployment is gated against the same curve its throughput run uses. On the full agentic sweep:

  • The Kimi-K3 and MiniMax-M3 curves carry the collection settings of their collectors, which match their sibling curves.
  • The GLM-5.3 NVFP4 curve has no collection block: it was collected with SGLang's bench_serving on /generate, which the gate cannot replay (the same rule as Muse Spark). Its 10 SGLang points are listed as unresolved instead of being gated with GLM-5.2's settings, so the full agentic sweep plans 135 gates instead of 136.

Collectors (benchmarks/single_node/speedbench/), for speedbench-al.yml:

Curve Collector Dispatch
Kimi-K3 DSpark, probabilistic, standard verify kimik3_fp4_b300_vllm_probabilistic_sample_method.sh model-prefix=kimik3, collector-variant=probabilistic_sample_method
MiniMax-M3 EAGLE3 GQA, block verify minimaxm3_fp4_b300_vllm_gqa_block_rejection_sample_method.sh model-prefix=minimaxm3, collector-variant=gqa_block_rejection_sample_method
DSV4-Pro-0813 DSpark, probabilistic, block verify dsv4dspark_fp4_b300_vllm_probabilistic_sample_method_block_rejection_sample_method.sh model-prefix=dsv4dspark, that variant
GLM-5.3 NVFP4 MTP glm5.3_fp4_b300_sglang.sh model-prefix=glm5.3, framework=sglang, thinking on only

The Kimi and MiniMax collectors are thin wrappers: the base collectors now accept extra speculative-config members and (MiniMax) a draft model from the environment, and record them in the YAML header. GLM-5.3 follows the GLM-5.3 SGLang recipe; SGLang's SPEED-Bench loader renders only the chat template's default, so it collects thinking on only. The DSV4-Pro-0813 block-verify curve is collected but not committed here.

Collection fixes, from failed first attempts:

  • Every collector pins the image's huggingface-hub, transformers and tokenizers when installing datasets; an unpinned install pulled huggingface-hub 2.x, which transformers 5.x rejects, so no server started.
  • Every collector serves on a free port when the default one is taken (some B300 nodes run another service on 8888).
  • speedbench-al.yml fails when no cell was measured, instead of uploading an all-N/A curve.
  • The DSV4 DSpark collector uses the 20ebb28 image's attention config (indexer_kv_dtype: mxfp4 replaced use_fp4_indexer_cache).

Checks on current main (#4661 and #4762 merged): golden AL, srt_slurm, spec identity, AL gate, launch, bench and workflow tests pass; the throughput audit over all 984 agentic spec-decode rows differs from main only in the 11 GLM-5.3 rows; the gate plan differs from main only in the GLM-5.3 gate; infx.matrix.changed reports 0 config keys.

中文

[by Claude Code]

接续 #4661。允许按运行的验证器选择黄金 AL 曲线,新增当前验证器不一致所需曲线的 SPEED-Bench 收集脚本,并提交其中三条曲线。在当前 main 上,984 行 agentic 推测解码配置中有 11 行(两个 GLM-5.3 配置)改选了曲线,其余不变。 #4654 引入的 AL 门禁也按同样方式选择曲线。Kimi-K3(已在 #4762 中退役)、MiniMax-M3 和 DeepSeek-V4-Pro 已没有服务配置,因此它们的新曲线和收集脚本目前不会被任何行选中;按照 MODELS.md 对已退役模型的做法,保留它们用于接受长度研究。

按验证器选择。 曲线的 select 块可以指定 verify(standard、block、relaxed)。curve_name 现在选择最具体的匹配曲线,因此指定了验证器的曲线优先于通用曲线。运行的验证器只读取一次(synthetic_acceptance.verifier),由启动器、审计、lookup --verify 和 signoff_facts golden-al --verify 共用:

  • vLLM:rejection_sample_method;未设置即 standard;配方中的 synthetic 采样器视为 block。
  • SGLang:speculative-use-block-verification。
  • TRT-LLM:relaxed acceptance。
  • ATOM 和 TileRT:未知,因此不会匹配设置了 verify 的曲线,保持当前曲线。

新曲线:

  • kimi-k3__dspark__kimi-k3-dspark__probabilistic-default(概率采样草稿 + standard 验证,41121033716):目前 0 行(Kimi-K3 已退役,此前修正 33 行);概率采样 + standard 验证的运行选择该曲线而非 block 验证曲线:K=4 为 3.24(block 为 3.36),K=7 均为 3.84。
  • minimax-m3__eagle3__minimax-m3-eagle3-gqa__default-block(GQA 草稿 + block 验证,41121037354):目前没有配置使用 block 验证(原先使用的 GB200 disagg 配置已从 main 移除)。其他 GQA 运行保持默认曲线。
  • glm-5.3-nvfp4__mtp__native__default-default(B300 SGLang,41127067850):替代从 GLM-5.2 复制的临时曲线 glm-5.3-fp8,两个 glm5.3 配置共 11 行;K=3 黄金值 2.99 → 2.94。MI355X TileRT 配置仍报告引擎差异。

Kimi-K3 standard 验证曲线与 block 验证曲线在每个 K 上相差不超过 0.12,因此验证器不能解释 Kimi-K3 运行实测高于黄金值。

AL 门禁(#4654)。 门禁的规划器和启动检查现在会传入生成角色的验证器,因此每个部署的门禁曲线与其吞吐运行使用的曲线一致。在完整 agentic sweep 上:

  • Kimi-K3 和 MiniMax-M3 新曲线带有其收集脚本的 collection 设置,与同族曲线一致。
  • GLM-5.3 NVFP4 曲线没有 collection 块:它通过 SGLang bench_serving 在 /generate 端点上收集,门禁无法重放(与 Muse Spark 规则相同)。其 10 个 SGLang 点被列为未解析,而不是沿用 GLM-5.2 的设置做门禁,因此完整 agentic sweep 的门禁数从 136 变为 135。

收集脚本(benchmarks/single_node/speedbench/),用于 speedbench-al.yml:Kimi-K3 DSpark probabilistic + standard 验证、MiniMax-M3 EAGLE3 GQA + block 验证、DSV4-Pro-0813 DSpark probabilistic + block 验证,以及 GLM-5.3 NVFP4 MTP(SGLang,仅 thinking on)。Kimi 和 MiniMax 为轻量包装脚本:基础收集脚本现可从环境变量接收额外的 speculative-config 字段及(MiniMax)草稿模型,并写入 YAML 头部。DSV4-Pro-0813 block 验证曲线已收集,但未在本 PR 中提交。

收集修复(来自首次失败的收集):

  • 所有收集脚本安装 datasets 时固定镜像中的 huggingface-hub、transformers 和 tokenizers;不加约束会装上 huggingface-hub 2.x,transformers 5.x 不兼容,导致服务无法启动。
  • 默认端口被占用时(部分 B300 节点的 8888 端口有其他服务),所有收集脚本改用空闲端口。
  • speedbench-al.yml 在没有任何测量值时失败,而不是上传全为 N/A 的曲线。
  • DSV4 DSpark 收集脚本改用 20ebb28 镜像的注意力配置(indexer_kv_dtype: mxfp4 取代 use_fp4_indexer_cache)。

检查(基于当前 main,已包含 #4661 与 #4762):golden AL、srt_slurm、spec identity、AL 门禁、launch、bench 和 workflow 测试通过;对全部 984 行 agentic 推测解码配置的吞吐审计与 main 相比仅 11 行 GLM-5.3 不同;门禁规划与 main 相比仅 GLM-5.3 门禁不同;infx.matrix.changed 报告 0 个配置键变化。

@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

inferencex-e2e/infx diff: +334 -105

Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package.

中文

大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。

@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.

@cquil11
cquil11 force-pushed the standardize-golden-al-curves branch from 7ebc1dd to cd8624d Compare November 4, 2026 19:33
Base automatically changed from standardize-golden-al-curves to main November 4, 2026 19:39
…tors

A curve's select block may now name a verifier (standard, block or relaxed).
curve_name picks the most specific matching curve, so a verifier-specific curve
wins over a general one, and a run whose verifier is unknown (ATOM, TileRT)
keeps the general curve. The launcher, the audit, lookup and signoff_facts
read the run's verifier the same way. No committed curve sets verify yet, so
every config selects the same curve and golden AL as before.

Add collectors for the curves the verifier mismatches need: Kimi-K3 DSpark
probabilistic with standard verification, MiniMax-M3 EAGLE3 GQA with block
verification, DSV4-Pro-0813 DSpark probabilistic with block verification, and
GLM-5.3 NVFP4 MTP on SGLang.
…collector / DSV4 DSpark 收集脚本改用 20ebb28 镜像的注意力配置

The vllm/vllm-openai nightly-dev 20ebb28 image rejects
--attention_config.use_fp4_indexer_cache, so every cell of the DSV4 DSpark
collection failed to start (run 41101904348). Pass the attention config the
DeepSeek-V4-Pro-0813 DSpark recipes use on that image, where the FP4 indexer
cache is indexer_kv_dtype=mxfp4.

vllm/vllm-openai nightly-dev 20ebb28 镜像不再接受
--attention_config.use_fp4_indexer_cache,导致 DSV4 DSpark 收集的所有单元都无法启动
(run 41101904348)。改为使用 DeepSeek-V4-Pro-0813 DSpark 配方在该镜像上的注意力配置,
其中 FP4 indexer cache 写作 indexer_kv_dtype=mxfp4。
…l / 避免 AL 收集在没有任何测量值时仍报告成功

Run 40958383738 (MiniMax-M3 GQA) reported success with every cell N/A, and
run 40958378907 (Kimi-K3) measured nothing either.

- The dataset step's unpinned `pip install datasets tiktoken` pulled
  huggingface-hub 2.4.0, which the image's transformers 5.14 rejects, so no
  server started. Constrain the install to the image's huggingface-hub,
  transformers and tokenizers versions in every collector.
- Port 8888 was taken on dsxe-sa-b300-prd0-gpu-09 by a process that held no
  GPU memory. The Kimi-K3 and MiniMax-M3 collectors now serve on a free port
  when the default one is in use.
- speedbench-al.yml now fails a collection in which no cell was measured.

- 数据集步骤中未固定版本的 `pip install datasets tiktoken` 会装上
  huggingface-hub 2.4.0,镜像中的 transformers 5.14 不兼容,导致服务无法启动。
  现在所有收集脚本都将安装约束在镜像已有的 huggingface-hub、transformers 和
  tokenizers 版本上。
- dsxe-sa-b300-prd0-gpu-09 上的 8888 端口被一个不占用 GPU 显存的进程占用。
  Kimi-K3 和 MiniMax-M3 收集脚本在默认端口被占用时改用空闲端口。
- speedbench-al.yml 在没有任何单元测得数值时会判定收集失败。
…占用时改用空闲端口

Run 40958391928 (GLM-5.3) measured nothing: on dsxe-sa-b300-prd0-gpu-08 another
HTTP service already listens on port 8888, so SGLang's warmup got that
service's "404 page not found" and every server was killed. Kimi-K3 hit the
same port on gpu-09. Extend the free-port fallback from the Kimi-K3 and
MiniMax-M3 collectors to the other nine.

run 40958391928(GLM-5.3)没有测得任何数值:dsxe-sa-b300-prd0-gpu-08 上已有另一个
HTTP 服务监听 8888 端口,SGLang 预热请求收到该服务的 "404 page not found",
所有服务均被终止。Kimi-K3 在 gpu-09 上也遇到同一端口问题。将 Kimi-K3 和
MiniMax-M3 收集脚本中的空闲端口回退扩展到其余九个脚本。
…and a measured GLM-5.3 curve / 新增按验证器区分的 Kimi-K3 与 MiniMax-M3 曲线及实测 GLM-5.3 曲线

- kimi-k3__dspark__kimi-k3-dspark__probabilistic-default: probabilistic drafting with the
  standard verifier (run 41121033716). Selected by verify: standard; a block-verify run
  still selects the probabilistic-block curve.
- minimax-m3__eagle3__minimax-m3-eagle3-gqa__default-block: GQA draft with block
  verification (run 41121037354). Selected by verify: block; other GQA runs keep
  the default curve.
- glm-5.3-nvfp4__mtp__native__default-default: measured on B300 SGLang (run 41127067850).
  Replaces the provisional curve copied from GLM-5.2; both glm5.3 configs select it
  (K=3: 2.99 -> 2.94).

Also updates the layout test's stand-in collector to write a measured cell, which the
workflow's all-N/A check now requires.
…collection settings / AL 门禁按验证器选择曲线,并为新曲线补充收集设置

The acceptance gate from #4654 selected curves without the run's verifier, so a Kimi-K3
probabilistic standard-verify deployment would be gated against the block-verify curve.
The planner and the launch check now pass the generation worker's verifier.

The Kimi-K3 standard-verify and MiniMax-M3 GQA block-verify curves carry the collection
settings of their collectors, which are those of their sibling curves. The GLM-5.3 NVFP4
curve was collected with SGLang's bench_serving on /generate, like Muse Spark, so it has
none and the gate lists its points as unresolved.
@cquil11
cquil11 force-pushed the golden-al-verify-collectors branch from 5cd68ee to c33db9e Compare November 4, 2026 19:42
…ipts

The sign-off prompt now lists the same verifier mapping as
synthetic_acceptance.verifier: synthetic counts as block, TRT-LLM relaxed
acceptance passes --verify relaxed, and ATOM and TileRT omit --verify.

The Kimi-K3 and MiniMax-M3 variant collectors source their base collector
instead of passing fallback-defaulted environment, so the base scripts read
the collector name from $0 and take only optional SPEC_EXTRA and DRAFT_SUFFIX
inputs. The new collectors drop their file header comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants