Skip to content

feat(agentx): MiniMax-M3.1-Flash FP4 MI355X ATOM AgentX on nightly_202611200431, NVFP4 KV, served as shipped / feat(agentx):MiniMax-M3.1-Flash FP4 MI355X ATOM AgentX,基于 nightly_202611200431,NVFP4 KV,按原样服务 - #5157

Merged
adibarra merged 10 commits into
mainfrom
amd/m31-flash-mi355x-atom-agentic-1120
Nov 24, 2026

Conversation

@zhuyuhua-v

@zhuyuhua-v zhuyuhua-v commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Why

#4860 runs MiniMax-M3.1-Flash on ATOM with FP8 caches and no mono decode on nightly_202611060646. The ATOM main image now carries the NVFP4 KV and index caches, mono decode with the shipped MXFP8 shared expert, indexer CP over the NVFP4 caches and LMCache with an NVFP4 KV.

What changed

Workers serve amd/MiniMax-M3.1-Flash-Quark-MXFP4 from the bare tag rocm/atom-dev:nightly_202611200431 (ATOM 0.1.11.dev71+g17edc6157, AITER a485545d3, built from ROCm/ATOM main). The atomesh frontend container_image pins digest sha256:57c08153e332315b85c00bb3bb6c1dd71504950f7989be83915be456cfb6749f.
Seven DSpark-7 points at TP4: CONC 1-32 on the GPU prefix cache, 48 with LMCache.
The points follow the M3.1 section of ROCm/ATOM#2747 (recipes/MiniMax-M3-Agentic-InferenceX.md). This PR and #4860 add the same config key; #4860 is closed in favour of this one.

Review focus

  • NVFP4 KV cache: the checkpoint is QAT-trained for it, as the merged vLLM MI355X and NVIDIA M3.1 recipes state.
  • Draft KV: ATOM's default beside an NVFP4 target (BF16, own pool) at CONC 1-32; FP8 (--spec-decode-kv-cache-dtype fp8) at CONC 48. The FP8 override lowers the draft KV below ATOM's default, matching the merged vLLM and SGLang M3.1 recipes; the CODEOWNER accepted it for this PR.

Testing

CI sweep 44987957118 on 2562e42 passed all seven points; the head 0490622 reuses it (/use 44987957118; the commits since are merges of main). GSM8K em_strict in that run: 0.9644 (CONC 8), 0.9682 (CONC 16), 0.9613 (CONC 32), 0.9598 (CONC 48, FP8 draft KV).

Follow-ups

  • None.
Dev record

Found: on this image mono decode declines indexer CP over NVFP4 caches (MiniMax-M3 mono decode off: indexer context parallelism with NVFP4 caches), so CONC 16 and up run the production decode path. Each rank logs a traceback at startup for the indexer CP candidate mailbox (hipIpc of cached memory needs ROCm 7.14 or later); CP keeps the collective exchange.
Decided: draft KV at ATOM's default (BF16) up to CONC 32 and FP8 at CONC 48, following the merged vLLM and SGLang M3.1 recipes, which run an FP8 draft KV beside an NVFP4 target (review: this lowers the draft below ATOM's default, see Review focus). FP8 shrinks a 128-token block from 1,986,560 to 1,822,720 bytes per rank (9% more cached tokens), which matters only at CONC 48.
Surprised: none
Left undone: none

Evidence

Add minimaxm31flash-fp4-mi355x-atom-agentic-dspark: MiniMax-M3.1-Flash AgentX via ATOM. It serves amd/MiniMax-M3.1-Flash-Quark-MXFP4 on rocm/atom-dev:nightly_202611200431. The image carries ATOM 0.1.11.dev71+g17edc6157 and AITER a485545d3 and is built from ROCm/ATOM main. The atomesh frontend container_image pins digest sha256:57c08153e332315b85c00bb3bb6c1dd71504950f7989be83915be456cfb6749f; serving workers use the bare tag from amd-master.yaml.

Points (DSpark, 7 draft tokens, TP4, dram-utilization 0.58):

  • CONC 1, 2, 4 and 8: mono decode (on by default) for decode steps of up to 16 rows.
  • CONC 16 and 32: indexer CP (ATOM_M3_INDEXER_CP=1); CONC 32 adds the prefill delayer (interval 8, target fill 0.05, stall 2) and max-num-batched-tokens 16384.
  • CONC 48: indexer CP, FP8 draft KV and the lmcache_offload connector, 200 GiB per rank (858.99 GB per server against its 869 GB share), 256-token chunks.
  • Every point: NVFP4 KV and index caches, 128-token blocks, prefix caching, gpu-memory-utilization 0.85, max-num-seqs 2 x CONC.
  • The image carries ROCm/ATOM PRs 3310, 3308, 3576 and 3591 and ROCm/aiter PR 8285.

Draft data types: weights unchanged. The dspark/ draft runs as shipped: MXFP8 (1x32 UE8M0 scales) attention and MLP linears, BF16 fc, Markov and confidence heads, sharing the target's embedding and LM head. Its KV cache sits in a pool of its own: at CONC 1-32 it is ATOM's default beside an NVFP4 target, BF16 (draft_kv_dtype falls back to bf16 for an FP4 target KV); at CONC 48 it is FP8 (--spec-decode-kv-cache-dtype fp8), the draft KV dtype the merged vLLM MI355X recipe (speculative-config kv_cache_dtype: fp8) and the NVIDIA SGLang M3.1 recipes (speculative-draft-kv-cache-dtype: fp8_e4m3) run beside an NVFP4 target. That is below ATOM's default for this draft (BF16), so CONC 48 lowers the draft KV precision. The draft path is the MiniMaxAI snapshot 2f33a8b9, whose dspark/ files have the same LFS oids as the served AMD checkpoint's.

Accuracy-sensitive optimizations:

  • Not used: reduced-precision all-reduce (AITER_QUICK_REDUCE_QUANTIZATION unset, read as NONE), online quantization, shared-expert fusion or requantization (ATOM_FUSE_MXFP8_SHARED_INTO_MXFP4 unset), indexer skipping or sharing.

Validation:

  • CI sweep 44987957118 (2562e42, reused for 0490622): all seven points green; GSM8K em_strict 0.9644 / 0.9682 / 0.9613 / 0.9598 at CONC 8 / 16 / 32 / 48.
  • Local GSM8K em_strict (1319 samples, real acceptance): 0.9636 on the CONC 32 config, 0.9682 on the CONC 48 config with BF16 draft KV.
中文

新增 minimaxm31flash-fp4-mi355x-atom-agentic-dspark:用 ATOM 跑 MiniMax-M3.1-Flash AgentX,在 rocm/atom-dev:nightly_202611200431 上按原样服务 amd/MiniMax-M3.1-Flash-Quark-MXFP4。镜像包含 ATOM 0.1.11.dev71+g17edc6157 与 AITER a485545d3,基于 ROCm/ATOM main 构建。atomesh 前端 container_image 固定 digest sha256:57c08153e332315b85c00bb3bb6c1dd71504950f7989be83915be456cfb6749f;serving worker 使用 amd-master.yaml 里的裸 tag。配置沿用 ROCm/ATOM#2747 的 M3.1 一节。本 PR 与 #4860 新增同一个 config key,#4860 已关闭。

测试点(DSpark 7 个 draft token,TP4,dram-utilization 0.58):

  • CONC 1、2、4、8:mono decode(默认开启)处理最多 16 行的 decode step。
  • CONC 16、32:indexer CP(ATOM_M3_INDEXER_CP=1);CONC 32 另开 prefill delayer(interval 8、target fill 0.05、stall 2),max-num-batched-tokens 16384。
  • CONC 48:indexer CP、FP8 draft KV 加 lmcache_offload,每 rank 200 GiB(每台 858.99 GB,份额 869 GB),chunk 256。
  • 所有点:NVFP4 KV 与 index cache,128-token block,prefix caching,gpu-memory-utilization 0.85,max-num-seqs 为 2 x CONC。
  • 镜像包含 ROCm/ATOM PR 3310、3308、3576、3591 与 ROCm/aiter PR 8285。

Draft 数据类型:权重无变化。dspark/ draft 按发布格式运行:MXFP8(1x32 UE8M0 scale)attention 与 MLP linear,BF16 fc、Markov 与 confidence head,与目标模型共享 embedding 和 LM head。其 KV cache 在独立池中:CONC 1-32 为 ATOM 在 NVFP4 目标下的默认值 BF16;CONC 48 为 FP8(--spec-decode-kv-cache-dtype fp8),与已合并的 vLLM MI355X recipe(speculative-config 的 kv_cache_dtype: fp8)及 NVIDIA SGLang M3.1 recipe(speculative-draft-kv-cache-dtype: fp8_e4m3)在 NVFP4 目标旁使用的 draft KV dtype 相同。这低于 ATOM 对该 draft 的默认值(BF16),即 CONC 48 降低了 draft KV 精度,与已合并的 vLLM、SGLang M3.1 recipe 一致;CODEOWNER 已接受本 PR 的这一设置。draft 路径为 MiniMaxAI 快照 2f33a8b9,其 dspark/ 文件与所服务的 AMD checkpoint 的 LFS oid 相同。

精度敏感优化:

  • 未使用:低精度 all-reduce(AITER_QUICK_REDUCE_QUANTIZATION 未设置,视为 NONE)、在线量化、共享专家融合或重量化(ATOM_FUSE_MXFP8_SHARED_INTO_MXFP4 未设置)、indexer 跳过或共享。

验证:

  • CI sweep 44987957118(2562e42a,0490622e7 复用):七个点全部通过;GSM8K em_strict 在 CONC 8 / 16 / 32 / 48 分别为 0.9644 / 0.9682 / 0.9613 / 0.9598。
  • 本地 GSM8K em_strict(1319 题,真实 acceptance):CONC 32 配置 0.9636,CONC 48 配置(BF16 draft KV)0.9682。
AI model disclosure
  • claude-opus-5-5 (Cursor) wrote the recipe, the master-config entry, the perf-changelog block and this description, and checked the draft data types and accuracy-sensitive optimizations against ATOM 17edc6157.
  • claude-opus-5-5 (Claude Code) revised the perf-changelog draft line and this description, re-checked the draft KV dtype (resolve_draft_kv_dtype at ATOM 17edc6157), the draft blob oids, the quick-reduce default and the CI sweep.

@zhuyuhua-v zhuyuhua-v added AMD full-sweep-enabled Full sweep with canary gate; matrix jobs run to completion despite failures agentx AgentX benchmarks, recipes, and infrastructure labels Nov 20, 2026
@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 任务通过。临时性失败通常可以通过重新运行恢复;参见重新运行失败任务的说明。

@zhuyuhua-v
zhuyuhua-v marked this pull request as ready for review November 20, 2026 07:24
@zhuyuhua-v
zhuyuhua-v requested review from a team and a balanced review from Copilot November 20, 2026 07:24
@claude

claude Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @zhuyuhua-v's task in 33s —— View job


LGTM - no blocking issues found

Copilot AI 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.

🟡 Changes recommended

The C48 recipe reduces draft KV precision from BF16 to FP8, violating the contribution policy; the override and its explanatory comment must be removed, and the related descriptions aligned.

1 open issue
What changed in this PR

Adds MiniMax-M3.1-Flash FP4 AgentX benchmarking on MI355X through ATOM, superseding #4860 with a newer nightly image and NVFP4 caches.

Changes:

  • Registers seven TP4 concurrency points using seven-token DSpark speculation.
  • Adds concurrency-specific indexer context parallelism, prefill scheduling, and LMCache offload at concurrency 48.
  • Records the new benchmark configuration and serving settings in the performance changelog.
File Description
inferencex-e2e/​perf-changelog.yaml Records the new configuration and benchmark settings.
inferencex-e2e/​configs/​amd-master.yaml Registers the ATOM image, model, runner, and concurrency sweep.
inferencex-e2e/​benchmarks/​single_node/​srt-slurm-recipes/​minimaxm31flash/​atom/​mi355x-fp4-mtp/​agentic.yaml Defines serving defaults and per-concurrency cache and scheduling settings.

Review effort: Balanced

Comment on lines +153 to +156
# FP8 draft KV, as the merged vLLM and SGLang M3.1 recipes run beside
# an NVFP4 target: 8% smaller blocks, so the GPU prefix cache holds 9%
# more tokens. The draft's weights stay MXFP8 as shipped.
spec-decode-kv-cache-dtype: fp8

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

Findings marked 🟡 are optional suggestions and need no follow-up push.

Comment on lines +46 to +51
# ATOM needs the draft as a local directory and does not fetch dspark/
# itself, so this points at the shared HF-cache copy the SGLang M3.1
# MI355X runs load. MiniMaxAI@2f33a8b9 dspark/ and this checkpoint's
# dspark/ have identical blob oids.
method: dspark
draft-model: /mnt/hf_hub_cache/models--MiniMaxAI--MiniMax-M3.1-Flash/snapshots/2f33a8b9ae49ce7b51c994df97166a7fd059bc2e/dspark

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.

🔴 Every point of this config fails at worker startup on a node whose shared HF cache lacks one specific MiniMaxAI snapshot. Nothing in the job downloads that snapshot. draft-model hard-codes the dspark/ directory of MiniMaxAI/MiniMax-M3.1-Flash snapshot 2f33a8b9. The job downloads only amd/MiniMax-M3.1-Flash-Quark-MXFP4, so the draft exists only if another config left it behind. Fix: point the draft at a directory this job provisions, such as the served checkpoint's own dspark/ (the comment says its blobs are identical), or have the launcher fetch the draft repo at a pinned revision.

Why this was flagged

The srt driver stages only hf:{request.model} (model_paths={f"hf:{request.model}": model_path} in infx/launch/drivers/srt/init.py:94), and model here is amd/MiniMax-M3.1-Flash-Quark-MXFP4. The draft path at agentic.yaml:51 points into models--MiniMaxAI--MiniMax-M3.1-Flash/snapshots/2f33a8b9.... The only other user of that repo, minimaxm31flash-fp4-mi355x-sglang-agentic-dspark, pins no revision (no 2f33a8b9 anywhere else in the repo). So the snapshot exists only if an earlier SGLang run on the same cache happened to download that exact commit. That fails on a fresh or pruned cache, on a node that has not run the SGLang config, or after an upstream push leaves a different snapshot dir. In each case ATOM cannot load the DSpark draft, every CONC point (1-48) fails to serve, and the sweep yields no results. The base branch has no such config.

Verification: agentic.yaml:51 hard-codes draft-model: /mnt/hf_hub_cache/models--MiniMaxAI--MiniMax-M3.1-Flash/snapshots/2f33a8b9.../dspark. The job stages only the served model, amd/MiniMax-M3.1-Flash-Quark-MXFP4 (infx/launch/drivers/srt/init.py:94). So every point (c1-c48) fails at worker startup whenever /it-share/hf-hub-cache (configs/runners.yaml:845) lacks that snapshot.

Comment on lines +1041 to +1043
# MiniMax-M3.1-Flash on ATOM, following the upstream TP4 + DSpark AgentX recipe
# (ROCm/ATOM recipes/MiniMax-M3-Agentic-InferenceX.md). Seven-token DSpark uses
# golden AL 4.04 for throughput and real acceptance for eval.

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): New header, section and provenance comments break the mandatory AGENTS.md comment rule, so maintainers get history in code. sweep:^# (MiniMax-M3.1-Flash on ATOM|max-num-seqs is twice|From CONC 16|The LMCache point keeps) Examples: the config header at amd-master.yaml:1041 cites the upstream recipe it follows. The recipe's override-section headers sit at agentic.yaml:65 and agentic.yaml:146. Provenance asides like "as the merged vLLM and SGLang M3.1 recipes run" sit at agentic.yaml:145. Fix: delete the header and section comments, and keep only short why-comments on specific lines. [also at: inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/minimaxm31flash/atom/mi355x-fp4-mtp/agentic.yaml:69 - nit: Maintainers get section-header and provenance comments that the mandatory comment rule forbids. sweep:^# in this recipe, plus the header above the new key in configs/amd-master.yaml.]

Why this was flagged

AGENTS.md lines 46-50 ("Comments (mandatory, every file)") ban header comments that describe a config, recipe, override or section. They also ban history comments about where something came from. amd-master.yaml:1041-1043 is a config header naming ROCm/ATOM recipes/MiniMax-M3-Agentic-InferenceX.md as the source. agentic.yaml:65-68, :115-116 and :146-147 are section headers that describe the overrides beneath them. agentic.yaml:21-24 and :144-146 describe what the checkpoint ships and which external recipes the choice copies. These comments restate config, or record provenance that belongs in perf-changelog.yaml, and they will go stale as the image or recipe changes. The base branch had none of them.

Verification: nit. Happens on every merge of this diff; it is a comment-rule violation, and nothing breaks at runtime. AGENTS.md:46-49 says: "No header comments describing a file, topology, config, recipe, override, or section." amd-master.yaml:1041-1042 is a config header with provenance, and agentic.yaml has section headers at lines 65-68, 110-111 and 144-145.

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

Copy link
Copy Markdown
Collaborator

/use 44987957118

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

@seungrokj staged run 44987957118.

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

@seungrokj

Copy link
Copy Markdown
Collaborator

/reuse-sweep-run 44987957118

…atom-agentic-1120

# Conflicts:
#	inferencex-e2e/perf-changelog.yaml
… c48 point lowers the draft KV to FP8

- Draft data types: the DSpark draft weights run as shipped (MXFP8 1x32 UE8M0 attention and MLP linears, BF16 fc, Markov and confidence heads, sharing the target's embedding and LM head); the draft path is the MiniMaxAI snapshot whose dspark/ files are byte-identical to the served checkpoint's.
- Its KV cache, in a pool of its own, is ATOM's default beside an NVFP4 target (BF16) up to concurrency 32; at 48, --spec-decode-kv-cache-dtype fp8 lowers it to FP8.

- Draft 数据类型:DSpark draft 权重按发布格式运行(MXFP8 1x32 UE8M0 attention 与 MLP linear,BF16 fc、Markov 与 confidence head,与目标模型共享 embedding 和 LM head);draft 路径为 MiniMaxAI 快照,其 dspark/ 文件与所服务的 checkpoint 逐字节相同。
- 其 KV cache 位于独立池中:并发 32 及以下为 ATOM 在 NVFP4 目标旁的默认值(BF16);并发 48 时 --spec-decode-kv-cache-dtype fp8 将其降为 FP8。

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

seungrokj commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Draft data types: weights and activations served as shipped.

The DSpark draft is dspark/ in MiniMaxAI/MiniMax-M3.1-Flash@2f33a8b9, which is the recipe's draft-model path. Its config.json, model-dspark-00001.safetensors (LFS oid a27aed923fa17697…) and index have the same oids as dspark/ in the served amd/MiniMax-M3.1-Flash-Quark-MXFP4, so this is the draft that ships with the served checkpoint. From the safetensors headers, it is stored as:

Part Data type
Attention q/k/v/o and MLP projections MXFP8 (FP8 E4M3, 1x32 UE8M0 scales)
fc, Markov and confidence heads, norms BF16
Embedding, LM head shared with the target (BF16)

At ATOM 17edc6157 (the image's org.opencontainers.image.revision):

  • The draft loads with an MXFP8-only quant config (dspark.py L408-L415), and fc stays unquantized (L420-L428). No --online_quant_config is set, so the weights and activations run as shipped.

Accuracy-sensitive optimizations: none used. Checked against the accuracy-sensitive optimization policy for the aggregated TP4 worker and the draft. That includes image defaults: the image ENV sets none of these controls. This is a new config, so there is no base.

Optimization Effective setting (head) Evidence
Reduced-precision all-reduce Off: AITER_QUICK_REDUCE_QUANTIZATION is unset in the recipe and the image ENV. AITER enables quick reduce only when the variable names a regime, and ATOM forces INT4 only for llama aiter quick_all_reduce.py L37-L38, ATOM model_runner.py L837-L841
Online linear-layer quantization Off: no --online_quant_config and no --quantization; the checkpoint runs as its Quark MXFP4/MXFP8 export recipe
Shared-expert quantization Off: the shared expert stays MXFP8 as shipped. ATOM_FUSE_MXFP8_SHARED_INTO_MXFP4 defaults to 0 and is unset envs.py L1122-L1123
Non-native cross-indexer sharing Off: no hf-overrides and no indexer skip or sharing. ATOM_M3_INDEXER_CP splits the scoring work across ranks; it does not reduce FLOPs recipe
Non-native FP4 KV cache Not applicable: the NVFP4 KV and index caches are native. MiniMax-M3.1-Flash is QAT-trained for them MiniMaxAI model card; vLLM recipe
SSM/KDA/Mamba state cache below FP32 Not applicable: no SSM/KDA layers —

Validation: run-sweep 44987957118 on 2562e42a passed all seven points, and the head reuses it. GSM8K em_strict: 0.9644 / 0.9682 / 0.9613 / 0.9598 at CONC 8 / 16 / 32 / 48. Throughput runs use the golden AL minimax-m3.1-flash__dspark__native__probabilistic-block (4.04 at K7).

中文

Draft 数据类型:权重与激活按发布格式运行。

DSpark draft 是 MiniMaxAI/MiniMax-M3.1-Flash@2f33a8b9 中的 dspark/,即 recipe 的 draft-model 路径。其 config.json、model-dspark-00001.safetensors(LFS oid a27aed923fa17697…)与 index 的 oid 和所服务的 amd/MiniMax-M3.1-Flash-Quark-MXFP4 中 dspark/ 相同,因此它就是随所服务 checkpoint 发布的 draft。safetensors header 显示其存储格式如下:

部分 数据类型
Attention q/k/v/o 与 MLP 投影 MXFP8(FP8 E4M3,1x32 UE8M0 scale)
fc、Markov 与 confidence head、norm BF16
Embedding、LM head 与目标模型共享(BF16)

在 ATOM 17edc6157(镜像的 org.opencontainers.image.revision)中:

  • draft 以仅接受 MXFP8 的 quant config 加载(dspark.py L408-L415),fc 不量化(L420-L428)。未设置 --online_quant_config,因此权重与激活按发布格式运行。

精度敏感优化:均未使用。 已按精度敏感优化政策检查聚合式 TP4 worker 与 draft,包括镜像默认值:镜像 ENV 未设置任何相关控制项。这是新配置,没有 base。

优化 实际设置(head) 依据
低精度 all-reduce 关闭:recipe 与镜像 ENV 中均未设置 AITER_QUICK_REDUCE_QUANTIZATION。AITER 仅在该变量指定了某个 regime 时才启用 quick reduce,ATOM 只对 llama 强制 INT4 aiter quick_all_reduce.py L37-L38、ATOM model_runner.py L837-L841
在线 linear 量化 关闭:未设置 --online_quant_config 与 --quantization,checkpoint 按 Quark MXFP4/MXFP8 导出格式运行 recipe
共享专家量化 关闭:共享专家保持发布时的 MXFP8。ATOM_FUSE_MXFP8_SHARED_INTO_MXFP4 默认为 0 且未设置 envs.py L1122-L1123
非原生跨 indexer 共享 关闭:没有 hf-overrides,没有 indexer 跳过或共享。ATOM_M3_INDEXER_CP 只是把打分工作分到各 rank,不减少 FLOPs recipe
非原生 FP4 KV cache 不适用:NVFP4 KV 与 index cache 为原生,MiniMax-M3.1-Flash 针对其做了 QAT 训练 MiniMaxAI 模型卡;vLLM recipe
SSM/KDA/Mamba 状态缓存低于 FP32 不适用:没有 SSM/KDA 层 —

验证:run-sweep 44987957118(2562e42a)七个点全部通过,head 复用该 run。GSM8K em_strict 在 CONC 8 / 16 / 32 / 48 分别为 0.9644 / 0.9682 / 0.9613 / 0.9598。吞吐测试使用 golden AL minimax-m3.1-flash__dspark__native__probabilistic-block(K7 为 4.04)。

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

@seungrokj

Copy link
Copy Markdown
Collaborator

@SemiAnalysisAI/core: requesting a recorded maintainer exception (admin bypass) for the Check 13 (draft precision) FAIL on #5157, for assessed commit bd1ae09afdf26ed69657db05e456729c55af3f7e and the CONC 48 point only (override_tp4_c48_lmcache).

What the verifier found, and it's accurate. At CONC 48 the recipe sets spec-decode-kv-cache-dtype: fp8. With no flag, pinned ATOM 17edc6157 gives the DSpark draft a BF16 KV cache beside the NVFP4 target, so this lowers the draft KV below the framework default. The draft weights run as shipped (MXFP8 linears, BF16 heads), and so do all of CONC 1-32. Details: #5157 (comment)

Why we're asking for an exception rather than a rerun. Since the rule landed on 2026-10-27 (b9dfa28), merged MiniMax-M3.1-Flash submissions on other engines have set the DSpark draft KV cache to FP8 explicitly:

PR Lane Draft KV setting Merged
#4598 B200 SGLang ("store DSpark draft KV in FP8") speculative-draft-kv-cache-dtype: fp8_e4m3 2026-10-28
#4600 GB300 SGLang ("store DSpark draft KV in FP8") speculative-draft-kv-cache-dtype: fp8_e4m3 2026-10-28
#5035 MI355X vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-12
#5122 H200 vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-18
#5124 H100 vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-18

Every MiniMax-M3.1-Flash vLLM and SGLang single-node recipe on main sets the draft KV cache to FP8 the same way. Holding only the ATOM lane to BF16 would make the MI355X ATOM curve not comparable with them. #4640, which would clarify that the draft KV dtype is not restricted, is still open.

I'm aware the policy says matching upstream recipes and merged precedent do not by themselves exempt a submission. That's why this needs a maintainer decision and can't be resolved by the verifier. CONC 48 also passed its eval (GSM8K em_strict 0.9598, run 44987957118), and its log shows the FP8 draft KV path ran.

If the exception is not granted, we'll drop spec-decode-kv-cache-dtype: fp8 from override_tp4_c48_lmcache and rerun CONC 48 with its eval.

中文

@SemiAnalysisAI/core:请求为 #5157 的 Check 13(draft 精度)FAIL 记录一次维护者例外(admin bypass),范围为被评估提交 bd1ae09afdf26ed69657db05e456729c55af3f7e,且仅限 CONC 48 点(override_tp4_c48_lmcache)。

验证器的结论是准确的。 CONC 48 的 recipe 设置了 spec-decode-kv-cache-dtype: fp8。不设该参数时,固定版本 ATOM 17edc6157 会在 NVFP4 目标旁为 DSpark draft 分配 BF16 KV cache,因此该设置把 draft KV 降到了框架默认值以下。draft 权重按发布格式运行(MXFP8 linear、BF16 head),CONC 1-32 也全部按原样运行。详情:#5157 (comment)

为何请求例外而非重跑。 自该规则于 2026-10-27(b9dfa2851)生效以来,其他引擎上已合并的 MiniMax-M3.1-Flash 提交都显式将 DSpark draft KV cache 设为 FP8:

PR 通道 Draft KV 设置 合并时间
#4598 B200 SGLang(「store DSpark draft KV in FP8」) speculative-draft-kv-cache-dtype: fp8_e4m3 2026-10-28
#4600 GB300 SGLang(「store DSpark draft KV in FP8」) speculative-draft-kv-cache-dtype: fp8_e4m3 2026-10-28
#5035 MI355X vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-12
#5122 H200 vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-18
#5124 H100 vLLM speculative-config "kv_cache_dtype":"fp8" 2026-11-18

main 上所有 MiniMax-M3.1-Flash 的 vLLM 与 SGLang 单节点 recipe 都以同样方式将 draft KV cache 设为 FP8。只要求 ATOM 通道使用 BF16,会使 MI355X ATOM 曲线与它们不可比。用于澄清 draft KV dtype 不受限制的 #4640 仍未合并。

我们清楚该政策规定,与上游 recipe 一致或已合并的先例本身不能豁免提交,因此这需要维护者决定,验证器无法解决。CONC 48 也通过了评测(GSM8K em_strict 0.9598,run 44987957118),其日志显示 FP8 draft KV 路径确实运行。

如不批准例外,我们会从 override_tp4_c48_lmcache 删除 spec-decode-kv-cache-dtype: fp8,并重跑 CONC 48 及其评测。

AI assistance: drafted with Claude Code (claude-opus-5-5); the precedent recipes and merge dates were read from main.

@SemiAnalysisAI SemiAnalysisAI deleted a comment from github-actions Bot Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Verdict: WARN ⚠️

⚠️ Check 15 (PR description): WARN — Stale claims at 38dd32fa: the PR body says "the head 0490622 reuses it ... the commits since are merges of main", but the head is now 38dd32fa, and bd1ae09 (a changelog-only edit, non-material) is not a merge. The changelog entry and the master-config comment still say "dram-utilization 0.58" / "TOTAL_CPU_DRAM_GB=869", but merge 770e0b7b removed both. At the pinned SHA, worker memory is the GPU share of available-cpu-dram-mib (3,079,397 MiB × 4/8). Please update the body and the changelog wording.

Passed and not applicable checks

✅ Check 0 (CODEOWNER): PASS — @seungrokj is a named owner of inferencex-e2e/configs/amd-master.yaml and srt-slurm-recipes/**/mi355x-*/; perf-changelog.yaml falls under the catch-all.

✅ Check 1 (Sweep on in-PR commit): PASS — run 44987957118 on in-PR 2562e42a has 7/7 agentic //canary and 4/4 agentic eval / checks green. The later commits are not material: bd1ae09 only edits changelog text, and the merges bring in main's worker-resource migration (gpus-per-worker 4 replaces recipe workers 1/gpus 4, the same memory cap formula, and TOTAL_CPU_DRAM_GB was only an input check). They also bump srt-slurm 2d9079c→cc9db05 (infera/llm-d/vLLM-router/docker launcher), which changes nothing on the ATOM agg launch path except step naming.

✅ Check 2 (Evals): PASS — GSM8K em_strict is 0.9644/0.9682/0.9613/0.9598 at CONC 8/16/32/48 (n=1319) on rocm/atom-dev:nightly_202611200431. Every row is within 2σ of its sibling and of the MI355X vLLM M3.1 cohort (0.9636, run 45233004275). The evals cover mono decode (C8), indexer CP plus the prefill delayer (C16/C32), and FP8 draft KV with LMCache (C48; the launch log shows --spec-decode-kv-cache-dtype fp8).

➖ Check 3 (Upstream recipe): N/A — The only affected config is framework: atom (single-node agg, MI355X). No vLLM/SGLang production serving configuration is affected. The sign-off links the merged ATOM recipe ROCm/ATOM#2747 for reference.

✅ Check 4 (Reuse command): PASS — /use 44987957118 and /reuse-sweep-run 44987957118 were posted by seungrokj (write/write). The run is the Check 1 run, on in-PR 2562e42a.

✅ Check 5 (Latest template): PASS — All 20 current template items are present and checked. The draft-precision item is missing the newer "draft KV-cache rule" clause, which is minor wording drift.

✅ Check 6 (Upstream images/ordering/provenance): PASS — (a) does not apply to ATOM. (b) The open-source entry minimaxm31flash-fp4-mi355x-sglang-agentic-dspark already exists for the same model and SKU. (c) The image's stated ATOM revision 17edc6157 (from the version string 0.1.11.dev71+g17edc6157, not the image label, which could not be read) is an ancestor of ROCm/ATOM main (45 behind).

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

✅ Check 8 (No arch hacks): PASS — There are no hf-overrides, no online quantization and no indexer skipping or sharing. ATOM_M3_INDEXER_CP splits scoring across ranks without reducing FLOPs. The NVFP4 KV cache is native (QAT checkpoint) and covered by evals. Integer all-reduce: minimaxm31flash is in the grandfathered baseline matrix (2a45791), and AITER_QUICK_REDUCE_QUANTIZATION is unset anyway.

✅ Check 9 (Chat templates): PASS — AgentX replays chat-format traces with acceptance pinned to the golden AL, and evals go through /v1/chat/completions.

✅ Check 10 (No engine patches): PASS — The recipe sets only engine args and env. It has no setup script, patch, overlay or wheel install.

✅ Check 11 (Golden AL): PASS — The run's applied overrides include roles.agg.args.spec-decode-acceptance-length=4.04. This matches golden minimax-m3.1-flash__dspark__native__probabilistic-block at K=7 (4.04). The eval launches use real acceptance.

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

✅ Check 13 (Draft precision): PASS — The draft is dspark/ from MiniMaxAI@2f33a8b9 (the same draft that ships with the served checkpoint). It loads as MXFP8 linears with BF16 fc/heads via draft_quant_config (per_1x32 fp8 only) at ATOM 17edc6157, with no online quantization. Draft KV at C1-32 is ATOM's default (BF16, its own pool, beside the NVFP4 target). C48 uses fp8 via the documented --spec-decode-kv-cache-dtype {bf16,fp8} flag. That changes only the draft's own pool, and golden identity minimax-m3.1-flash__dspark__native__probabilistic-block records draft_kv_cache_dtype: fp8. SGLANG_NVFP4_CKPT_FP8_NEXTN_MOE does not apply (ATOM).

✅ Check 14 (Pareto coverage): PASS — The curve minimaxm31flash/agentic-coding/mi355x_atom/fp4 (P90 E2EL vs tput_per_gpu, run 44987957118, results_bmk) has 7 measured points and 5 on the frontier (C4, C8, C16, C32, C48).

➖ Check 16 (NVIDIA overview): N/A — MI355X only, so no NVIDIA vLLM/SGLang configuration is affected.

➖ Check 17 (Metrics publication): N/A — This is ATOM with the atomesh frontend. Dynamo metrics settings do not apply.

✅ Check 18 (Recipe consistency): PASS — The new key generates 7 points with no errors. TP4 and gpus-per-worker 4 match the bound -tp 4 launch. LMCache needs 4 × 200 GiB (859 GB), which fits the worker share (about 1,540,000 MiB). Both rocm/atom-dev:nightly_202611200431 and the frontend digest sha256:57c0815… resolve. srt-slurm is pinned to commit cc9db05. No points were removed or re-tuned. ATOM 17edc6157 has no stream-interval control, so it streams per engine step (8 tokens or fewer at DSpark-7).

Assessed commit: 38dd32fa6e4cbed3102d6aee850c99a44959d33c.

@adibarra
adibarra merged commit e763ea2 into main Nov 24, 2026
34 checks passed
@adibarra
adibarra deleted the amd/m31-flash-mi355x-atom-agentic-1120 branch November 24, 2026 19:06
@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 7 0 7 0 0
eval 4 4 4 0 0
trace 7 0 0 0 0
power 7 0 0 0 0

benchmarkFiles 8, rawBenchmarkRows 14, coveredByPerJobFiles 7, purgedPoints 0, failedRunRows 0, runStatsNew 0, runStatsDuplicate 0, evalSamplesNew 5276, gpuMetricSamplesNew 118024, powerPublicationPoints 7, 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

agentx AgentX benchmarks, recipes, and infrastructure AMD 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