Skip to content

[ROCm][AMD] MiniMax-M3 gfx950 / MI355X Performance Optimization (vLLM) #66588

Open

Description

@vorapolsiloai

Tracker for the MI355X (gfx950) optimizations of MiniMax-M3 on vLLM, for text and image input:
amd/MiniMax-M3-MXFP4 (MXFP4 experts) and, for the image stack below,
amd/MiniMax-M3-MXFP4-AttnFP8 (FP8 attention and dense layers), at TP2, TP4 and TP8.
It lists every PR the optimized stacks use, ours and other authors', with what it does, a measured gain and its status, so anyone
can build the same stack before everything is merged, and see what has landed. Contributors working on MiniMax-M3 for ROCm are
welcome to comment with their PRs.

Related: Qwen3.8-2.4T-A95B MI355X tracker #57149; MiniMax-M3 roadmap #45668

This issue body is the source of truth and is edited in place; comments are the changelog (Status change YYYY-MM-DD). The tables list the PRs that are not merged yet (merged PRs stay for 7 days): on a nightly image, these are the ones to apply for the full stack. Older merged PRs move to the collapsed "Merged" list at the end. Statuses refresh daily.

To add a PR: put Part of vllm-project/vllm#66588 in the PR description (not Fixes, which would close this issue), or comment here with its link, what it does and a measured gain with its shape.

All-reduce (correctness and communication)

PR What it does and why Measured gain (MI355X) Status Author Depends on
#61119 Defer each layer's FFN all-reduce into the next layer's norm (as the CUDA model already does), so both all-reduces per layer can use the fused all-reduce + norm kernels. Neutral alone; doubles the gain of #65858 at long context. Open @akii96
#64929 VLLM_ROCM_USE_AITER_QUICK_REDUCE=0 keeps INT4 QuickReduce on vLLM's HIP kernel while AITER stays on. Interim switch until vLLM's AITER pin includes ROCm/aiter#7258. Correctness: MMMU val 0.29 -> 0.66 (TP2); throughput unchanged. Draft @vorapolsiloai
#65858 Route the prefill-size all-reduce + GemmaRMSNorm to AITER's FlyDSL INT4 QuickReduce + RMSNorm kernel instead of a plain all-reduce and a separate norm. Throughput +2.8 to +4.5% at 8k/1k c64, 32k/1k c32, 128k/1k c8 on top of #61119 (text, TP4). Draft @akii96 #61119

Sparse attention and indexer (text)

PR What it does and why Measured gain (MI355X) Status Author Depends on
#52963 Sparse GQA prefill attention on gfx950: four query tokens per program load each distinct KV block once (about 3x less KV traffic), with a per-group fallback to the old kernel. TTFT -2.2 to -8.4%, throughput +0.2 to +2.2% at 8k/1k-128k/1k, FP8 KV (TP4); attend kernel 1.3-2.1x. Open @akii96

Decode

PR What it does and why Measured gain (MI355X) Status Author Depends on
#59705 Fused sparse-layer decode (mono decode kernel), the TP4 design that #61273 generalizes. Draft @ukannika
#61273 Generalize the mono decode kernel to TP2, TP4 and TP8 (GEMV task folding, multi-KV-head attention sub-passes, LDS scoping). Needs a rebase onto main's mono code from #64111; fixes for that and for TP2 / TP8 are proposed in amd-bishwoadhikari#1. +7.0% at TP8 with those fixes (8-row image sweep). Draft @amd-bishwoadhikari

Vision encoder and multimodal input (image)

Image numbers: 8-row image sweep (512x512 to 2048x1600 images, 256-8192 input tokens, 64 output tokens, concurrency 4-256), output throughput geomean against the same stack without the PR, interleaved A/B runs.

PR What it does and why Measured gain (MI355X) Status Author Depends on
#64928 FP8 ViT attention on ROCm: opt-in VLLM_ROCM_VIT_FP8_PAD_HEAD_DIM=128 pads head_dim 80 to 128 so AITER's asm FP8 kernel runs (2.43 -> 1.42 ms per attention call on a 2048x1600 image); the scale-calibration file is written once by rank 0, atomically. +1.3% (TP2; 2048x1600 rows +5.0%, median TTFT -7.5%), +2.3% (TP4). Open @vorapolsiloai
#65352 Fix the startup hang of --mm-encoder-tp-mode data at TP >= 2: an empty rank typed its output with the tower's fp32 first parameter while the others sent bf16, so the all-gather never completed. Correctness (server did not start). Open @vorapolsiloai
#65016 Multimodal input path under concurrent image traffic: parallel preprocessing sized by --renderer-num-workers when the processor cache is off, and a configurable shm tensor arena (no fallbacks to the pickled path). Consolidates #65017. 2048x1600 c16 row +1.6%, TPOT -65% (TP2); 8-row geomean +0.5%. Open @vorapolsiloai
#65311 Opt-in sequence-parallel vision encoder for single-image batches with --mm-encoder-tp-mode data (patch rows split across TP ranks). 2048x1600 encoder 116.8 -> 85.1 ms (TP2); +1.8% at TP4 in one pass, not reproduced in a repeated A/B. Draft @vorapolsiloai

Scheduling and overlap

PR What it does and why Measured gain (MI355X) Status Author Depends on
#63483 Dual batch overlap under pure tensor parallelism on Model Runner V2 (comm-stream all-reduces, ROCm hipBLASLt handle warm-up). Merged 2026-11-14 @benenzhu
#64927 Opt-in time-bounded prefill hold in the v1 scheduler: while decodes run, new requests wait up to VLLM_PREFILL_HOLD_MS so arrivals batch into one prefill wave, instead of slowing every decode step with one or two prefills; optional short hold at low load. Design discussion next to #56455. +2.0% (TP2, image sweep; +1.3 to +8.2% at c16-c64, TPOT about halved, median TTFT 2-3.3x, P99 TTFT unchanged). Open @vorapolsiloai
#64930 Dual batch overlap under pure TP on ROCm: microbatch all-reduces through QuickReduce on the comm stream, or (TP2) a one-shot INT4 all-reduce over the SDMA copy engines that uses no CUs. Stacked on #63483. +9.5% vs DBO off (TP2, image sweep, prefill steps >= 8192 tokens); TTFT -9%. Not for TP4. Draft @vorapolsiloai #63483

LM-path fusions and JIT warm-up

PR What it does and why Measured gain (MI355X) Status Author Depends on
#65310 Opt-in fused input RMSNorm + per-token FP8 quant for FP8-attention checkpoints, opt-in dense attention for short MSA prefill steps, and warm-up of Triton GEMM and sparse-PA decode variants that otherwise compile inside the first requests. Consolidates #65308, #65309. Open @vorapolsiloai
ROCm/aiter#7380 gfx950 Gluon unified attention and reduce_segments: do not specialize on num_seqs, so byte-identical kernels are not recompiled inside serving requests. Throughput neutral (TP4); removes 0.5-1.5 s of attention compiles from the first requests. Draft @vorapolsiloai

AITER tuned configs

PR What it does and why Measured gain (MI355X) Status Author Depends on
ROCm/aiter#7230 MoE tuned rows for TP8 with the shared expert not fused (E=128, top-4, inter_dim 384); complements ROCm/aiter#7259. Open @afriedri
ROCm/aiter#7259 MoE tuned rows with the shared expert fused (E=129, top-5): TP2 a4w4 prefill re-tune (fused op -8 to -17% at 4k-32k tokens) and new TP8 a16w4 rows for inter_dim 384 (1.14-2.14x per call). +6.4% at TP8 (image sweep, c4 +17%); TP2 neutral. Draft @vorapolsiloai
ROCm/aiter#6529 TP2 decode FMoE rows (a16w4, inter_dim 1536) and fp4 retunes. Draft @amd-bishwoadhikari
ROCm/aiter#6531 Tuned BF16 GEMM rows for the MiniMax-M3 vision encoder. Draft @amd-bishwoadhikari
ROCm/aiter#6585 A8W8 bpreshuffle GEMM rows for the FP8-attention checkpoint at TP1-TP8. Rows that duplicate the base table make AITER fail to load the tables; the trim and extra FP8 qkv / indexer rows are proposed in amd-bishwoadhikari/aiter#2. +0.9% at TP4 with that trim (image sweep). Draft @amd-bishwoadhikari

Other open MiniMax-M3 work on ROCm

PR What it does and why Measured gain (MI355X) Status Author Depends on
#59760 Triton SwiGLU-OAI activation with the clamp folded in, used for prefill batches only (decode stays on the graph-captured path). Draft @amd-bishwoadhikari
Merged (18 PRs, already in main)
PR Area What it does Measured gain (MI355X) Merged Author
#65227 Vision encoder and multimodal input (image) Encoder CUDA graphs: one replay per batch, finer grid up to one max budget, and a startup probe that captures only budgets where replay beats eager. +2.9% with #65084 (TP2; 2048x1600 +6.5%); graph memory 16.9 -> 5.7 GiB per rank, +8% KV-cache tokens. 2026-11-08 @Pb314314
#65084 Vision encoder and multimodal input (image) Encoder CUDA graphs share their capture buffers and use a finer default budget table. +0.7% (TP2), graph memory unchanged with 27 instead of 10 graphs. 2026-11-08 @Isotr0py
ROCm/aiter#7258 All-reduce (correctness and communication) FlyDSL QuickAllReduce INT4: store each group scale as E5M2 instead of E4M3, so groups above 480 no longer clip. MiniMax-M3 all-reduce values reach 6,400-16,800, so BF16 INT4 QuickReduce (routed to this kernel by #59478) gave silently wrong outputs. Correctness: MMMU val 0.27-0.31 -> 0.64-0.66 at TP2 / TP4 / TP8. 2026-11-04 @vorapolsiloai
#65226 Vision encoder and multimodal input (image) Pad MiniMax-M3's encoder graph cu_seqlens with zero-length sequences. Correctness. 2026-11-03 @Pb314314
#64111 Dependencies by other authors MiniMax-M3.1-Flash model; also brings the AMD MiniMax-M3 mono decode code (TP4) to main, which #61273 rebases onto. 2026-10-29 @zyongye
ROCm/aiter#6049 All-reduce (correctness and communication) FlyDSL INT4 QuickReduce: opt-in shared global divisor against E4M3 scale saturation (default off; ROCm/aiter#7258 removes the clip at the default). 2026-10-26 @msaffari-amd
#59478 All-reduce (correctness and communication) Use AITER's FlyDSL INT4 QuickReduce when INT4 QuickReduce is selected. 2026-10-26 @mjkvaak-amd
#62994 Speculative decoding (EAGLE3) MonoKernel (#62712) serves EAGLE3 verify steps (decode steps of up to 16 rows). Output throughput +13.6% at c1, +10.7% at c2 (MT-Bench, EAGLE3 k=3, TP4). 2026-10-22 @micah-wil
#62712 Decode FFN MonoKernel decode for MiniMax-M3 MXFP4 (--monokernel): fused all-reduce, residual, norm and MoE FFN in persistent launches. TPOT -16.6% at 1k/1k c1, -7.8% at c8, parity at c16 (TP4). 2026-10-21 @micah-wil
#52668 Sparse attention and indexer (text) Router GEMM: split the fp32 router weight into three exact bf16 terms and run one stacked bf16 hipBLASLt GEMM instead of the fp32 fallback. Throughput +0.5 to +2.3% at 8k/1k-128k/1k (MI350X, TP4). 2026-10-05 @akii96
#58673 Vision encoder and multimodal input (image) Encoder CUDA graph support for MiniMax-M3. 2026-09-28 @gau-nernst
ROCm/aiter#4970 All-reduce (correctness and communication) FlyDSL INT4 two-shot all-reduce for gfx942 / gfx950. TTFT -5 to -10%, throughput +3 to +4% (text, TP4). 2026-09-22 @samremes
#56849 Sparse attention and indexer (text) Insert sparse-PA K/V into the cache from the strided qkv slices instead of copying them contiguous first (two copies per sparse layer per step). Throughput +1.1 to +4.6% at 8k/1k c4-c128, +0.7 to +2.5% at 60k/600 (text, TP4). 2026-09-17 @akii96
#52664 Sparse attention and indexer (text) Integrate AITER's FP8 indexer scoring and top-k kernels into the MiniMax-M3 sparse attention path. Throughput +13% at c4, +20% at c32 vs the Triton BF16 indexer (TP4). 2026-09-09 @ykamiset
ROCm/aiter#4787 Sparse attention and indexer (text) gfx950 FP8 MFMA sparse-block scoring and top-k with a fused page table, for the Gluon paged-attention path. 2026-09-01 @ukannika
#52033 Decode Dual-stream decode with HIP graphs (overlaps the shared and routed MoE paths). 2026-08-30 @simondanielsson
#52849 Speculative decoding (EAGLE3) AITER Gluon paged-attention decode for MiniMax-M3's MTP and dense layers; it handles multi-token queries, so EAGLE3 verify no longer falls back to unified attention. 2026-08-28 @ukannika
ROCm/aiter#4781 AITER tuned configs gfx950 A16W16 fallback config: retuned small-M tiles and wave counts for the decode dense projections. 2026-08-20 @akii96
Consolidated / superseded PRs
PR Folded into Status
#65017 #65016 Open
#65308 #65310 Open
#65309 #65310 Closed 2026-11-03

Building the image stack before everything is merged

Start from vLLM main and apply the open vLLM PRs above (#63483 before #64930; #61273 with amd-bishwoadhikari#1); apply the open
AITER PRs onto the AITER commit your vLLM pins (ROCm/aiter#6585 with amd-bishwoadhikari/aiter#2; ROCm/aiter#7258 is merged but
needs an AITER pin that includes it, until then set VLLM_ROCM_USE_AITER_QUICK_REDUCE=0 from #64929 or VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE).
Serving options used for the image numbers: --mm-encoder-tp-mode data, --max-num-seqs 256, CUDA graph capture sizes up to 4096,
encoder CUDA graphs, exact sparse top-k (no index_topk_freq).

Proposed fixes in contributor forks

Two public PRs target open PRs' branches rather than main:

Known issues

Last updated 2026-11-17. Gains are relative, measured on MI355X against the stated baseline; see each PR for the setup.

Activity

  1. added
    rocm
    on Nov 9, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
  3. vorapolsiloai commented on Nov 13, 2026

    @vorapolsiloai
    ContributorAuthor

    Status change 2026-11-13

    PR What it does Change
    #65017 Closed 2026-11-03 → Draft
    #65308 Closed 2026-11-03 → Draft
  4. vorapolsiloai commented on Nov 16, 2026

    @vorapolsiloai
    ContributorAuthor

    Status change 2026-11-16

    PR What it does Change
    #63483 Dual batch overlap under pure tensor parallelism on Model Runner V2 (comm-stream all-reduces, ROCm hipBLASLt handle warm-up). Open → Merged 2026-11-14
  5. vorapolsiloai commented on Nov 17, 2026

    @vorapolsiloai
    ContributorAuthor

    Status change 2026-11-17

    PR What it does Change
    #64927 Opt-in time-bounded prefill hold in the v1 scheduler: while decodes run, new requests wait up to VLLM_PREFILL_HOLD_MS so arrivals batch … Draft → Open
    #65310 Opt-in fused input RMSNorm + per-token FP8 quant for FP8-attention checkpoints, opt-in dense attention for short MSA prefill steps, and … Draft → Open
    #65017 Draft → Open
    #65308 Draft → Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    minimaxrocm

    Type

    No type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions