Skip to content

feat(agentx): add single-node TP8 mono points to the GLM-5.2 MI355X ATOM curve / feat(agentx):GLM-5.2 MI355X ATOM 曲线新增单机 TP8 mono 测试点 - #5120

Merged
adibarra merged 9 commits into
mainfrom
jasen/glm52-mi355x-atom-tp8-mono-lowconc
Nov 24, 2026
Merged

adibarra merged 9 commits into
mainfrom
jasen/glm52-mi355x-atom-tp8-mono-lowconc

Conversation

@Jasen2201

@Jasen2201 Jasen2201 commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The GLM-5.2 MI355X AToMesh + ATOM curve from #4045 starts at concurrency 12, on a four-node 1P3D layout. Below that a single node decodes faster than any prefill/decode split, and ATOM's GLM-5.2 mono decode now serves the BF16 attention that amd/GLM-5.2-MXFP4 ships with (ROCm/ATOM#3266). This PR puts single-node TP8 points at concurrency 1 and 2 on the curve and drops the disaggregated points they supersede.

  • New single-node points. glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg runs one TP8 server per point at concurrency 1 and 2 (agg-tp8-mtp3-mono.yaml). It and the disaggregated entry use framework: atom, so the single-node and disaggregated ATOM points form one curve.
    • The server runs ATOM's GLM-5.2 mono decode (ATOM_MONO_ENABLE=1), with the DSA indexer mono decode on an FP8 index cache.
    • MTP uses three draft tokens at the golden acceptance 2.99. The server admits 2 requests and captures graphs at 1 and 2.
  • Disaggregated points. 1P1D C128, 1P3D C12 and 1P3D C16 are removed. 1P1D C56/C72/C96/C112, 1P2D C56 and 1P3D C24 keep their recipes.
    • Their prefill and decode roles now set ATOM_MONO_ENABLE=0. GLM-5.2 mono serves only decode batches of 1-2 and does not refuse a P/D connector, so their decode stays on the path the previous image ran.
  • Image. Both entries move to rocm/atom-dev:nightly_202611171508 (ROCm/ATOM 5f3ae2b5b, Mooncake 206d634), pinned by digest. The AToMesh router moves to the same ATOM commit.
  • Precision. Weights run as shipped in amd/GLM-5.2-MXFP4, with no online quantization, and the KV cache is FP8. AITER quick reduce is unset. The mono decode's all-reduce exchanges BF16 partials and sums them in FP32.
  • Draft data types: as shipped. The MTP draft (model.layers.78) ships all BF16 and runs through the image defaults with no draft override. It shares the target's FP8 KV cache, and the mono decode covers only the target layers.
Validation details

InferenceX CI: sweep 45121043365 on 5f1e318 passed every point (TP8 C1/C2, 1P1D C56/C72/C96/C112, 1P2D C56, 1P3D C24) and its evals.

GSM8K with InferenceX's own eval, run on one pit2 MI355X node outside InferenceX CI:

  • Setup: lm-eval b315ef3b, infx/evals/gsm8k.yaml with the eval patch, local-chat-completions with the chat template, max_tokens 16384, num_concurrent 2, real acceptance. The server used this PR's TP8 recipe arguments, all 1319 questions.
Server strict flexible
TP8 mono, ATOM 5f3ae2b5b source on nightly_202611151511 0.9682 0.9704
TP8 mono, nightly_202611171508 as shipped 0.9735 0.9742
TP4 mono, same source and image 0.9682 0.9704
TP4 production decode (ATOM_MONO_ENABLE=0), same source and image 0.9704 0.9735
Reference: 1P3D C16 eval of sweep 42972857386 0.9712 0.9719
  • Paired per question (McNemar), no two rows differ: every p is 0.17 or above. TP4 against TP8 with mono on the same image is 13 : 13.
  • Every mono server logged GLM-5.2 MonoKernel on with no fallback.
AI model disclosure
  • Model/version: claude-opus-5-5 (Claude Opus 5.5), running in Claude Code.
  • Role:
    • Read InferenceX's eval, threshold and curve-grouping code.
    • Reproduced the InferenceX GSM8K eval on a pit2 node and ran the TP4/TP8 mono on/off comparison.
    • Wrote the recipe, the master config changes and the perf-changelog entry, and wrote this description.
    • Checked the MTP draft's data types against the checkpoint headers and ATOM 5f3ae2b5b, added the draft data-type line to the perf-changelog entry, and added the CI sweep link to this description.
PR checklist and change type

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
  • For every change that can affect benchmark performance and every recipe addition or modification, I have appended a new entry to the physical end of inferencex-e2e/perf-changelog.yaml and have not edited historical entries
  • If this PR can affect benchmark performance or adds or modifies a recipe, 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.
中文

概要

#4045 的 GLM-5.2 MI355X AToMesh + ATOM 曲线从并发 12 开始,使用四节点 1P3D 布局。在更低的并发下,单节点的 decode 比任何预填充/解码分离方案都快;而且 ATOM 的 GLM-5.2 mono decode 现在已能直接服务 amd/GLM-5.2-MXFP4 按发布原样的 BF16 attention(ROCm/ATOM#3266)。本 PR 在曲线上加入并发 1 和 2 的单机 TP8 测试点,并删除被它们取代的分离式测试点。

  • 新增单机测试点。 glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg 在并发 1 和 2 下各用一台 TP8 服务端(agg-tp8-mtp3-mono.yaml)。它与分离式条目都使用 framework: atom,因此单机和分离式的 ATOM 测试点归入同一条曲线。
    • 服务端运行 ATOM 的 GLM-5.2 mono decode(ATOM_MONO_ENABLE=1),并在 FP8 index cache 上运行 DSA indexer mono decode。
    • MTP 使用 3 个草稿 token,接受长度固定为 golden 值 2.99。每个服务端最多同时接纳 2 个请求,CUDA graph 捕获大小为 1 和 2。
  • 分离式测试点。 删除 1P1D C128、1P3D C12 和 1P3D C16。1P1D C56/C72/C96/C112、1P2D C56 和 1P3D C24 的配方保持不变。
    • 它们的预填充和解码角色现在设置 ATOM_MONO_ENABLE=0。GLM-5.2 mono 只服务 batch 为 1-2 的 decode,且不会拒绝 P/D connector;关闭它可使这些点的 decode 保持在上一版镜像运行的路径上。
  • 镜像。 两个条目都改用 rocm/atom-dev:nightly_202611171508(ROCm/ATOM 5f3ae2b5b,Mooncake 206d634),按 digest 固定。AToMesh router 也改为同一 ATOM commit。
  • 精度。 权重按 amd/GLM-5.2-MXFP4 发布原样运行,不做在线量化,KV cache 为 FP8。未设置 AITER quick reduce。mono decode 的 all-reduce 交换 BF16 部分和,并以 FP32 求和。
  • 草稿模型数据类型:按发布原样。 MTP 草稿模型(model.layers.78)发布时全部为 BF16,通过镜像默认处理运行,没有任何草稿相关覆盖。它与目标模型共用 FP8 KV cache;mono decode 只覆盖目标模型的层。

InferenceX CI: sweep 45121043365 在 5f1e318 上运行,所有测试点(TP8 C1/C2、1P1D C56/C72/C96/C112、1P2D C56、1P3D C24)及其评测全部通过。

验证细节: 在一台 pit2 MI355X 节点上(InferenceX CI 之外),用 InferenceX 自己的 GSM8K 评测运行全部 1319 题。评测配置为:lm-eval b315ef3b、infx/evals/gsm8k.yaml 加评测补丁、local-chat-completions 并应用 chat template、max_tokens 16384、num_concurrent 2、真实接受率;服务端使用本 PR 的 TP8 配方参数。结果如下:

  • TP8 mono:0.9682 / 0.9704(strict / flexible)。
  • 按原样使用 nightly_202611171508 的 TP8 mono:0.9735 / 0.9742。
  • TP4 mono:0.9682 / 0.9704。
  • TP4 生产 decode 路径:0.9704 / 0.9735。
  • 参考:sweep 42972857386 的 1P3D C16:0.9712 / 0.9719。

逐题配对(McNemar 检验)下,任意两行之间都没有显著差异(p 均不低于 0.17);同一镜像下 TP4 与 TP8 mono 为 13 : 13。

…TOM curve

Add glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg: one TP8 node at
concurrency 1 and 2 running ATOM's GLM-5.2 mono decode on the shipped BF16
attention (ROCm/ATOM#3266), the DSA indexer mono decode on an FP8 index
cache and MTP at three draft tokens. framework atom-disagg with disagg
false puts these points on the disaggregated points' mooncake-atom series.

Drop 1P1D concurrency 128 and 1P3D concurrency 12 and 16, pin
ATOM_MONO_ENABLE=0 on the disaggregated roles, and move both entries to
rocm/atom-dev:nightly_202611171508 (ATOM 5f3ae2b5b).

为 GLM-5.2 MI355X ATOM 曲线新增单机 TP8 mono 测试点:新增
glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg,单台 TP8 节点在并发 1 和 2
下运行 ATOM 的 GLM-5.2 mono decode(按发布原样的 BF16 attention,
ROCm/ATOM#3266)、FP8 index cache 上的 DSA indexer mono decode,以及 3 个
草稿 token 的 MTP。framework 为 atom-disagg 且 disagg 为 false,使这些
测试点与分离式测试点同属 mooncake-atom 曲线。删除 1P1D 并发 128 与 1P3D
并发 12、16,分离式各角色固定 ATOM_MONO_ENABLE=0,两个条目均改用
rocm/atom-dev:nightly_202611171508(ATOM 5f3ae2b5b)。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

将 GLM-5.2 TP8 mono 条目的链接指向 #5120。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jasen2201 Jasen2201 added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 17, 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.

Comment thread inferencex-e2e/configs/amd-master.yaml Resolved
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Jasen2201 and others added 2 commits November 23, 2026 04:29
…reflight-20261123

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
…limit

Slurm now starts job steps on the MI355X nodes with an 8 MiB RLIMIT_MEMLOCK
soft limit; the hard limit is unlimited. The ionic driver charges each GPU KV
registration against the soft limit before it falls back to peer memory, and
the remapped container root has no CAP_IPC_LOCK, so every Mooncake KV
registration of the ATOM P/D workers failed with ENOMEM. A setup script lifts
the worker shell's soft limit to the hard limit before ATOM starts, as the
vLLM and SGLang Mooncake recipes already do.

中文:MI355X 节点上 Slurm 现在以 8 MiB 的 RLIMIT_MEMLOCK soft limit 启动作业
(hard limit 为 unlimited)。ionic 驱动在回退到 peer memory 之前,会先把每次
GPU KV 注册计入 soft limit;容器内 remap 的 root 没有 CAP_IPC_LOCK,因此 ATOM
P/D worker 的每次 Mooncake KV 注册都以 ENOMEM 失败。新增的 setup script 在 ATOM
启动前把 worker shell 的 soft limit 提到 hard limit,与 vLLM、SGLang 的 Mooncake
配方做法一致。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ATOM AgentX entry

- The MTP draft (model.layers.78) ships in BF16 and is excluded from the checkpoint's MXFP4 quantization, so ATOM loads it in BF16 at both the old and new commit; its KV cache keeps the target's FP8, as before.

- MTP 草稿层(model.layers.78)以 BF16 发布,并被排除在检查点的 MXFP4 量化之外,因此 ATOM 在新旧两个提交中都以 BF16 加载它;其 KV 缓存仍与目标模型一致使用 FP8,与之前相同。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@seungrokj

seungrokj commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Draft data types: no change. The MTP draft (model.layers.78 in amd/GLM-5.2-MXFP4 @ 386bd0e4, num_nextn_predict_layers: 1) ships unquantized. All 781 model.layers.78.* modules are in the checkpoint's Quark MXFP4 quantization_config.exclude list. The safetensors headers (shards 00270-00274) show:

Part Data type
eh_proj, attention q_a_proj / q_b_proj / kv_a_proj_with_mqa / kv_b_proj / o_proj BF16
DSA indexer wq_b / wk / weights_proj BF16
Shared expert and 256 routed experts BF16
Router gate, enorm / hnorm / shared_head.norm and the other norms BF16
mlp.gate.e_score_correction_bias F32

The target, by contrast, runs MXFP4 routed experts with BF16 attention.

At ATOM 5f3ae2b5b, the image's org.opencontainers.image.revision:

  • glm_moe_dsa drafts with deepseek_mtp.
  • Every draft layer is built with the checkpoint quant config (deepseek_mtp.py L79-L80, L104).
  • get_layer_quant_config returns the unquantized model dtype for an excluded layer, so each draft layer loads in BF16.
  • The recipes set no --online_quant_config, no --quantization and no draft dtype or draft KV-dtype override.
  • The draft's KV dtype is resolve_draft_kv_dtype, which returns the target's fp8. Only an own-pool draft under an FP4 target is switched to BF16. The proposer applies that value at eagle_proposer.py L251.

The old image's ATOM 920a200a3 loads the draft the same way (config.py L458, deepseek_mtp.py L79-L80). There the draft copied the target config, fp8 KV included (eagle_proposer.py L242).

So the draft runs as shipped before and after this PR: BF16 weights and activations, plus an FP8 KV cache that is the same dtype as the target's. The GLM-5.2 mono decode (atom/models/glm52/mono) runs the target's verify pass and does not touch the draft.

Accuracy-sensitive optimizations: not checked in this pass. The #4705 optimization list was skipped at the reviewer's request.

Eval coverage of the GLM-5.2 mono decode: covered. The TP8 C2 eval job 137900414548 (run 45121043365 on 5f1e318, GSM8K strict 0.9712, flexible 0.9704) served from a server that ran the mono kernels. The log is mia1-p01-g19_agg_w0.out inside multinode_server_logs.tar.gz of its artifact 14881187873:

2188: [atom 01:00:22] GLM-5.2 mono decode on            (x8, one per TP rank)
2196: [atom 01:01:19] GLM-5.2 MonoKernel on: atom::glm5_mono_s8_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
2205: [atom 01:02:02] GLM-5.2 MonoKernel on: atom::glm5_mono_s4_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
  • MonoKernel on names the kernels that a width's first step launched (runner.py L793). s8 is the two-request MTP3 verify and s4 the one-request verify, the two widths the C2 eval can run (max-num-seqs: 2, capture sizes [1,2]).
  • The log has 11,763 lines and runs through the end of the eval, with 1,319 POST /v1/chat/completions requests. It has no GLM-5.2 MonoKernel off line (dispatch.py L81) and no GLM-5.2 MonoKernel fallback before launch line (runner.py L559, L767).
  • Both widths were armed during CUDA graph capture (Capturing bs=2 / bs=1, max_q_len=4), before the eval started at 01:18:24. The per-step eligibility checks in supports() and step_refusal / kv_caches_ok test only input layouts, the KV-cache dtype and batch sizes in AGENTX_BATCHES, and these are the same at capture and while serving. So the eval's decode steps at batch 1 and 2 replay graphs that contain the mono launch.
  • The C1 and C2 benchmark servers of the same run log the same two MonoKernel on lines and no off or fallback lines (artifacts 14797771999 and 14803362207).
中文

草稿模型数据类型:无变化。 MTP 草稿层(amd/GLM-5.2-MXFP4 @ 386bd0e4 中的 model.layers.78,num_nextn_predict_layers: 1)以未量化形式发布。全部 781 个 model.layers.78.* 模块都在检查点 Quark MXFP4 quantization_config.exclude 列表中。safetensors 头部(分片 00270-00274)显示:

部分 数据类型
eh_proj、attention q_a_proj / q_b_proj / kv_a_proj_with_mqa / kv_b_proj / o_proj BF16
DSA indexer wq_b / wk / weights_proj BF16
共享专家及 256 个路由专家 BF16
路由 gate、enorm / hnorm / shared_head.norm 及其他 norm BF16
mlp.gate.e_score_correction_bias F32

作为对比,目标模型的路由专家为 MXFP4,attention 为 BF16。

在 ATOM 5f3ae2b5b(镜像的 org.opencontainers.image.revision)中:

  • glm_moe_dsa 使用 deepseek_mtp 作为草稿模型。
  • 每个草稿层都用检查点的量化配置构建(deepseek_mtp.py L79-L80、L104)。
  • 对于被排除的层,get_layer_quant_config 返回未量化的模型 dtype,因此每个草稿层都以 BF16 加载。
  • 配方未设置 --online_quant_config、--quantization,也没有任何草稿 dtype 或草稿 KV dtype 覆盖。
  • 草稿的 KV dtype 由 resolve_draft_kv_dtype 决定,返回目标模型的 fp8;只有在 FP4 目标下拥有独立缓存池的草稿才会改为 BF16。该值在 eagle_proposer.py L251 应用到 proposer。

旧镜像的 ATOM 920a200a3 以同样方式加载草稿层(config.py L458、deepseek_mtp.py L79-L80)。当时草稿复制了目标模型的配置,包括 fp8 KV(eagle_proposer.py L242)。

因此本 PR 前后草稿都按发布原样运行:权重和激活为 BF16,KV cache 为 FP8,与目标模型的 dtype 相同。GLM-5.2 mono decode(atom/models/glm52/mono)运行目标模型的验证步骤,不涉及草稿层。

精度敏感优化:本次未检查。 应评审者要求,跳过了 #4705 的优化列表检查。

GLM-5.2 mono decode 的评测覆盖:已覆盖。 TP8 C2 评测作业 137900414548(run 45121043365,5f1e318,GSM8K strict 0.9712,flexible 0.9704)所用的服务端运行了 mono kernel。日志为其 artifact 14881187873 中 multinode_server_logs.tar.gz 内的 mia1-p01-g19_agg_w0.out:

2188: [atom 01:00:22] GLM-5.2 mono decode on            (x8,每个 TP rank 一行)
2196: [atom 01:01:19] GLM-5.2 MonoKernel on: atom::glm5_mono_s8_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
2205: [atom 01:02:02] GLM-5.2 MonoKernel on: atom::glm5_mono_s4_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
  • MonoKernel on 列出某个宽度首个 step 实际启动的 kernel(runner.py L793)。s8 是两个请求的 MTP3 验证,s4 是单请求验证,即 C2 评测可能运行的两种宽度(max-num-seqs: 2,捕获大小 [1,2])。
  • 该日志共 11,763 行,一直持续到评测结束,包含 1,319 个 POST /v1/chat/completions 请求。其中没有 GLM-5.2 MonoKernel off(dispatch.py L81),也没有 GLM-5.2 MonoKernel fallback before launch(runner.py L559、L767)。
  • 两种宽度都在 CUDA graph 捕获期间(Capturing bs=2 / bs=1,max_q_len=4)启用,早于 01:18:24 开始的评测。supports() 和 step_refusal / kv_caches_ok 中的逐步检查只涉及输入布局、KV cache dtype 以及 batch 是否属于 AGENTX_BATCHES,这些在捕获时与服务时相同。因此评测中 batch 为 1 和 2 的 decode 步回放的是包含 mono 启动的 graph。
  • 同一 run 的 C1、C2 基准服务端也记录了同样两行 MonoKernel on,且没有 off 或 fallback(artifact 14797771999、14803362207)。

@seungrokj seungrokj left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Checklist items
  • Verified that as of the moment of typing this, this is the latest version of PR_REVIEW_CHECKLIST.md
  • Verified that the general code quality meets the InferenceX standard and does not make the code quality any worse.
  • Verified that this PR has passed PR validation. Please link to GitHub Action workflow that shows this.
  • Verified that this PR passes evals. Please link to GitHub Action workflow that shows this.
  • Verified that speculative decoding PRs uses chat templates to align the AL distribution to real world
  • Verified that every draft model and draft head is served as it ships: the draft that ships with the served checkpoint, at its stored precision, through the pinned upstream image's default handling, with the shipped and effective draft precision recorded in the additional detail section. No submission-side quantization, dtype override, checkpoint substitution, or patch may lower draft precision below that default, regardless of eval results or AL; the only exception is a draft KV-cache dtype allowed by the draft KV-cache rule in Draft-model precision. Explicitly verified that SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not enabled in the effective recipe, including inherited settings; enabling it is prohibited going forward, and historical runs do not grant an exception. See Draft-model precision for what counts as the default and the MLPerf comparison.
  • For agentic workloads: verified that speculative-decoding configs (EAGLE / MTP / draft models) run with simulated synthetic acceptance, with the acceptance-length value taken from the committed golden AL curve in infx/golden_al_distribution/ for that model, thinking mode, and draft length. A submission may choose any supported draft length, but it may not substitute a different acceptance target.
  • Verified against the current MODELS.md that this PR does not submit a deprecated model, scenario, or model-scenario combination.
  • Verified that the model architecture isn't changed with benchmark hacks like using --hf-overrides to skipping indexer for every x layers on models that don't natively support this. As a general rule, we won't accept optimizations that reduces the number of model architecture FLOPs. Anything that makes that same computation run faster is fair game; target/verifier FLOPs at lower precisions is fine, given that the config passes private evals, but this does not permit lowering draft-model or draft-head precision below what ships. As an general north star princple, we should only use optimizations which is used in production by customers that care about accuracy
  • Verified that new models disable integer all-reduce, with SGLang ROCm explicitly setting ROCM_QUICK_REDUCE_QUANTIZATION=NONE. Existing models are grandfathered per MODELS.md.
  • For affected Dynamo TRT-LLM benchmarks, verified that iteration/KV-cache metrics are collected and published under the pinned Dynamo implementation and effective engine settings. Resolve the installed Dynamo version separately from the container tag; use supported metrics controls without requiring KV events. Record the version and configuration evidence in the additional detail section. See verifier Check 17. N/A for unaffected serving paths or frameworks without these Dynamo settings.
  • If an company claims that they support vLLM/SGLang as first class LLM inference engines on their hardware, I have verified that the respective vLLM submission made using upstream https://hub.docker.com/u/vllm docker repo, upstream SGLang https://hub.docker.com/u/lmsysorg docker repo. The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet as supported by vLLM/SGLang community maintainers
  • For official InferenceX (non-preview), verified that established models use official upstream engine images built from main or master (or the equivalent default development branch), or meet the community-engine branch exception: the upstream maintainers (Inferact for vLLM, RadixArk for SGLang, and LightSeek for TokenSpeed) approve the branch/image for the submission, the upstream PRs must merge in a timely manner after submission, and the submission must then move to a main-branch image. For this exception, linked the upstream PRs, maintainer approval, and image build/source provenance in the additional detail section. New models using model-enablement branches must transition within a reasonable time after release. See MODELS.md.
  • If an company claims that they support vLLM/SGLang as first class upstream in-tree LLM inference engines on their hardware, I have have verified that the respective vLLM/SGLang submission has been made before additional frameworks (TRT-LLM, ATOM, etc.). The only exceptions are for new hardware, such as MI455X UALoE72, Vera Rubin NVL72, Rubin NVL8, etc., and for new model architectures where there is an actual reason why vLLM/SGLang does not fundamentally support them yet.
  • Verified that every affected vLLM/SGLang production serving configuration in this PR, including Dynamo deployments, is documented in the official vLLM recipes and/or the SGLang cookbook, for both single-node and multi-node aggregated and disaggregated serving. The documentation covers production-useful flags, environment variables, and launch commands (including prefill, decode, and router/frontend commands for disaggregation); InferenceX-only benchmark/harness settings are excluded with reasoning in the additional detail section:
    • I linked the corresponding upstream PR in the vLLM recipe repo or SGLang cookbook source repo and verified that it is MERGED before this InferenceX PR merges. An opened, draft, or closed-without-merge upstream PR does not satisfy this requirement. If the matching recipe was already published, I linked the published recipe/cookbook page in the additional detail section below.
  • Verified that this PR does not patch the inference engine or serving stack — the pinned image must run as shipped. This covers .patch files / git apply / patch, inline patches embedded in benchmark scripts (e.g. a python3/sed heredoc that rewrites installed engine sources before serving), in-place edits of site-packages, monkey-patching, overwriting container files, and installing forked/rebuilt engine wheels on top of the pinned image. The only exception is a patch covered by a filled-out waiver at docs/waiver/<PR_NUMBER>.md — named after the PR that introduces the patch and filed in that same PR, stating what is patched, why the unmodified upstream image cannot run this benchmark, the upstream PR/issue link, and the removal plan — which I have linked below in the additional detail section.
  • If this PR uses append-only: true, verified that it only adds generated points or recipe variants inside a selected existing config/scenario and existing same-image visual curve: every previously generated point remains present with the same recipe, no prior point is removed or rerun, and every benchmark-affecting change in the complete diff can affect only the corresponding newly appended points (never an existing point), regardless of which file contains it.
  • If any of the above criteria cannot reasonably be satisfied, I have provided additional reasoning below.
  • Reported measured throughput/E2EL Pareto counts and evidence per affected curve (≥5 points strongly recommended). Below 5 or unverifiable: tag a core maintainer for review; recorded admin bypass required before merge. N/A if no curves are affected. Details.

Additional detail section:

Signed: seungrokj

@Jasen2201

Copy link
Copy Markdown
Collaborator Author

Needs ruling from @seungrokj: please confirm the Check 2 log lines below against the artifact.

TP8 C2 eval job 137900414548, artifact 14881187873 (digest sha256:e767c948f6238b658149cfe209a999aa66360fc61a068bc65ba1b8067fbddc99), member ./mia1-p01-g19_agg_w0.out of multinode_server_logs.tar.gz, 11,763 lines:

2188:[atom 01:00:22] GLM-5.2 mono decode on      (lines 2188-2195, one per TP rank)
2196:[atom 01:01:19] GLM-5.2 MonoKernel on: atom::glm5_mono_s8_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
2205:[atom 01:02:02] GLM-5.2 MonoKernel on: atom::glm5_mono_s4_tp8_n75_ix0_cp0_dcp1_kvfp8_awbf16_absorb_fp8_t0
4366:INFO:     10.24.112.110:33952 - "POST /v1/chat/completions HTTP/1.1" 200 OK   (first of 1,319 eval requests)
11749:INFO:     10.24.112.110:33952 - "POST /v1/chat/completions HTTP/1.1" 200 OK  (last)

Counts in the file: GLM-5.2 MonoKernel on 2, GLM-5.2 MonoKernel off 0, fallback before launch 0, POST /v1/chat/completions 1,319.

Reproduce
gh api repos/SemiAnalysisAI/InferenceX/actions/artifacts/14881187873/zip > a.zip
unzip -q a.zip && tar -xzf multinode_server_logs.tar.gz ./mia1-p01-g19_agg_w0.out
grep -nE 'GLM-5.2 (mono decode|MonoKernel)' mia1-p01-g19_agg_w0.out
grep -cE 'GLM-5.2 MonoKernel off|fallback before launch' mia1-p01-g19_agg_w0.out   # 0
grep -c 'POST /v1/chat/completions' mia1-p01-g19_agg_w0.out                        # 1319

Comment thread inferencex-e2e/configs/amd-master.yaml Resolved
@functionstackx functionstackx removed the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 24, 2026
Both GLM-5.2 MI355X ATOM entries, the disaggregated one and the new
single-node TP8 one, use framework atom instead of atom-disagg, so their
points join the other single-node ATOM points on one curve per engine.
The config keys keep their names.

中文:GLM-5.2 MI355X 的两个 ATOM 条目(分离式条目和新增的单机 TP8 条目)
改用 framework atom 而不是 atom-disagg,使它们的测试点与其他单机 ATOM
测试点归入同一条曲线(每个引擎一条曲线)。config key 名称保持不变。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Nov 24, 2026
@Jasen2201 Jasen2201 added the full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures label Nov 24, 2026
@Jasen2201

Copy link
Copy Markdown
Collaborator Author

Round 2 pushed 08c2396: both GLM-5.2 MI355X ATOM entries now use framework: atom, and the PR is re-sweeping in 45336404306.

Run 45121043365 was swept while the entries said atom-disagg, so reusing it would publish its points on the Mooncake ATOMesh curve. The new run publishes them on the ATOM curve. Please use the new run for /use once it is green.

@seungrokj

Copy link
Copy Markdown
Collaborator

/use 45336404306

@seungrokj

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 45336404306

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

@seungrokj staged run 45336404306.

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

- Resolve the perf-changelog.yaml conflict by taking main's file and appending this PR's block as the last entry; historical entries are byte-identical to main.
- amd-master.yaml auto-merged; the GLM-5.2 MI355X ATOM configs still generate.

- 解决 perf-changelog.yaml 冲突:采用 main 的文件,并把本 PR 的条目追加到末尾;历史条目与 main 逐字节一致。
- amd-master.yaml 自动合并;GLM-5.2 MI355X ATOM 配置仍能正常生成。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Nov 24, 2026
…ly_202611171508 [skip-sweep]

- Update both entries from rocm/atom-dev:nightly_202611110332 (ATOM 920a200a3) to rocm/atom-dev:nightly_202611171508 (ATOM 5f3ae2b5b, Mooncake 206d634), pinned by digest, and move the AToMesh router from 920a200a3 to the same ATOM commit.
- Add single-node TP8 points at concurrency 1 and 2 (new key glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg). Both entries now use framework atom instead of atom-disagg, so the single-node and disaggregated ATOM points form one curve.
- Drop 1P1D concurrency 128 and 1P3D concurrency 12 and 16. 1P1D 56, 72, 96 and 112, 1P2D 56 and 1P3D 24 remain.
- The TP8 server runs ATOM's GLM-5.2 mono decode (ATOM_MONO_ENABLE=1) and the DSA indexer mono decode on FP8 KV and index caches, with MTP at three draft tokens and the golden acceptance 2.99. It admits 2 requests, captures graphs at 1 and 2, and uses max-num-batched-tokens 16384 and gpu-memory-utilization 0.95.
- The disaggregated points keep their recipes and set ATOM_MONO_ENABLE=0 on prefill and decode, so their decode stays on the path the previous image ran.
- The disaggregated workers raise RLIMIT_MEMLOCK's soft limit to the hard limit before they start (setup script raise-memlock-soft-limit.sh). Slurm sets the soft limit to 8 MiB, and the ionic driver charges every GPU KV registration against it before falling back to peer memory, so without the raise each Mooncake KV registration fails with ENOMEM.
- Weights run as shipped in amd/GLM-5.2-MXFP4 with no online quantization, AITER quick reduce is unset, and the mono decode's all-reduce sums BF16 partials in FP32.
- Relevant ATOM changes in the image: ROCm/ATOM#3266 (GLM-5.2 mono decode on the checkpoint's BF16 attention), #3350 (mono mailbox polling stalls during concurrent transfers), #3043 (FP8 indexer prefill logits and key gathers in bounded passes), #3097 and #3324 (shared Mooncake Store loads and restores) and #3147 (P/D decode admission bounded by pending receive KV bytes).
- Draft data types: no change. The MTP draft (model.layers.78) ships in BF16 and is excluded from the checkpoint's MXFP4 quantization, so ATOM loads it in BF16 at both the old and new commit; it shares the target's FP8 KV cache, as before.

- 两个条目的镜像从 rocm/atom-dev:nightly_202611110332(ATOM 920a200a3)更新为 rocm/atom-dev:nightly_202611171508(ATOM 5f3ae2b5b,Mooncake 206d634),按 digest 固定;AToMesh router 也从 920a200a3 改为同一 ATOM commit。
- 新增并发 1 和 2 的单机 TP8 测试点(新键 glm5.2-fp4-mi355x-atom-disagg-agentic-mtp-agg)。两个条目的 framework 都由 atom-disagg 改为 atom,使单机与分离式 ATOM 测试点归入同一条曲线。
- 删除 1P1D 并发 128 以及 1P3D 并发 12 和 16。保留 1P1D 56、72、96、112,1P2D 56 和 1P3D 24。
- TP8 服务端运行 ATOM 的 GLM-5.2 mono decode(ATOM_MONO_ENABLE=1)和 DSA indexer mono decode,KV cache 与 index cache 均为 FP8;MTP 使用 3 个草稿 token,golden 接受长度为 2.99。最多接纳 2 个请求,graph 捕获大小为 1 和 2,max-num-batched-tokens 16384,gpu-memory-utilization 0.95。
- 分离式测试点保留原配方,并在预填充与解码上设置 ATOM_MONO_ENABLE=0,使其 decode 保持在上一版镜像运行的路径上。
- 分离式 worker 启动前把 RLIMIT_MEMLOCK 的软限制提升到硬限制(setup 脚本 raise-memlock-soft-limit.sh)。Slurm 把软限制设为 8 MiB,而 ionic 驱动在回退到 peer memory 之前会把每次 GPU KV 注册计入该限制;不提升的话,每次 Mooncake KV 注册都会以 ENOMEM 失败。
- 权重按 amd/GLM-5.2-MXFP4 发布原样运行,不做在线量化;未设置 AITER quick reduce;mono decode 的 all-reduce 以 FP32 累加 BF16 部分和。
- 镜像中相关的 ATOM 改动:ROCm/ATOM#3266(在 checkpoint 的 BF16 attention 上运行 GLM-5.2 mono decode)、#3350(并发传输时的 mono mailbox 轮询卡顿)、#3043(FP8 indexer 预填充 logits 与 key gather 分批进行)、#3097 和 #3324(共享 Mooncake Store 的加载与恢复)以及 #3147(按待接收 KV 字节数限制 P/D decode 的准入)。
- 草稿模型数据类型:不变。MTP 草稿(model.layers.78)以 BF16 发布,并被排除在 checkpoint 的 MXFP4 量化之外,因此 ATOM 在新旧 commit 下都以 BF16 加载它;它与目标模型共用 FP8 KV cache,与之前相同。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Verdict: WARN ⚠️

⚠️ Check 18 (Recipe consistency): WARN — Image bump nightly_202611110332 → nightly_202611171508 regresses P90 metrics on unchanged disagg recipes by more than 10% versus old-image run 42972857386 (00005f5), new run 45336404306: 1P1D C56 P90 TTFT 2.003 → 2.254 s (+12.5%); 1P1D C96 P90 TTFT 8.435 → 9.882 s (+17.2%) and P90 E2E normalized interactivity 18.00 → 15.80 tok/s/user (-12.2%); 1P2D C56 P90 TTFT 1.885 → 2.156 s (+14.4%). tput_per_gpu is within -2.7% to +0.6% on all retained points. (a)-(e), (g) and (i) pass: keys generate, the image resolves by digest, the router and Mooncake are commit-pinned, and the removed points (1P1D C128 is dominated by 1P1D C72; 1P3D C12/C16 sit under the TP8 C2–1P3D C24 segment) are covered. ATOM exposes no stream-interval knob and streams per engine step.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — seungrokj is a specific owner of inferencex-e2e/configs/amd-master.yaml and the **/mi355x-*/ recipes; configs/raise-memlock-soft-limit.sh and perf-changelog.yaml fall only under the catch-all.

✅ Check 1 (Sweep on in-PR commit): PASS — Every executed benchmark and eval check-run passed on in-PR commit 08c2396 (run 45336404306, attempt 2). The later commits are not material: the merges f9b420d/85f0e58 move GPU counts from the recipes to the same gpus-per-worker 4/8, and add per-role Slurm mem caps that are an 8-GPU node's share of available DRAM (≈1.47 TiB per 4 GPUs). Those caps sit at or above what is left after the fixed Mooncake segments, so they do not bind. The srtctl 2d9079c→cc9db05 bump only refactors the launcher, and cf22f25 changes only the changelog.

✅ Check 2 (Evals): PASS — In run 45336404306 on the PR's image, GSM8K em_strict is 0.9682 (TP8 C2), 0.9735 (1P1D C112), 0.9719 (1P2D C56) and 0.9704 (1P3D C24). Every row is within 2σ of its sibling and of the exact ingested cohort (39540045682, 0.9719). The mono path ran: the TP8 C2 eval server in 45121043365 logs MonoKernel on with no off or fallback lines, and that run used the same recipe and image (only the framework label changed since).

➖ Check 3 (Upstream recipe): N/A — Both affected entries are framework: atom (vendor engine); no vLLM/SGLang production serving configuration is affected. An ATOM recipe link is provided.

✅ Check 4 (Reuse command): PASS — seungrokj (permission write, role_name write) posted /use 45336404306 on its own line, naming the Check 1 run.

✅ Check 5 (Checklist template): PASS — Every item of the current PR_REVIEW_CHECKLIST.md template is present and checked.

✅ Check 6 (Upstream images/ordering/provenance): PASS — (a) The upstream-image rule does not apply to ATOM. (b) An open-source entry already exists for glm5.2 on cluster:mi355x-amds: glm5.2-fp4-mi355x-sglang-agentic-mtp. (c) The image is built from ROCm/ATOM 5f3ae2b5b, which is on main (91 commits behind the tip, 0 ahead); ROCm/ATOM#3266 is merged.

✅ Check 7 (Deprecated models): PASS — glm5.2 agentic coding is active in MODELS.md.

✅ Check 8 (Benchmark hacks): PASS — There are no hf-overrides or architecture edits and no online quantization; the FP8 KV and index caches are covered by the TP8 and disagg evals. glm5.2 is in the integer all-reduce baseline matrix (grandfathered), and the recipes set no quick-reduce quantization.

✅ Check 9 (Chat template): PASS — AIPERF_APPLY_CHAT_TEMPLATE: "true" in both recipes; evals use chat completions.

✅ Check 10 (No engine patches): PASS — The new setup_script: raise-memlock-soft-limit.sh only raises the worker shell's RLIMIT_MEMLOCK soft limit to the hard limit through prlimit. It edits no engine source and installs no wheel or overlay; no patching is reachable.

✅ Check 11 (Golden AL): PASS — The launcher sets ATOM spec-decode-acceptance-length per role from glm-5.2-fp8__mtp__native__default-default: TP8 MTP3 = 2.99 (matches signoff_facts golden-al), 1P2D MTP4 = 3.33 and 1P3D MTP5 = 3.61, as confirmed by the run's AL-gate records.

➖ Check 12 (Append-only): N/A — No append-only: true entry.

✅ Check 13 (Draft precision): PASS — The draft model.layers.78 of amd/GLM-5.2-MXFP4 is excluded from Quark MXFP4 in config.json (attention, indexer, eh_proj, shared and all 256 routed experts are BF16). ATOM 5f3ae2b5b loads excluded layers in the model dtype, and the recipe has no draft quantization or dtype override. The draft KV is the target's FP8 (framework default via resolve_draft_kv_dtype); the golden identity's draft_kv_cache_dtype is the default. The SGLang-only SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE is not set.

✅ Check 14 (Pareto coverage): PASS — Curve glm5.2/agentic-coding/mi355x_atom/fp4, run 45336404306 results_bmk, P90 E2EL vs tput_per_gpu: 8 measured points, 6 on the frontier (TP8 C1, 1P3D C24, 1P2D C56, 1P1D C56/C72/C96), per pareto_coverage.

✅ Check 15 (PR description): PASS — The title, body and changelog match the pinned config: the image digest and router commit, framework atom, the removed and retained points, ATOM_MONO_ENABLE 1/0, MTP3 at golden 2.99, max-num-seqs 2 and graphs [1,2], the FP8 KV and index caches, the setup script, and the BF16 draft. The 5f1e318 sweep cited in the body is an earlier in-PR run.

➖ Check 16 (NVIDIA overview): N/A — MI355X only; no NVIDIA vLLM/SGLang configs.

➖ Check 17 (Metrics publication): N/A — ATOM/AToMesh only; no Dynamo TRT-LLM serving path.

Assessed commit: cf22f257ce1f048fa8cdf4f882e7d0949b68a192.

@adibarra
adibarra dismissed functionstackx’s stale review November 24, 2026 20:00

Addressed in 08c2396 (framework: atom).

@adibarra
adibarra merged commit df6b5fa into main Nov 24, 2026
41 checks passed
@adibarra
adibarra deleted the jasen/glm52-mi355x-atom-tp8-mono-lowconc branch November 24, 2026 20:00
@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 8 0 0
eval 4 4 0 0 0
trace 8 0 0 0 0
power 0 0 8 0 0

benchmarkFiles 9, rawBenchmarkRows 16, coveredByPerJobFiles 8, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 5276, gpuMetricSamplesNew 0, 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 时本评论会原地更新。

seungrokj added a commit that referenced this pull request Nov 24, 2026
Resolve the perf-changelog.yaml conflict by keeping main's new entries (#5120, #5109) and moving the #5196 block to the end of the file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants