Skip to content

Add portable tool-use verifier smokes / 添加可移植的工具调用验证器冒烟评估 - #2547

Closed
adibarra wants to merge 60 commits into
mainfrom
feat/tool-use-eval-smoke
Closed

adibarra wants to merge 60 commits into
mainfrom
feat/tool-use-eval-smoke

Conversation

@adibarra

@adibarra adibarra commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add three opt-in tool-use eval frameworks without changing the existing lm-eval and GSM8K defaults:
    • kimi-vendor with kimi_tool_call_schema
    • minimax-vendor with minimax_m3_smoke
    • bfcl with bfcl_smoke
  • Run the unmodified upstream Kimi Vendor Verifier tests/tool_call_json_schema suite in non-streaming and streaming modes, pinned to b9ed3a6665bdff2c943246f7d2903cd003d6ddd6.
  • Adapt row 71 from MiniMax Provider Verifier sample.jsonl, pinned to 85bf180e54e2ab0b31595cfdc697116c4760876d, as a deterministic one-request schema and tool-trigger smoke. Preserve the upstream MIT notice and native six-metric report.
  • Add a generalized BFCL V4 OpenAI chat-completions adapter. It verifies and installs bfcl-eval==2026.3.23, then evaluates four pinned cases that require native tool behavior:
    • simple_python_141, current gold-price lookup
    • multiple_38, library search with multiple available functions
    • parallel_1, parallel weather calls
    • irrelevance_0, correct refusal to call a tool
  • Project every verifier into inferencex-eval-v1 while preserving its native diagnostic report. Aggregation and reusable-artifact validation retain the eval suite identity. Setup, transport, timeout, runtime, projection, and artifact failures emit zero-score compatibility artifacts with explicit integration-error metadata.
  • Route opt-in eval inputs through single-node and multi-node agentic workflows. Preserve each matrix row's STP or MTP launcher, concurrency list, endpoint, model name, tool parser, and existing result staging behavior.

Runtime and gates

  • Kimi runs in an isolated environment with a 900-second upstream pytest bound. Both streaming modes must pass, so the threshold is 1.0.
  • MiniMax sends one OpenAI-compatible chat-completions request with temperature: 0, top_p: 1, max_tokens: 40960, a 180-second request timeout, and one retry for transport, HTTP 429, or HTTP 5xx failures. The response must finish with native tool_calls and validate against the requested schema, so the threshold is 1.0.
  • BFCL uses four worker threads, temperature: 0, a 180-second per-request timeout, no request retries, a 900-second suite timeout, and a 600-second dependency-install timeout. The aggregate must pass at least three of four cases, so the threshold is 0.75; category rows remain diagnostic.
  • The verifier runtimes do not mutate the image's global Python environment. Provider-specific temporary roots and artifacts are cleaned without deleting unrelated eval outputs.

Scope

  • All three evals remain opt-in. Existing throughput jobs, GSM8K selection, and lm-eval behavior are unchanged.
  • perf-changelog.yaml is unchanged. Existing launcher and recipe changes are limited to the request-format and tool-parser settings needed to expose native tool calls.
  • This is a portable tool-call compatibility layer, not the full MiniMax 102-case benchmark, the complete BFCL leaderboard, or a SWE-bench Lite reintroduction.

Validation

  • Focused eval and matrix regression suite: 313 passed.
  • Ruff checks, focused Ruff format checks, Bash syntax, ShellCheck, workflow YAML loading, Actionlint with only repository-baseline ignores, and git diff --check passed.
  • Current commit 255073358 BFCL hardware validation:

中文说明

概要

  • 新增三种可选工具调用评估框架,同时保持现有 lm-eval 和 GSM8K 默认行为不变:
    • kimi-vendor 与 kimi_tool_call_schema
    • minimax-vendor 与 minimax_m3_smoke
    • bfcl 与 bfcl_smoke
  • 直接运行上游 Kimi Vendor Verifier 未修改的 tests/tool_call_json_schema 测试集,覆盖非流式和流式两种模式,并固定到提交 b9ed3a6665bdff2c943246f7d2903cd003d6ddd6。
  • 将固定到提交 85bf180e54e2ab0b31595cfdc697116c4760876d 的 MiniMax Provider Verifier sample.jsonl 第 71 行改造成单请求、确定性的工具触发及 schema 冒烟评估。保留上游 MIT 许可声明和原生六项指标报告。
  • 新增通用 BFCL V4 OpenAI chat-completions 适配器。校验并安装 bfcl-eval==2026.3.23 后,运行四个固定且必须体现原生工具调用行为的样例:
    • simple_python_141,查询实时黄金价格
    • multiple_38,在多个可用函数中选择图书馆检索
    • parallel_1,并行查询天气
    • irrelevance_0,在不应调用工具时正确拒绝调用
  • 将每个验证器的结果转换为 inferencex-eval-v1,同时保留其原生诊断报告。聚合及可复用产物校验会保留评估套件标识。依赖安装、传输、超时、运行、结果转换及产物写入失败时,输出带明确集成错误元数据的零分兼容性产物。
  • 将可选评估输入接入单节点和多节点 Agentic 工作流。保留每个矩阵配置的 STP 或 MTP 启动器、并发列表、端点、模型名、工具解析器及现有结果暂存行为。

运行策略与门禁

  • Kimi 在隔离环境中运行,上游 pytest 总超时为 900 秒。非流式和流式模式必须全部通过,阈值为 1.0。
  • MiniMax 向 OpenAI 兼容 chat-completions 端点发送一次请求,设置 temperature: 0、top_p: 1、max_tokens: 40960,单次请求超时为 180 秒。仅传输错误、HTTP 429 或 HTTP 5xx 最多重试一次。响应必须以原生 tool_calls 结束,并通过请求 schema 校验,阈值为 1.0。
  • BFCL 使用四个工作线程、temperature: 0、单请求 180 秒超时且不重试,整个套件超时为 900 秒,依赖安装超时为 600 秒。总分至少通过四项中的三项,阈值为 0.75,分类结果仅用于诊断。
  • 验证器不会修改镜像中的全局 Python 环境。清理范围仅限对应供应商的临时目录和产物,不会删除其他评估输出。

范围

  • 三种评估均为可选功能。现有吞吐量任务、GSM8K 选择逻辑和 lm-eval 行为保持不变。
  • 本 PR 不修改 perf-changelog.yaml。现有启动脚本与 recipe 的改动仅限于暴露原生工具调用所需的请求格式和工具解析器设置。
  • 本实现提供可移植的工具调用兼容性评估,并非完整的 MiniMax 102 项基准测试、完整 BFCL 排行榜评估或 SWE-bench Lite 恢复方案。

验证

  • 评估及矩阵聚焦回归测试通过,共 313 passed。
  • Ruff 检查、聚焦 Ruff 格式检查、Bash 语法、ShellCheck、工作流 YAML 加载、仅忽略仓库基线告警的 Actionlint,以及 git diff --check 均通过。
  • 当前提交 255073358 的 BFCL 硬件验证:

中文:添加基于 Kimi Vendor Verifier 原生实现的工具调用评估
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the contribution! Please reach out to respective companies' CODEOWNER to fill in the latest PR_REVIEW_CHECKLIST.md before pinging core maintainer on Slack for review. In order for the signoff PR check bot to trigger, you must follow the PR_REVIEW_CHECKLIST.md template correctly, including the phrase As a PR reviewer and CODEOWNER, I have reviewed this and have.

For PR verification, add the full-sweep-fail-fast label (strongly recommended) to this PR — the benchmark sweep only runs on labeled PRs. Use full-sweep-enabled only if you need matrix jobs to keep running past a failure.

PR authors are responsible for ensuring that after merging, all GitHub Action jobs fully pass. A lot of the time, failures are just flakes and simply re-running the failed jobs will fix it. See GitHub's docs on re-running failed jobs


感谢你的贡献!请联系相应公司的 CODEOWNER 填写最新的 PR_REVIEW_CHECKLIST.md,然后再在 Slack 上联系核心维护者进行审阅。为了触发 signoff PR 检查机器人,你必须正确遵循 PR_REVIEW_CHECKLIST.md 模板,包括保留英文语句 As a PR reviewer and CODEOWNER, I have reviewed this and have。

如需进行 PR 验证,请为此 PR 添加 full-sweep-fail-fast 标签(强烈推荐)— 基准测试 sweep 仅在带有标签的 PR 上运行。仅当需要矩阵任务在失败后继续运行时才使用 full-sweep-enabled。

PR 作者有责任确保合并后所有 GitHub Action 任务完全通过。 很多时候失败只是偶发抖动(flake),重新运行失败的任务即可解决。参见 GitHub 关于重新运行失败任务的文档

中文:精简工具调用评估实现并接入工作流选择路径
中文:合并最新主分支以完成发布准备
中文:隔离 Kimi 验证器依赖并明确供应商适配边界,同时加入执行超时和通用结果格式标识。
中文:合并最新 main,确保发布前验证基于当前代码。
@adibarra adibarra changed the title Add stock Kimi tool-use smoke eval / 添加 Kimi 原生工具调用冒烟评估 Add pinned Kimi Vendor Verifier smoke / 添加固定版本的 Kimi Vendor Verifier 冒烟评估 Aug 10, 2026
@adibarra adibarra added the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Aug 10, 2026
中文:区分失败结果产物写入成功与写入失败,同时保留原始安装失败退出码。
中文:将 agentic 评估矩阵的投机解码模式传递给启动器,避免 MTP 配置静默回退到 STP。
中文:合并最新 main,准备发布。
中文:补全纯评估工作流的结果收集依赖,避免所有评估任务成功后工作流仍显示失败。
The collector dependency change did not affect GitHub’s workflow conclusion and added unrelated orchestration scope.

中文:恢复纯评估结果收集的原有范围。该依赖调整未改变 GitHub 工作流结论,且扩大了无关改动范围。
中文:合并最新 main,准备进入评审。
@adibarra
adibarra marked this pull request as ready for review August 10, 2026 22:47
@adibarra
adibarra requested a review from a team August 10, 2026 22:47
@claude

claude Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @adibarra's task in 6m 48s —— View job


PR Review

  • Gather context and read the full diff
  • Review workflow changes (benchmark-tmpl.yml, e2e-tests.yml)
  • Review benchmarks/benchmark_lib.sh verifier integration
  • Review utils/evals/kimi_vendor_eval.py adapter
  • Review collection/validation changes and tests
  • Post findings

LGTM - no blocking issues found

Verified end-to-end: the always-set EVAL_FRAMEWORK env default (lm-eval) matches the previous effective default so existing lm-eval/swebench dispatch is unchanged; artifacts flow from EVAL_RESULT_DIR through append_lm_eval_summary's *.json* move into the workspace, where the upload globs (results*.json, *_vendor_report.json) and provider-scoped cleanup cover them; the inferencex-eval-v1 projection is picked up by collect_eval_results.py and scored by validate_scores.py with val < min_score semantics, so the 1.0 threshold passes on a perfect run and every zero-score failure artifact fails deterministically; the eval_suite identity uses a legacy sentinel in eval_key, keeping pre-existing reusable artifacts internally consistent; and the spec-decoding forwarding matches the pattern already used by the sibling benchmark jobs (the matrix always defines it).

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

Beyond the inline findings, I also checked the multi-node rejection path in _run_kimi_tool_call_schema_eval (benchmarks/benchmark_lib.sh): when IS_MULTINODE is true it returns early without writing a zero-score compatibility artifact, unlike the setup-failure paths. This is a real asymmetry but not a bug in this PR's scope — run_eval's scenario dispatch never routes multi-node jobs to kimi-vendor, so the path is unreachable in practice today.

Extended reasoning...

I reviewed the multi-node rejection branch in _run_kimi_tool_call_schema_eval because it looked structurally similar to the other early-return failure paths that do write a zero-score compatibility artifact via _write_kimi_vendor_integration_error. This one instead returns exit code 2 with only a stderr message and no artifact. Tracing the call graph, run_eval's framework dispatch is single-node only for the kimi-vendor case in this PR (Phase 1 is explicitly scoped to single-node), so there's currently no caller that reaches this branch with IS_MULTINODE=true. I'm noting it as examined-and-ruled-out rather than filing it, since it doesn't affect current CI behavior.

Comment thread utils/evals/kimi_vendor_eval.py Resolved
Comment thread benchmarks/benchmark_lib.sh Resolved
Comment thread utils/evals/kimi_vendor_eval.py Resolved
Comment thread benchmarks/benchmark_lib.sh Resolved
中文:修正验证器失败样本数、共享格式契约、路径复用及双语文档链接。
中文:保留结果收集器测试的现有格式,仅添加格式契约测试。
中文:在启动失败时保留验证器计划样本数,同时将有效样本数记录为零。
@adibarra
adibarra marked this pull request as draft August 10, 2026 23:27
中文:合并最新 main,并保留工具调用评估元数据。
中文:保留可配置的 eval 调度行为,并修正失败返回码、Bash 兼容性和 eval 文档。
中文:强化验证器评审路径。
@adibarra
adibarra marked this pull request as ready for review August 11, 2026 22:11
@claude

claude Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @adibarra's task in 6m 17s —— View job


Re-review (new changes since 2026-08-10T23:01Z review)

  • Identify commits since the last review — 6793c9e3f (preserve configurable eval dispatch behavior), 294e39d51 (harden verifier review paths), plus a merge from main
  • Review the new changes
  • Verify previously reported findings were addressed
  • Post re-review summary

Re-review: one 🟡 warning — the latest commit re-broke the bilingual doc line anchors that an earlier commit had fixed (inline comment on docs/eval-agentx-procedures.md:100). Commit 294e39d51 added the 13-line EVAL_SUITE guard inside run_eval (benchmarks/benchmark_lib.sh:1818-1829) without refreshing the docs, so the 8 anchors pointing past L1815 in both eval-agentx-procedures.md and eval-agentx-procedures_zh.md now land 13 lines early (e.g. "trace resolution" #L2008 lands mid-pip install instead of at resolve_trace_source(), now L2021). Exact corrected ranges are in the inline comment.

Everything else in the new commits checks out:

  • Previous review findings are all addressed: n_eff is now threaded through _compatibility_result(..., n_samples=...) (0 on pre-test failures, 2 only after a parsed two-mode report), with the matching n_eff is not None rendering fix in collect_eval_results.py so a real 0 displays; _eval_patches_dir now derives from INFERENCEX_REPO_ROOT; and test_kimi_vendor_result_format_matches_collector_contract pins the inferencex-eval-v1 producer/consumer literals together.
  • Report-projection hardening (utils/evals/kimi_vendor_eval.py:77-107) is sound: by_status keys are whitelisted to passed/failed, counts must be non-negative ints summing to total, and per-result statuses are whitelisted — any upstream format drift lands in the existing ValueError → zero-score compatibility path with n_eff: 0, covered by new tests.
  • EVAL_SUITE guard: the character whitelist and kimi-vendor-only restriction are correct for all current callers (workflow env defaults EVAL_SUITE to empty; every script calls run_eval exactly once). One latent trap worth knowing about, not a bug today: run_swebench_eval exports EVAL_SUITE (benchmark_lib.sh:1676), so a hypothetical second run_eval call in the same shell session after a swebench run would now be rejected by the new guard.
  • _env_is_true rewrite drops the bash-4 ${1,,} lowercase expansion for a portable bracket-class pattern, and the ${EVAL_ONLY:-false} guards fix unbound-variable failures under set -u.
  • multinode_agentic_evals added to the e2e-tests trusted-changelog flatten list matches a real family key emitted by the generator (confirmed in utils/matrix_logic/validation.py:924 and utils/process_changelog.py:180), with a regression test.

Not verified locally: the focused pytest suites and bash -n/py_compile checks were blocked by tool permission approval in this environment, so I relied on reading the diffs plus the PR's own CI; if you want me to execute tests in future runs, the action's --allowedTools needs to permit python3 -m pytest.


@adibarra adibarra removed the full-sweep-fail-fast Full sweep with canary gate; first failure cancels the rest of that matrix (recommended) label Aug 11, 2026
中文:强化工具调用评估的分发流程与产物校验。
中文:保留已选择的 SRT 评估并发度。
中文:显式传递 DSV4 的开源思考模式,确保流式工具调用按部署配置解析。
中文:将 main 合并到验证器分支
Integrate three pinned deterministic provider-verifier cases with strict request, result, timeout, retry, and artifact contracts.

Wire the smoke through single-node, multi-node, fixed-sequence, and agentic eval workflows.

中文:新增包含三个固定用例的 MiniMax M3 Provider Verifier 冒烟评估,严格约束请求、结果、超时、重试及产物格式,并接入单节点、多节点、定长序列和 Agentic 评估工作流。
Use the pinned upstream 40960-token M3 default so valid tool-call responses do not truncate with finish_reason=length.

中文:采用上游固定版本为 M3 设置的 40960 token 默认值,避免有效工具调用响应因 finish_reason=length 被截断。
Translate urllib HTTP protocol failures such as IncompleteRead into the existing one-retry transport path.

中文:将 IncompleteRead 等 urllib HTTP 协议异常转换为既有的传输失败类型,使截断响应按策略重试一次。
中文:将 MiniMax 冒烟评估收敛到稳定的工具调用模式检查,并允许在受支持模型上显式运行。
中文:移除 NVIDIA srt-slurm v1.0.45 不再支持的 GB200 配置字段。
Configure the Dynamo frontend to use each SGLang model parser so unary OpenAI responses expose structured tool_calls instead of raw model tags.

中文:配置 Dynamo 前端使用对应的 SGLang 模型解析器,使非流式 OpenAI 响应输出结构化 tool_calls,而不是原始模型标签。
Use vLLM chat processors at Dynamo frontends for DeepSeek V4 and Kimi K3 so unary OpenAI responses expose structured tool calls.

中文:在 DeepSeek V4 和 Kimi K3 的 Dynamo 前端启用 vLLM 聊天处理器,使非流式 OpenAI 响应输出结构化工具调用。
Keep the native Dynamo Kimi K3 parser and force structural tags for tool_choice=auto requests so the model emits valid XTML opening markers.

中文:保留 Dynamo 原生 Kimi K3 解析器,并对 tool_choice=auto 请求强制启用结构化标签,使模型输出有效的 XTML 起始标记。
Apply the structural-tag scope required for tool_choice=auto to every GB200 Kimi K3 topology, not only the latency recipe used by the smoke run.

中文:为所有 GB200 Kimi K3 拓扑启用 tool_choice=auto 所需的结构化标签范围,而不只覆盖冒烟验证使用的低延迟配置。
中文:使用 vLLM 的 Kimi K3 前端解析器,将工具调用作为结构化 OpenAI 响应返回。
中文:合并最新 main,并采用上游已删除的过期基准配置。
中文:清理多节点供应商评估产物时使用安全的相对 glob,避免文件名被解析为选项。
中文:对服务端点注册期间的瞬时 404 和传输错误执行有界退避重试,避免 Dynamo 前端刚启动时的误报。
中文:允许 Kimi 前端加载可信代码。
Pin and verify BFCL 2026.3.23, run four exact V4 cases against OpenAI-compatible chat completions, preserve native diagnostics, and gate the aggregate score at 0.75.

中文:新增确定性的 BFCL 工具调用冒烟评估。固定并校验 BFCL 2026.3.23,针对 OpenAI 兼容的 chat completions 端点运行四个精确的 V4 用例,保留原生诊断产物,并以 0.75 阈值校验汇总分数。
Install the undeclared soundfile dependency required while importing BFCL model handlers.

中文:安装 BFCL 模型处理器导入时所需但上游未声明的 soundfile 依赖。
Replace directly answerable arithmetic cases with current-price and library-search cases that require tool selection and preserve typed arguments.

中文:将可直接回答的算术样例替换为必须选择工具的实时价格与图书馆检索样例,并保留参数类型。
@adibarra adibarra changed the title Add pinned Kimi Vendor Verifier smoke / 添加固定版本的 Kimi Vendor Verifier 冒烟评估 Add portable tool-use verifier smokes / 添加可移植的工具调用验证器冒烟评估 Aug 15, 2026
Preserve verifier diagnostics across launchers, enforce safe reusable-artifact identity, validate BFCL metrics without optional YAML dependencies, and retry only transient Kimi endpoint failures.

中文:强化工具调用评估的失败处理。跨启动器保留验证器诊断信息,严格校验可复用评估产物身份,在缺少可选 YAML 依赖时仍能校验 BFCL 指标,并且仅重试 Kimi 端点的瞬态错误。
@cquil11

cquil11 commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Closed due to inactivity for 30+ days.

@cquil11 cquil11 closed this Sep 25, 2026
@cquil11
cquil11 deleted the feat/tool-use-eval-smoke branch September 25, 2026 05:16
seungrokj added a commit that referenced this pull request Oct 26, 2026
- Image rocm/atom-dev:nightly_202609211553 (ATOM 0.1.7.dev517+g52a6a96fd) -> nightly_202610181506 (ATOM 0.1.8.dev77+gdf86c4829); the atomesh router container_image digest moves from f00a9dc5 (nightly_202609161445) to 1bb1909a, the same nightly as the workers.
- Settings follow the GLM-5.2 recipe in ROCm/ATOM PR 2632 (open; recipe document only, measured on df86c4829).
- Add TP4 C1 (TP4 now C1-C10) and restore the TP4+DCP4 arm at C16-C48 with the LMCache DRAM tier (0.5.6.dev139+gf22dec28), which #3463 dropped with the other search-space entries without an srt-recipe; TP8 C1-C4 unchanged.
- dram-utilization 0.171 -> 0.74, so TOTAL_CPU_DRAM_GB is 1109 GB per TP4 server, covering the 4 x 256 GiB LMCache tier.
- TP4 C1 and C2 run GLM-5.2 mono decode (ATOM_MONO_ENABLE=1) at 3 draft tokens (golden AL 2.99), max-num-seqs equal to the concurrency, graphs [1] and [1,2]; C2 was 5 draft tokens, max-num-seqs 4, graphs [1,2,4].
- Every other point sets ATOM_MONO_ENABLE=0, which the new ATOM defaults on; TP4 C4/C8 (5 drafts, AL 3.61), C10 (4, AL 3.33) and TP8 keep their settings.
- DCP4 points: decode-context-parallel-size 4, ATOM_DCP_PREFILL_QREP=1, LMCache 256 GiB per rank via extra-kv-connectors lmcache_offload, 2x admission, 4 draft tokens (AL 3.33), 3 at C48 (AL 2.99).
- Relevant ATOM changes: GLM-5.2 mono decode (#2479, #2483, #2535); DCP prefill QREP and QREP with MTP (#2437, #2290); DCP prefill fixes with MTP (#2430, #2496, #2506, #2348); MTP verify/draft-graph fixes (#2451, #2367, #2566, #2495); lmcache_offload fixes (#2305, #2339, #2547) and the LMCache pin (#2438).
- Draft data types unchanged: the BF16 MTP layer 78 stays BF16 (excluded from ptpc_fp8 by model.layers.78.*), with the target's FP8 KV and FP4 indexer cache; mono decode covers only target layers 0-77.

- 镜像 rocm/atom-dev:nightly_202609211553(ATOM 0.1.7.dev517+g52a6a96fd)-> nightly_202610181506(ATOM 0.1.8.dev77+gdf86c4829);atomesh router 的 container_image digest 从 f00a9dc5(nightly_202609161445)改为 1bb1909a,与 worker 使用同一 nightly。
- 设置与 ROCm/ATOM PR 2632 中的 GLM-5.2 recipe 一致(该 PR 尚未合并,只改 recipe 文档,测量基于 df86c4829)。
- 新增 TP4 C1(TP4 覆盖 C1-C10),并恢复带 LMCache DRAM 层(0.5.6.dev139+gf22dec28)的 TP4+DCP4 C16-C48 分支;该分支曾在 #3463 中随其他没有 srt-recipe 的搜索空间条目一起被删除。TP8 C1-C4 不变。
- dram-utilization 0.171 -> 0.74,每个 TP4 服务的 TOTAL_CPU_DRAM_GB 为 1109 GB,可容纳 4 x 256 GiB 的 LMCache 层。
- TP4 C1 和 C2 以 3 个 draft token(golden AL 2.99)运行 GLM-5.2 mono decode(ATOM_MONO_ENABLE=1),max-num-seqs 等于并发数,graph 为 [1] 和 [1,2];C2 原为 5 个 draft token、max-num-seqs 4、graph [1,2,4]。
- 其他点位都设置 ATOM_MONO_ENABLE=0(新 ATOM 默认开启);TP4 C4/C8(5 个 draft,AL 3.61)、C10(4 个,AL 3.33)和 TP8 设置不变。
- DCP4 点位:decode-context-parallel-size 4,ATOM_DCP_PREFILL_QREP=1,通过 extra-kv-connectors lmcache_offload 每个 rank 使用 256 GiB LMCache,准入为 2 倍并发,4 个 draft token(AL 3.33),C48 为 3 个(AL 2.99)。
- 相关 ATOM 改动:GLM-5.2 mono decode(#2479、#2483、#2535);DCP prefill QREP 及 QREP 与 MTP 同时使用(#2437、#2290);DCP prefill 与 MTP 的修复(#2430、#2496、#2506、#2348);MTP verify/draft graph 修复(#2451、#2367、#2566、#2495);lmcache_offload 修复(#2305、#2339、#2547)和 LMCache 版本固定(#2438)。
- Draft 数据类型不变:BF16 的 MTP 第 78 层保持 BF16(被 model.layers.78.* 排除在 ptpc_fp8 之外),与 target 共用 FP8 KV cache 和 FP4 indexer cache;mono decode 只覆盖 target 第 0-77 层。

Co-Authored-By: Claude Opus 5.5 <[email protected]>
seungrokj added a commit that referenced this pull request Oct 27, 2026
…181506 / feat(agentx):基于 nightly_202610181506 重新调优 GLM-5.2 FP4 MI355X ATOM recipe (#4308)

* feat(agentx): retune GLM5.2 FP4 MI355X ATOM recipe on _1018 docker

Track the GLM-5.2 standalone recipe of ROCm/ATOM PR 2632 on
rocm/atom-dev:nightly_202610181506.

- TP4 C1/C2 run the GLM-5.2 mono decode at 3 draft tokens (AL 2.99);
  every other point sets ATOM_MONO_ENABLE=0, which ATOM defaults on.
- C1 joins the TP4 arm; C4/C8 stay at MTP5 and C10 at MTP4.
- Restore the TP4+DCP4 arm at C16-C48 with ATOM_DCP_PREFILL_QREP=1 and
  the LMCache DRAM tier at 256 GiB per rank via extra-kv-connectors
  (MTP4, MTP3 at C48).
- dram-utilization 0.171 -> 0.74 so TOTAL_CPU_DRAM_GB (1109 GB) covers
  the 4 x 256 GiB = 1099.5 GB LMCache tier.

中文:按 ROCm/ATOM PR 2632 的 GLM-5.2 单机配方更新 MI355X ATOM AgentX
配置,镜像换为 rocm/atom-dev:nightly_202610181506。TP4 C1/C2 使用
GLM-5.2 mono decode,3 个 draft token(AL 2.99),其余点显式设置
ATOM_MONO_ENABLE=0(ATOM 默认开启);TP4 新增 C1,C4/C8 保持 MTP5,
C10 保持 MTP4。恢复 TP4+DCP4 臂(C16-C48),开启
ATOM_DCP_PREFILL_QREP=1,并通过 extra-kv-connectors 接入每 rank
256 GiB 的 LMCache DRAM 层(MTP4,C48 为 MTP3)。dram-utilization 由
0.171 调为 0.74,使 TOTAL_CPU_DRAM_GB(1109 GB)覆盖
4 x 256 GiB = 1099.5 GB 的 LMCache 层。

Signed-off-by: zhuyuhua-v <[email protected]>

* feat(agentx): cap GLM5.2 FP4 MI355X ATOM TP4 C1/C2 at max-num-seqs CONC

Track ROCm/ATOM PR 2632: TP4 C1 and C2 start the server with max-num-seqs 1
and 2 (exactly CONC) and capture graphs only up to it.

* docs(changelog): rewrite GLM-5.2 FP4 MI355X ATOM block from the diff

- Image rocm/atom-dev:nightly_202609211553 (ATOM 0.1.7.dev517+g52a6a96fd) -> nightly_202610181506 (ATOM 0.1.8.dev77+gdf86c4829); the atomesh router container_image digest moves from f00a9dc5 (nightly_202609161445) to 1bb1909a, the same nightly as the workers.
- Settings follow the GLM-5.2 recipe in ROCm/ATOM PR 2632 (open; recipe document only, measured on df86c4829).
- Add TP4 C1 (TP4 now C1-C10) and restore the TP4+DCP4 arm at C16-C48 with the LMCache DRAM tier (0.5.6.dev139+gf22dec28), which #3463 dropped with the other search-space entries without an srt-recipe; TP8 C1-C4 unchanged.
- dram-utilization 0.171 -> 0.74, so TOTAL_CPU_DRAM_GB is 1109 GB per TP4 server, covering the 4 x 256 GiB LMCache tier.
- TP4 C1 and C2 run GLM-5.2 mono decode (ATOM_MONO_ENABLE=1) at 3 draft tokens (golden AL 2.99), max-num-seqs equal to the concurrency, graphs [1] and [1,2]; C2 was 5 draft tokens, max-num-seqs 4, graphs [1,2,4].
- Every other point sets ATOM_MONO_ENABLE=0, which the new ATOM defaults on; TP4 C4/C8 (5 drafts, AL 3.61), C10 (4, AL 3.33) and TP8 keep their settings.
- DCP4 points: decode-context-parallel-size 4, ATOM_DCP_PREFILL_QREP=1, LMCache 256 GiB per rank via extra-kv-connectors lmcache_offload, 2x admission, 4 draft tokens (AL 3.33), 3 at C48 (AL 2.99).
- Relevant ATOM changes: GLM-5.2 mono decode (#2479, #2483, #2535); DCP prefill QREP and QREP with MTP (#2437, #2290); DCP prefill fixes with MTP (#2430, #2496, #2506, #2348); MTP verify/draft-graph fixes (#2451, #2367, #2566, #2495); lmcache_offload fixes (#2305, #2339, #2547) and the LMCache pin (#2438).
- Draft data types unchanged: the BF16 MTP layer 78 stays BF16 (excluded from ptpc_fp8 by model.layers.78.*), with the target's FP8 KV and FP4 indexer cache; mono decode covers only target layers 0-77.

- 镜像 rocm/atom-dev:nightly_202609211553(ATOM 0.1.7.dev517+g52a6a96fd)-> nightly_202610181506(ATOM 0.1.8.dev77+gdf86c4829);atomesh router 的 container_image digest 从 f00a9dc5(nightly_202609161445)改为 1bb1909a,与 worker 使用同一 nightly。
- 设置与 ROCm/ATOM PR 2632 中的 GLM-5.2 recipe 一致(该 PR 尚未合并,只改 recipe 文档,测量基于 df86c4829)。
- 新增 TP4 C1(TP4 覆盖 C1-C10),并恢复带 LMCache DRAM 层(0.5.6.dev139+gf22dec28)的 TP4+DCP4 C16-C48 分支;该分支曾在 #3463 中随其他没有 srt-recipe 的搜索空间条目一起被删除。TP8 C1-C4 不变。
- dram-utilization 0.171 -> 0.74,每个 TP4 服务的 TOTAL_CPU_DRAM_GB 为 1109 GB,可容纳 4 x 256 GiB 的 LMCache 层。
- TP4 C1 和 C2 以 3 个 draft token(golden AL 2.99)运行 GLM-5.2 mono decode(ATOM_MONO_ENABLE=1),max-num-seqs 等于并发数,graph 为 [1] 和 [1,2];C2 原为 5 个 draft token、max-num-seqs 4、graph [1,2,4]。
- 其他点位都设置 ATOM_MONO_ENABLE=0(新 ATOM 默认开启);TP4 C4/C8(5 个 draft,AL 3.61)、C10(4 个,AL 3.33)和 TP8 设置不变。
- DCP4 点位:decode-context-parallel-size 4,ATOM_DCP_PREFILL_QREP=1,通过 extra-kv-connectors lmcache_offload 每个 rank 使用 256 GiB LMCache,准入为 2 倍并发,4 个 draft token(AL 3.33),C48 为 3 个(AL 2.99)。
- 相关 ATOM 改动:GLM-5.2 mono decode(#2479、#2483、#2535);DCP prefill QREP 及 QREP 与 MTP 同时使用(#2437、#2290);DCP prefill 与 MTP 的修复(#2430、#2496、#2506、#2348);MTP verify/draft graph 修复(#2451、#2367、#2566、#2495);lmcache_offload 修复(#2305、#2339、#2547)和 LMCache 版本固定(#2438)。
- Draft 数据类型不变:BF16 的 MTP 第 78 层保持 BF16(被 model.layers.78.* 排除在 ptpc_fp8 之外),与 target 共用 FP8 KV cache 和 FP4 indexer cache;mono decode 只覆盖 target 第 0-77 层。

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* eval(agentx): cover GLM-5.2 mono decode with a TP4 C2 GSM8K

The default agentic selector evals only the highest concurrency, DCP4 C48,
where ATOM_MONO_ENABLE is 0. TP4 C1/C2 are the points that turn the new
mono-decode kernel on, so add an evals-only key whose highest point is C2.

Co-authored-by: Cursor <[email protected]>

---------

Signed-off-by: zhuyuhua-v <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: seungrokj <[email protected]>
Co-authored-by: seungrokj <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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