Repository navigation
perf(amd): MiniMax-M3 ATOM AgentX on 1007 nightly with mono decode at every TP4 point / MiniMax-M3 ATOM AgentX 更新至 1007 nightly 并在所有 TP4 点位启用 mono decode - #3750
Conversation
…ecode at every TP4 point Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…tead of the dropped patch Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Thanks for the contribution!
中文感谢你的贡献!
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
I reviewed this PR and didn't find any bugs. Because it re-enables MiniMax-M3 mono decode at TP4 C15/C20/C24/C28 — concurrency points that previously had it explicitly disabled after a hang in production (run 36493321464) — and the PR's own risk note says GPU sweep validation is still pending and an open upstream fix (ROCm/ATOM#2452) isn't in this image yet, a human look would still be worthwhile before merging.
What was reviewed:
- Mono-decode re-enable at C15/C20/C24/C28 (max-num-seqs 30-56) vs. the PR's claim that mono only needs to cover 4-request/16-token steps — the batch-size gap is real but ATOM's internal mono step-batching isn't visible from this repo to confirm either way.
- Docs claiming mono also covers LMCache points C40/C48 — ruled out as a doc bug: those blocks never set
ATOM_MONO_ENABLEat all (mono was already on by default there), so the wording is consistent. - Image/LMCache version bumps, new TP2 C4 point, and the dropped patch reference are applied consistently across agentic.yaml, amd-master.yaml, perf-changelog.yaml, and both docs.
Extended reasoning...
The diff is a benchmark-config-only change (srt-slurm recipe yaml, matrix config, perf changelog, and English/Chinese docs) for an AMD MI355X MiniMax-M3 ATOM recipe: no application or security-sensitive code is touched. The decisive factor for deferring rather than approving is that the change reverts a prior safety workaround (ATOM_MONO_ENABLE=0) that was added specifically because mono decode hung in production at these same TP4 concurrency points, and the PR author's own "Risk" section says a related upstream fix is not yet in this image and GPU sweep validation is still pending, so correctness at the wider batch sizes is not yet confirmed.
This review covers commit 26d7e83, which is no longer the latest commit on this pull request; later commits are not covered by it.
…2483 mono step-fence fix) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ono-20261006 # Conflicts: # inferencex-e2e/perf-changelog.yaml
|
View unofficial run (performance): https://inferencex.semianalysis.com/inference?unofficialRun=37598205362 View unofficial run (accuracy): https://inferencex.semianalysis.com/evaluation?unofficialRun=37598205362 |
|
/reuse-sweep-run 37598205362 |
Resolve conflicts:
- inferencex-e2e/docs/configuration-procedures{,_zh}.md: accept deletion
from main (#3789 removed the configuration procedure guides); the mono
decode details remain in this PR's perf-changelog entry.
- inferencex-e2e/perf-changelog.yaml: keep main's new entries (#3401,
#3692, #3685) and append this PR's entry after them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… every TP4 point minimaxm3-fp4-mi355x-atom-agentic-mtp: - Image rocm/atom-dev:nightly_202609281543 (ATOM 0.1.7.dev43+gaa0c5c3a1) -> nightly_202610070333 (sha256:2f605a3e8b459a0385f784edb0335c11892277fee650fe42044e4af39e36dd01; ATOM 0.1.7.dev60+g7fc0926c6, ROCm 7.2.4). ROCm/ATOM#2479 moves M3 mono decode onto the shared mono framework (mailbox flags published only after their stores drain; exact top-k sparse selection); ROCm/ATOM#2483 rebuilds the per-step mailbox clear and cross-rank fence as one FlyDSL launch, replacing a Triton fence that could spin forever on gfx950; ROCm/ATOM#2422 fixes the mono long-context decision. Upstream recipes/MiniMax-M3-Agentic-InferenceX.md is unchanged. - Mono decode on at every TP4 point: drop ATOM_MONO_ENABLE=0 from the indexer-CP points C15/C20/C24/C28. Mono serves decode steps of up to 16 tokens (four requests with EAGLE3 K3), covering all of TP4 C1/C2/C4. ATOM builds mono for TP4 only, so TP2 runs the unfused path. - Add TP2 C4 (max-num-seqs 8); GPU-resident TP2 points are C1/C2/C4. - Record LMCache 0.5.6.dev139+gf22dec28 (the wheel in the new image) for both DRAM-offload arms; offload settings unchanged. - Recipe cites NVIDIA/srt-slurm#507 (in srt-slurm since v2.36.0) for extra-kv-connectors instead of the dropped 507 patch. - No data-type or precision change to the EAGLE3 draft (Inferact/MiniMax-M3-EAGLE3-GQA). Risk: ROCm/ATOM#2452 (CUDA-graph pad rows in the wide MoE path, 5+ tokens) is not in this image; every batch size 1-18 is captured, so steps of up to four requests are never padded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
As a PR reviewer and CODEOWNER, I have reviewed this and have:
- 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_MOEis 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
- 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
- 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:
- insert any additional info here
- recipe at https://github.com/ROCm/ATOM/blob/main/recipes/MiniMax-M3-Agentic-InferenceX.md
- this is the draft model precision check: 1. The PR doesn't touch any draft setting. It changes three files: agentic.yaml, amd-master.yaml and perf-changelog.yaml. The changes are:
- the image bump nightly_202609281543 → nightly_202610070333
- removing ATOM_MONO_ENABLE=0 at TP4 C15/C20/C24/C28
- adding TP2 C4
- the LMCache version string
draft-model, method: eagle3, num-speculative-tokens, kv_cache_dtype, index-cache-dtype and online_quant_config are all unchanged.
- The image bump doesn't change draft precision either. I compared the ATOM commits inside the two images, aa0c5c3a1 and 7fc0926c6, which are 17 commits apart:
- Unchanged: eagle3_llama.py, linear.py, quant_spec.py, the quant parsers, the loader, layernorm, and the eagle3 architecture mapping in config.py.
- eagle_proposer.py and drafter.py did change (#2367, #2479). The changes only restore kv_indptr/context_lens during draft-graph warmup and change how anchors and draft token IDs are passed. None of them touch dtype or quantization.
- Mono decode only replaces the target's decode kernels (MiniMaxM3SparseForCausalLM); the draft is a separate model class.
- What each draft layer actually runs in, the same before and after. The checkpoint Inferact/MiniMax-M3-EAGLE3-GQA is LlamaForCausalLMEagle3, stored as bfloat16 with no quantization_config, and ATOM maps it to Eagle3LlamaModel (atom/config.py:1469).
┌────────────────────────────────────────────────────┬───────────────────────────────────────────────────────────────┐
│ Draft layer │ Precision │
├────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┤
│ embed_tokens, fc, qkv_proj, o_proj, gate_up_proj, │ BF16 │
│ down_proj, lm_head │ │
├────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┤
│ input_layernorm, hidden_norm, │ BF16 │
│ post_attention_layernorm, norm │
├────────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────┤
│ Draft attention KV cache dtype: fp8 via atom_config.kv_cache_dtype │
│ │ (eagle3_llama.py:318) │
├───────────────────────────────────────────────────────────────────────────────────────┤
│ Indexer cache │ Not applicable: the draft has no indexer, so │
│ nly affects the target │
└────────────────────────────────────────────────────┴───────────────────────────────────────────────────────────────┘
The linears are BF16 because Eagle3Llama builds them without passing quant_config. LinearBase then falls back to LayerQuantConfig(), which is QuantType.No witant_spec.py:81).
Signed: seungrokj
|
|
@edwingao28 plz review this |
… every TP4 point minimaxm3-fp4-mi355x-atom-agentic-mtp: - Image rocm/atom-dev:nightly_202609281543 (ATOM 0.1.7.dev43+gaa0c5c3a1) -> nightly_202610070333 (sha256:2f605a3e8b459a0385f784edb0335c11892277fee650fe42044e4af39e36dd01; ATOM 0.1.7.dev60+g7fc0926c6, ROCm 7.2.4). ROCm/ATOM#2479 moves M3 mono decode onto the shared mono framework (mailbox flags published only after their stores drain; exact top-k sparse selection); ROCm/ATOM#2483 rebuilds the per-step mailbox clear and cross-rank fence as one FlyDSL launch, replacing a Triton fence that could spin forever on gfx950; ROCm/ATOM#2422 fixes the mono long-context decision. Upstream recipes/MiniMax-M3-Agentic-InferenceX.md is unchanged. - Mono decode on at every TP4 point: drop ATOM_MONO_ENABLE=0 from the indexer-CP points C15/C20/C24/C28. Mono serves decode steps of up to 16 tokens (four requests with EAGLE3 K3), covering all of TP4 C1/C2/C4. ATOM builds mono for TP4 only, so TP2 runs the unfused path. - Add TP2 C4 (max-num-seqs 8); GPU-resident TP2 points are C1/C2/C4. - Record LMCache 0.5.6.dev139+gf22dec28 (the wheel in the new image) for both DRAM-offload arms; offload settings unchanged. - Recipe cites NVIDIA/srt-slurm#507 (in srt-slurm since v2.36.0) for extra-kv-connectors instead of the dropped 507 patch. - No data-type or precision change to the EAGLE3 draft (Inferact/MiniMax-M3-EAGLE3-GQA). Risk: ROCm/ATOM#2452 (CUDA-graph pad rows in the wide MoE path, 5+ tokens) is not in this image; every batch size 1-18 is captured, so steps of up to four requests are never padded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… every TP4 point minimaxm3-fp4-mi355x-atom-agentic-mtp: - Image rocm/atom-dev:nightly_202609281543 (ATOM 0.1.7.dev43+gaa0c5c3a1) -> nightly_202610070333 (sha256:2f605a3e8b459a0385f784edb0335c11892277fee650fe42044e4af39e36dd01; ATOM 0.1.7.dev60+g7fc0926c6, ROCm 7.2.4). ROCm/ATOM#2479 moves M3 mono decode onto the shared mono framework (mailbox flags published only after their stores drain; exact top-k sparse selection); ROCm/ATOM#2483 rebuilds the per-step mailbox clear and cross-rank fence as one FlyDSL launch, replacing a Triton fence that could spin forever on gfx950; ROCm/ATOM#2422 fixes the mono long-context decision. Upstream recipes/MiniMax-M3-Agentic-InferenceX.md is unchanged. - Mono decode on at every TP4 point: drop ATOM_MONO_ENABLE=0 from the indexer-CP points C15/C20/C24/C28. Mono serves decode steps of up to 16 tokens (four requests with EAGLE3 K3), covering all of TP4 C1/C2/C4. ATOM builds mono for TP4 only, so TP2 runs the unfused path. - Add TP2 C4 (max-num-seqs 8); GPU-resident TP2 points are C1/C2/C4. - Record LMCache 0.5.6.dev139+gf22dec28 (the wheel in the new image) for both DRAM-offload arms; offload settings unchanged. - Recipe cites NVIDIA/srt-slurm#507 (in srt-slurm since v2.36.0) for extra-kv-connectors instead of the dropped 507 patch. - No data-type or precision change to the EAGLE3 draft (Inferact/MiniMax-M3-EAGLE3-GQA). Risk: ROCm/ATOM#2452 (CUDA-graph pad rows in the wide MoE path, 5+ tokens) is not in this image; every batch size 1-18 is captured, so steps of up to four requests are never padded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Move
minimaxm3-fp4-mi355x-atom-agentic-mtpto the 2026-10-07 ATOM nightly and turn MiniMax-M3 mono decode on at every TP4 point. Follows the layout of #3388.rocm/atom-dev:nightly_202609281543(ATOM0.1.7.dev43+gaa0c5c3a1) →rocm/atom-dev:nightly_202610070333(digestsha256:2f605a3e8b459a0385f784edb0335c11892277fee650fe42044e4af39e36dd01, ATOM0.1.7.dev60+g7fc0926c6, ROCm 7.2.4).recipes/MiniMax-M3-Agentic-InferenceX.mdis unchanged.ATOM_MONO_ENABLE=0from the indexer-CP points C15, C20, C24 and C28 (perf(amd): enable MiniMax-M3 ATOM FlyDSL decode / 启用 MiniMax-M3 ATOM FlyDSL 解码 #3388 had set it after they hung in run 36493321464). Mono serves decode steps of up to 16 tokens (four requests with EAGLE3 K3), covering all of TP4 C1, C2 and C4. ATOM builds mono for TP4 only, so TP2 runs the unfused path.max-num-seqs 8); the GPU-resident TP2 points are now C1, C2 and C4.0.5.6.dev139+gf22dec28, the wheel in the new image, for both DRAM-offload arms; the offload settings are unchanged.extra-kv-connectorsinstead of the dropped507-lmcache-server-atom-sglang.patch.Inferact/MiniMax-M3-EAGLE3-GQA):online_quant_config(ptpc_fp8),kv_cache_dtype fp8andindex-cache-dtype fp8are unchanged; mono decode changes the target model's decode kernels, not draft precision.Validation
validate_perf_changelog,infx.matrix.plan(19 throughput points, full MiniMax vendor eval at each point),git diff --check.pytest infx/tests/{launch,srt_slurm,matrix}with srtctl v2.39.1: 730 passed.中文
rocm/atom-dev:nightly_202610070333(ATOM0.1.7.dev60+g7fc0926c6,含 fix(mono): zero the mailboxes and fence the ranks in one FlyDSL launch ROCm/ATOM#2483 的 mono step fence 修复)。ATOM_MONO_ENABLE=0,所有 TP4 点位启用 MiniMax-M3 mono decode(每步最多 16 个 token,即 EAGLE3 K3 下 4 个请求,覆盖 C1/C2/C4);ATOM 只为 TP4 构建 mono,TP2 走非融合路径。0.5.6.dev139+gf22dec28,offload 配置不变。🤖 Generated with Claude Code