Skip to content

Commit 817e2d5

Browse files
Fangzhou-Aiclaudechunfangamd
authored
[AMD] MiniMax-M3.1-Flash MI355X vLLM: latest nightly image and merged optimization flags / [AMD] MiniMax-M3.1-Flash MI355X vLLM:最新 nightly 镜像与已合入优化的开关 (#4866)
* [AMD] MiniMax-M3.1-Flash MI355X vLLM: latest nightly image and merged optimization flags Pin vllm/vllm-openai-rocm nightly-4fab5a07 (2026-11-06) by digest and enable the MiniMax-M3.1 ROCm optimizations merged since the day-zero image: drafter monokernel, parallel decode top-k, Rust frontend, INT4 quick all-reduce, skinny GEMM off, and breakable CUDA graphs at c16/c32. DBO is removed from c16-c64. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Link the performance changelog entry to this PR Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Drop INT4 quick all-reduce: the nightly image's AITER lacks QuickAllReduceInt4.compile Workers failed in init_device at every point (first CI run, c1). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Chun Fang <chun.fang@amd.com>
1 parent bfc8e78 commit 817e2d5

3 files changed

Lines changed: 36 additions & 34 deletions

File tree

‎inferencex-e2e/benchmarks/single_node/srt-slurm-recipes/minimaxm31flash/vllm/mi355x-fp4/agentic.yaml‎

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
# MiniMax-M3.1-Flash AgentX on MI355X with vLLM, following the MI355X TP4
2-
# recipe at https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash and
3-
# https://vllm.ai/blog/2026-10-23-minimax-m31-flash, with native DSpark.
4-
# Checkpoint: AMD's Quark export amd/MiniMax-M3.1-Flash-Quark-MXFP4 (routed
5-
# experts stored in OCP MXFP4, run as W4A4 on the AITER MoE; every other layer
6-
# and the dspark/ draft as in MiniMaxAI/MiniMax-M3.1-Flash). Long prefill
7-
# steps run with dual-batch overlap (DBO). Sequence-parallel prefill
8-
# (VLLM_ROCM_MINIMAX_M3_SP_PREFILL) stays off: the image does not
9-
# enable it on this checkpoint.
101
base:
112
schema: 2
123
name: minimaxm31flash-fp4-mi355x-vllm-agentic
@@ -36,7 +27,7 @@ base:
3627
args:
3728
served-model-name: amd/MiniMax-M3.1-Flash-Quark-MXFP4
3829
tensor-parallel-size: 4
39-
# Reserve headroom for DBO prefill and allocations after memory profiling.
30+
# Reserve headroom for allocations after memory profiling.
4031
gpu-memory-utilization: 0.85
4132
language-model-only: true
4233
trust-remote-code: true
@@ -54,31 +45,33 @@ base:
5445
disable-hybrid-kv-cache-manager: true
5546
enable-prefix-caching: true
5647
max-model-len: 1048576
57-
# 32K-token prefill steps, so DBO (from 16384 tokens) can split them.
5848
max-num-batched-tokens: 32768
59-
# DBO: a prefill step of 16384+ tokens runs as two microbatches, one's
60-
# all-reduce under the other's compute; decode steps stay whole.
61-
enable-dbo: true
62-
dbo-prefill-token-threshold: 16384
63-
dbo-decode-token-threshold: 32768
6449
disable-uvicorn-access-log: true
6550
env:
6651
# The export's recommended MoE setup: AITER MoE, and the MXFP8 shared
6752
# expert stays a separate MLP (no shared-expert fusion).
6853
VLLM_ROCM_USE_AITER: '1'
6954
VLLM_ROCM_USE_AITER_MOE: '1'
7055
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS: '0'
71-
# DBO needs the V2 model runner (the V1 runner refuses DSpark).
7256
VLLM_USE_V2_MODEL_RUNNER: '1'
73-
# Bind each HIP stream to one hardware queue. The image's HIP moves an
74-
# active stream to the least loaded queue, which can put DBO's
75-
# all-reduce stream on the compute stream's queue and serialize them.
7657
DEBUG_HIP_DYNAMIC_QUEUES: '0'
7758
PYTHONNOUSERSITE: '1'
7859
PYTHONUNBUFFERED: '1'
7960
VLLM_ENGINE_READY_TIMEOUT_S: '7200'
8061
# Outlast AIPerf's pooled-connection idle gaps.
8162
VLLM_HTTP_TIMEOUT_KEEP_ALIVE: '900'
63+
# Rust API frontend from the image's vllm package: frees the Python
64+
# API server from tokenization and streaming at AgentX request rates.
65+
VLLM_USE_RUST_FRONTEND: '1'
66+
# The draft LM head's skinny GEMM takes about 5x longer at exactly 5
67+
# requests than at 4 (0.28 vs 0.05 ms per call); the regular GEMM has no such cliff.
68+
VLLM_ROCM_USE_SKINNY_GEMM: '0'
69+
# Parallel top-16 block selection for the NVFP4 indexer; the FP8 indexer
70+
# of the mono points bypasses it.
71+
VLLM_ROCM_PARALLEL_INDEX_TOPK: '1'
72+
# Fused FlyDSL kernels for DSpark 7 draft steps of up to 10 requests;
73+
# the 3-token draft keeps the stock draft layers.
74+
VLLM_ROCM_MINIMAX_M3_MONO_DRAFTER: '1'
8275
benchmark:
8376
env:
8477
AIPERF_REQUIRED_SERVER_METRIC_PREFIX: 'vllm:'
@@ -92,7 +85,7 @@ base:
9285
# and steps with prefill run on the normal path, eager. AgentX tool-call gaps
9386
# keep fewer requests decoding than CONC, so c4 and c8 still reach it. Mono
9487
# needs FP8 KV and indexer caches in the shuffled KV layout and no piecewise
95-
# graphs. No DBO here: 8192-token prefill steps on the V1 runner.
88+
# graphs. 8192-token prefill steps on the V1 runner.
9689
zip_override_tp4_dspark7_mono:
9790
roles:
9891
agg:
@@ -102,9 +95,6 @@ zip_override_tp4_dspark7_mono:
10295
attention-config: '{"indexer_kv_dtype":"fp8"}'
10396
compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY"}'
10497
max-num-batched-tokens: 8192
105-
enable-dbo: null
106-
dbo-prefill-token-threshold: null
107-
dbo-decode-token-threshold: null
10898
speculative-config: '{"method":"dspark","num_speculative_tokens":7,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
10999
max-num-seqs: [2, 4, 8, 16]
110100
env:
@@ -116,20 +106,27 @@ zip_override_tp4_dspark7_mono:
116106
env:
117107
CONC: ['1', '2', '4', '8']
118108

119-
# c16-c32: DSpark 7 on the NVFP4 KV cache with DBO, at the base 0.85 memory
120-
# budget (headroom for DBO prefill). Admission is 2x CONC.
109+
# c16-c32: DSpark 7 on the NVFP4 KV cache. Breakable CUDA graphs capture the
110+
# prefill and mixed steps too. The capture list (every multiple of 8 up to 256,
111+
# then 384-8192; a coarse list makes decode about 10% slower) is a deprecated
112+
# alias on the V2 runner that sets both the prefill token sizes and the decode
113+
# request sizes (1-32 at c16); the new per-kind fields would change the decode
114+
# graphs. Admission is 2x CONC.
121115
zip_override_tp4_dspark7:
122116
roles:
123117
agg:
118+
env:
119+
VLLM_USE_BREAKABLE_CUDAGRAPH: '1'
124120
args:
121+
compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE","cudagraph_capture_sizes":[1,2,4,8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,384,512,768,1024,1536,2048,3072,4096,6144,8192]}'
125122
speculative-config: '{"method":"dspark","num_speculative_tokens":7,"attention_backend":"TRITON_ATTN","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}'
126123
max-num-seqs: [32, 64]
127124
benchmark:
128125
env:
129126
CONC: ['16', '32']
130127

131128
# c64: DSpark 3 (the blog's MI355X draft length from c8) on the NVFP4 KV cache
132-
# with DBO, sequence-parallel prefill, 0.90 memory utilization, and a CPU KV tier. The c64 working set
129+
# with sequence-parallel prefill, 0.90 memory utilization, and a CPU KV tier. The c64 working set
133130
# outgrows the 14.2M-token GPU KV cache; SimpleCPUOffloadConnector (eager)
134131
# holds about 24M tokens in 1349 GB of host memory (dram-utilization 0.9 of the
135132
# TP4 lane) and serves the misses.

‎inferencex-e2e/configs/amd-master.yaml‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -904,14 +904,8 @@ dsv41flash-fp4-mi355x-vllm-agentic-dspark-tp8-c1:
904904
search-space:
905905
- { tp: 8, kv-offloading: none, spec-decoding: mtp, conc-list: [1], srt-recipe: agentic.yaml }
906906

907-
# MiniMax-M3.1-Flash AgentX on MI355X: day-zero vLLM ROCm image from
908-
# https://vllm.ai/blog/2026-10-23-minimax-m31-flash, verified 2026-10-23.
909-
# AMD's Quark MXFP4 export (routed experts in MXFP4, W4A4 on the AITER MoE)
910-
# at TP4 with native DSpark: 7 drafts, mono decode and an FP8 KV cache at
911-
# c1-c8; 7 drafts, an NVFP4 KV cache and DBO at c16-c32; 3 drafts, DBO and a
912-
# CPU KV tier at c64. Throughput runs use the minimax-m3.1-flash__dspark__native__probabilistic-block golden AL.
913907
minimaxm31flash-fp4-mi355x-vllm-agentic-dspark:
914-
image: vllm/vllm-openai-rocm:minimax-m31-flash@sha256:ae8681212aa5291d8c27f06e90016435e3fca144a68fd5c439231f6475f74569
908+
image: vllm/vllm-openai-rocm:nightly-4fab5a07475822c6eaa971dceb2e2220d0446808@sha256:6f126f27a3b58959da3c16076248fc99eb31e26d0a3ae9f8563bda7317d6a7e6
915909
model: amd/MiniMax-M3.1-Flash-Quark-MXFP4
916910
model-prefix: minimaxm31flash
917911
runner: cluster:mi355x-amds

‎inferencex-e2e/perf-changelog.yaml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12669,3 +12669,14 @@
1266912669
- "No point changes: concurrency 1, 2, 4, 8, 16 and 32 on TP8, TP4 and TP2 (18 points), all re-measured on the new image."
1267012670
- "DSpark draft: vLLM builds it with the checkpoint's own quantization config and the target's fp8_ds_mla KV cache, and its weights are used as shipped (FP8 E4M3 with UE8M0 block scales, MXFP4 routed experts). On the TP4 points --monokernel also runs the routed-expert FFN of the three draft layers as one launch. That launch quantizes the FFN input to MXFP8 against the same MXFP4 expert weights, as it does for the target layers, where vLLM's gfx942 MoE multiplies bf16 activations with them. The draft weights, its KV cache and its attention are unchanged, and the target model's output does not depend on this launch, only how many drafts it accepts."
1267112671
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4617
12672+
12673+
- config-keys:
12674+
- minimaxm31flash-fp4-mi355x-vllm-agentic-dspark
12675+
scenario-type: [agentic-coding]
12676+
description:
12677+
- "Image vllm/vllm-openai-rocm:minimax-m31-flash (vLLM 0.32.0rc1.dev364+g8d0f05a0c) -> nightly-4fab5a07475822c6eaa971dceb2e2220d0446808 (vLLM main of 2026-11-05), pinned by digest. It carries the MiniMax-M3.1 ROCm work merged since: decode CP (#64448), qkv input-norm quant fusion (#63637), four-wave decode top-k (#65087), local DSpark 7 indexer scoring below 3 requests (#65432), FFN-side MXFP8 quant fusion (#65478), sparse-decode splits per XCD (#65481), MXFP8 GEMM tile retune for M=17-256 (#65530), DSpark drafter monokernel (#65386) and opt-in parallel top-k (#65267)."
12678+
- "New env at every point: VLLM_ROCM_MINIMAX_M3_MONO_DRAFTER=1 (fused FlyDSL DSpark 7 draft steps of up to 10 requests; the c64 3-token draft keeps the stock layers), VLLM_ROCM_PARALLEL_INDEX_TOPK=1 (NVFP4 indexer points; the FP8 indexer of c1-c8 bypasses it), VLLM_USE_RUST_FRONTEND=1 and VLLM_ROCM_USE_SKINNY_GEMM=0 (removes the draft LM head's 5-request skinny-GEMM cliff)."
12679+
- "C16/C32: breakable CUDA graphs (VLLM_USE_BREAKABLE_CUDAGRAPH=1, FULL_AND_PIECEWISE with a multiple-of-8 capture list up to 256, then 384-8192). INT4 quick all-reduce stays off: the image's AITER lacks the QuickAllReduceInt4.compile that vLLM's FlyDSL INT4 path calls, so workers fail at startup. DBO is removed from C16/C32/C64 (C1-C8 already ran without it); the 32768-token prefill budget, max-num-seqs and memory utilization are unchanged."
12680+
- "C1-C8 (DSpark 7, mono decode, FP8 KV and indexer caches) and C64 (DSpark 3, NVFP4 KV, CPU KV offload) keep their speculative, KV and offload settings."
12681+
- "Draft data types unchanged: the dspark/ draft keeps its MXFP8 config (FP8 E4M3 projections with 1x32 UE8M0 scales; BF16 fc, Markov and confidence heads, norms) and an FP8 draft KV cache. The drafter kernels replace the draft layers' MXFP8 linear, norm and attention ops, and vLLM's tests/models/minimax_m3/test_dspark_drafter.py holds them to the stock layers' own numerical spread."
12682+
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4866

0 commit comments

Comments
 (0)