Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ base:
args:
served-model-name: amd/MiniMax-M3.1-Flash-Quark-MXFP4
tensor-parallel-size: 4
gpu-memory-utilization: 0.9
# Reserve headroom for DBO prefill and allocations after memory profiling.
gpu-memory-utilization: 0.85
language-model-only: true
trust-remote-code: true
reasoning-parser: minimax_m3
Expand Down Expand Up @@ -115,14 +116,39 @@ zip_override_tp4_dspark7_mono:
env:
CONC: ['1', '2', '4', '8']

# c16-c64: DSpark 3 (the blog's MI355X draft length from c8) on the NVFP4 KV
# cache with DBO.
zip_override_tp4_dspark3:
# c16-c32: DSpark 7 on the NVFP4 KV cache with DBO, at the base 0.85 memory
# budget (headroom for DBO prefill). Admission is 2x CONC.
zip_override_tp4_dspark7:
roles:
agg:
args:
speculative-config: '{"method":"dspark","num_speculative_tokens":7,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
max-num-seqs: [32, 64]
benchmark:
env:
CONC: ['16', '32']

# c64: DSpark 3 (the blog's MI355X draft length from c8) on the NVFP4 KV cache
# with DBO, sequence-parallel prefill, 0.90 memory utilization, and a CPU KV tier. The c64 working set
# outgrows the 14.2M-token GPU KV cache; SimpleCPUOffloadConnector (eager)
# holds about 24M tokens in 1349 GB of host memory (dram-utilization 0.9 of the
# TP4 lane) and serves the misses.
override_tp4_dspark3_c64_offload:
roles:
agg:
args:
gpu-memory-utilization: 0.9
speculative-config: '{"method":"dspark","num_speculative_tokens":3,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
max-num-seqs: [32, 64, 128]
max-num-seqs: 128
kv-transfer-config: '{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use":1349000000000,"lazy_offload":false}}'
env:
# Sequence-parallel prefill, from #4463. Upstream (vllm#63491) supports
# the MXFP4 W4A4 MoE; whether the Quark export's dense layers reach its
# MXFP8 kernel is untested, so this arm is the first check.
Comment on lines +145 to +147

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): The new recipe comments record PR history and testing status, which AGENTS.md's comment rules ban. sweep:#4463|#4537|first check Example: agentic.yaml:145-147 says "Sequence-parallel prefill, from #4463" and "this arm is the first check". Fix: cut these comments down to short technical notes on the line they sit above. Leave PR provenance and validation status in perf-changelog.yaml, which already records them.

Why this was flagged

AGENTS.md (Comments, mandatory) bans history comments, meaning how code evolved, where it came from, or past results, and names git and perf-changelog.yaml as the record. The comment this diff adds at agentic.yaml:145-147 cites #4463 as the source of the setting. It also calls the arm "the first check" of an untested path. Once a sweep runs, that note goes stale and still sits in the recipe. The perf-changelog.yaml block added by this same diff already carries the #4463/#4537 provenance and the untested-on-Quark caveat.

Verification: The diff adds a comment to agentic.yaml at lines 145-147, in override_tp4_dspark3_c64_offload, reading "from #4463" and "this arm is the first check". AGENTS.md:54-58 says: "No history: how code evolved, what it replaced, where it came from, or past results. Git and perf-changelog.yaml are the record." Nothing breaks at runtime.

VLLM_ROCM_MINIMAX_M3_SP_PREFILL: '1'
PYTHONHASHSEED: '42'
benchmark:
env:
CONC: ['16', '32', '64']
CONC: '64'
KV_OFFLOADING: 'dram'
TOTAL_CPU_DRAM_GB: '1349'
9 changes: 5 additions & 4 deletions inferencex-e2e/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1224,8 +1224,8 @@ dsv41flash-fp4-mi355x-vllm-agentic-dspark:
# https://vllm.ai/blog/2026-10-23-minimax-m31-flash, verified 2026-10-23.
# AMD's Quark MXFP4 export (routed experts in MXFP4, W4A4 on the AITER MoE)
# at TP4 with native DSpark: 7 drafts, mono decode and an FP8 KV cache at
# c1-c8; 3 drafts, an NVFP4 KV cache and DBO from c16. Throughput runs use the
# minimaxm31flash_dspark golden AL.
# c1-c8; 7 drafts, an NVFP4 KV cache and DBO at c16-c32; 3 drafts, DBO and a
# CPU KV tier at c64. Throughput runs use the minimaxm31flash_dspark golden AL.
minimaxm31flash-fp4-mi355x-vllm-agentic-dspark:
image: vllm/vllm-openai-rocm:minimax-m31-flash@sha256:ae8681212aa5291d8c27f06e90016435e3fca144a68fd5c439231f6475f74569
model: amd/MiniMax-M3.1-Flash-Quark-MXFP4
Expand All @@ -1237,9 +1237,10 @@ minimaxm31flash-fp4-mi355x-vllm-agentic-dspark:
srt-recipe-dir: minimaxm31flash/vllm/mi355x-fp4
scenarios:
agentic-coding:
- dram-utilization: 0.80
- dram-utilization: 0.90
search-space:
- { tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2, 4, 8, 16, 32, 64], srt-recipe: agentic.yaml }
- { tp: 4, kv-offloading: none, spec-decoding: mtp, conc-list: [1, 2, 4, 8, 16, 32], srt-recipe: agentic.yaml }
- { tp: 4, kv-offloading: dram, kv-offload-backend: { name: vllm-simple }, spec-decoding: mtp, conc-list: [64], srt-recipe: agentic.yaml:override_tp4_dspark3_c64_offload }

# MiniMax-M3.1-Flash AgentX on MI355X with SGLang: day-zero image from the SGLang
# cookbook (https://docs.sglang.io/cookbook/autoregressive/MiniMax/MiniMax-M3.1),
Expand Down
13 changes: 13 additions & 0 deletions inferencex-e2e/perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11769,3 +11769,16 @@
- "6 DEP2 prefill workers with a DEP8 decode at conc 280-400 or a DEP16 decode at conc 300; MegaMoE, DSpark block 7 with fp8 draft KV, Dynamo KV router with fastokens for prefill and least-loaded routing across decode DP ranks."
- "Prefill: shortest-prefill-first, chunk 8192, mem-fraction-static 0.85, HiCache 200 GB per rank write_back."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4686

- config-keys:
- minimaxm31flash-fp4-mi355x-vllm-agentic-dspark
scenario-type: [agentic-coding]
description:
- "Image unchanged: vllm/vllm-openai-rocm:minimax-m31-flash (vLLM 0.32.0rc1.dev364+g8d0f05a0c) on amd/MiniMax-M3.1-Flash-Quark-MXFP4, so no upstream framework change."
- "Search space: TP4 c1-c32 without KV offloading, and c64 moves to a new TP4 point with host-DRAM KV offload (vllm-simple, agentic.yaml:override_tp4_dspark3_c64_offload); dram-utilization 0.80 -> 0.90."
- "C1-C8 are unchanged (DSpark 7, mono decode, FP8 KV and indexer caches, 0.85 memory utilization)."
- "C16/C32 (from #4537): DSpark 3 -> 7 on the NVFP4 KV cache with DBO, max-num-seqs 32/64; the base gpu-memory-utilization drops 0.9 -> 0.85 for DBO prefill headroom. Throughput runs use the minimaxm31flash_dspark golden AL, which covers 7 drafts."
- "C64 (from #4463): DSpark 3 at 0.9 memory utilization, max-num-seqs 128, plus SimpleCPUOffloadConnector (eager, cpu_bytes_to_use 1349 GB): 185,025 CPU blocks (about 23.7M tokens) beside the 14.6M-token GPU KV cache in run 41003224750."
- "C64 also sets PYTHONHASHSEED=42 and VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1. Sequence-parallel prefill stays off on this checkpoint: at 8d0f05a0c it needs an MXFP8 kernel on layer.quant_method.kernel, which the Quark linear method does not expose, and every rank logs it as off."
- "Draft data types unchanged: the dspark/ draft loads with its own MXFP8 config (FP8 E4M3 attention and FFN projections with 1x32 UE8M0 scales; BF16 fc, Markov and confidence heads, norms) and an FP8 draft KV cache. Only its length changes, at C16/C32."
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4671
Loading