Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c3221b2
feat: add minimaxm3-fp4-mi355x-atom-mtp benchmark script and CI config
seungrokj Jun 20, 2026
d6426c4
chore: add perf-changelog entry for minimaxm3-fp4-mi355x-atom-mtp
seungrokj Jun 20, 2026
a1b42c4
fix: update minimaxm3-fp4-mi355x-atom-mtp image to MiniMax-M3-20260619
seungrokj Jun 20, 2026
ae97ec6
fix: add spec-decoding: mtp to minimaxm3-fp4-mi355x-atom-mtp search s…
seungrokj Jun 20, 2026
4fcaa1e
fix: remove duplicate -tp and --max-model-len from minimaxm3_fp4_mi35…
seungrokj Jun 20, 2026
d806d96
fix: trim minimaxm3-fp4-mi355x-atom-mtp ISL=8192 search space; remove…
seungrokj Jun 20, 2026
ae68465
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 20, 2026
9f780ff
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 20, 2026
db0bc1f
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 21, 2026
86308ff
fix: bump minimaxm3-fp4-mi355x-atom-mtp image to MiniMax-M3-20260622
seungrokj Jun 23, 2026
9284de7
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
5317967
Merge branch 'amd/m3_atom_mtp' of https://github.com/SemiAnalysisAI/I…
seungrokj Jun 23, 2026
4458bbe
fix: disable prefix caching for minimaxm3-fp4-mi355x-atom-mtp
seungrokj Jun 23, 2026
bb638f9
fix: update minimaxm3-fp4-mi355x-atom scripts and image bump
seungrokj Jun 23, 2026
30a04d1
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
a592385
fix: add minimaxm3-fp4-mi355x-atom to perf-changelog entry
seungrokj Jun 23, 2026
182decd
fix: revert minimaxm3-fp4-mi355x-atom image/search-space, delete scri…
seungrokj Jun 23, 2026
e69b5f2
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
e8b2aba
fix: restore minimaxm3_fp4_mi355x_atom.sh
seungrokj Jun 23, 2026
c6e8d15
fix: bump MAX_NUM_SEQS to 256 for minimaxm3-fp4-mi355x-atom-mtp
seungrokj Jun 23, 2026
65a9d7d
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
bcc8e85
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
7087cf2
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 23, 2026
6ee738b
Merge branch 'main' into amd/m3_atom_mtp
seungrokj Jun 24, 2026
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
24 changes: 22 additions & 2 deletions .github/configs/amd-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2591,7 +2591,7 @@ minimaxm3-fp8-mi355x-vllm-mtp:
# https://github.com/ROCm/ATOM/blob/5d42d49f9e4292e5b61475917e92e7ec1b1dacb7/recipes/MiniMax-M3.md
# block size 128 is mandatory for MSA. TP4 on a single gfx950 node, per the recipe.
minimaxm3-fp4-mi355x-atom:
image: rocm/atom-dev:M3
image: rocm/atom-dev:MiniMax-M3-20260622
model: amd/MiniMax-M3-MXFP4
model-prefix: minimaxm3
runner: mi355x
Expand All @@ -2610,7 +2610,27 @@ minimaxm3-fp4-mi355x-atom:
search-space:
- { tp: 2, conc-start: 128, conc-end: 256 }
- { tp: 4, conc-start: 1, conc-end: 256 }
- { tp: 8, conc-start: 1, conc-end: 2 }

Comment thread
seungrokj marked this conversation as resolved.
minimaxm3-fp4-mi355x-atom-mtp:
image: rocm/atom-dev:MiniMax-M3-20260622
model: amd/MiniMax-M3-MXFP4
model-prefix: minimaxm3
runner: mi355x
precision: fp4
framework: atom
multinode: false
scenarios:
fixed-seq-len:
- isl: 1024
osl: 1024
search-space:
- { tp: 2, conc-start: 128, conc-end: 256, spec-decoding: mtp }
- { tp: 4, conc-start: 1, conc-end: 256, spec-decoding: mtp }
- isl: 8192
osl: 1024
search-space:
- { tp: 2, conc-start: 128, conc-end: 128, spec-decoding: mtp }
Comment thread
seungrokj marked this conversation as resolved.
- { tp: 4, conc-start: 1, conc-end: 256, spec-decoding: mtp }
Comment thread
seungrokj marked this conversation as resolved.

# MiniMax-M3 MXFP8 MI300X day-zero recipe. Reuse the dedicated ROCm image and
# MI355X serving shape, but retain the default BF16 KV cache because this
Expand Down
48 changes: 23 additions & 25 deletions benchmarks/single_node/fixed_seq_len/minimaxm3_fp4_mi355x_atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ check_env_vars \
RANDOM_RANGE_RATIO \
RESULT_FILENAME \
EP_SIZE \
DP_ATTENTION \
MAX_MODEL_LEN
DP_ATTENTION

if [[ -n "$SLURM_JOB_ID" ]]; then
echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME"
Expand All @@ -22,41 +21,40 @@ echo "TP: $TP, CONC: $CONC, ISL: $ISL, OSL: $OSL, EP_SIZE: $EP_SIZE, DP_ATTENTIO

SERVER_LOG=/workspace/server.log

export OMP_NUM_THREADS=1
PARALLEL_ARGS=(-tp "$TP") #TP
if [ "$DP_ATTENTION" = "true" ]; then
if [ "$EP_SIZE" -gt 1 ]; then #DP+EP
PARALLEL_ARGS=(-tp "$TP" --enable-expert-parallel --enable-dp-attention )
else #DP+TP
PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention )
fi
fi

# Use the matrix-supplied MAX_MODEL_LEN (isl + osl + 256). Eval-only jobs need a
# larger window for the eval prompts, so override it from the eval context.
if [ "${EVAL_ONLY}" = "true" ]; then
setup_eval_context
MAX_MODEL_LEN="$EVAL_MAX_MODEL_LEN"
fi

if [ "$EP_SIZE" -gt 1 ]; then
EP=" --enable-expert-parallel"
else
EP=" "
fi
SPEC_ARGS=()

# Start GPU monitoring (power, temperature, clocks every second)
start_gpu_monitor
MEM_FRAC_STATIC=0.8

set -x

# Flags follow the ATOM MiniMax-M3 MXFP4 recipe (FP4 on 4xMI355 section):
# https://github.com/ROCm/ATOM/blob/5d42d49f9e4292e5b61475917e92e7ec1b1dacb7/recipes/MiniMax-M3.md
# --block-size 128 is mandatory for MiniMax MSA. KV cache is left at the default
# dtype: amd/MiniMax-M3-MXFP4 ships no calibrated FP8 KV scales, so
# --kv_cache_dtype fp8 trips an assertion (k_scale is None) in the MSA
# fused_qknorm kernel during init.
export AITER_QUICK_REDUCE_QUANTIZATION=INT4
export MAX_MODEL_LEN=32768
export MAX_NUM_BATCHED_TOKENS=32768
export MAX_NUM_SEQS=128
# (srok), not yet
# --kv_cache_dtype fp8 \
python3 -m atom.entrypoints.openai_server \
--model $MODEL \
--server-port $PORT \
-tp $TP \
--max-model-len $MAX_MODEL_LEN $EP \
"${PARALLEL_ARGS[@]}" \
"${SPEC_ARGS[@]}" \
--block-size 128 \
--gpu-memory-utilization $MEM_FRAC_STATIC \
--max-model-len $MAX_MODEL_LEN \
Comment thread
seungrokj marked this conversation as resolved.
Outdated
--max-num-batched-tokens $MAX_NUM_BATCHED_TOKENS \
--max-num-seqs $MAX_NUM_SEQS \
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
--trust-remote-code \
--no-enable_prefix_caching \
> $SERVER_LOG 2>&1 &

SERVER_PID=$!
Expand All @@ -76,7 +74,7 @@ run_benchmark_serving \
--max-concurrency "$CONC" \
--result-filename "$RESULT_FILENAME" \
--result-dir /workspace/ \
--trust-remote-code
--trust-remote-code $( [[ ${#SPEC_ARGS[@]} -gt 0 ]] && echo "--use-chat-template" )

# After throughput, run evaluation only if RUN_EVAL is true
if [ "${RUN_EVAL}" = "true" ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/usr/bin/env bash

source "$(dirname "$0")/../../benchmark_lib.sh"

check_env_vars \
MODEL \
TP \
CONC \
ISL \
OSL \
RANDOM_RANGE_RATIO \
RESULT_FILENAME \
EP_SIZE \
DP_ATTENTION
Comment thread
cursor[bot] marked this conversation as resolved.

if [[ -n "$SLURM_JOB_ID" ]]; then
echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME"
fi

echo "TP: $TP, CONC: $CONC, ISL: $ISL, OSL: $OSL, EP_SIZE: $EP_SIZE, DP_ATTENTION: $DP_ATTENTION"

SERVER_LOG=/workspace/server.log

PARALLEL_ARGS=(-tp "$TP") #TP
if [ "$DP_ATTENTION" = "true" ]; then
if [ "$EP_SIZE" -gt 1 ]; then #DP+EP
PARALLEL_ARGS=(-tp "$TP" --enable-expert-parallel --enable-dp-attention )
else #DP+TP
PARALLEL_ARGS=(-tp "$TP" --enable-dp-attention )
fi
fi

SPEC_ARGS=(--method eagle3 --draft-model Inferact/MiniMax-M3-EAGLE3 --num-speculative-tokens 3 )

# Start GPU monitoring (power, temperature, clocks every second)
start_gpu_monitor
MEM_FRAC_STATIC=0.8

set -x
export AITER_QUICK_REDUCE_QUANTIZATION=INT4
export MAX_MODEL_LEN=32768
export MAX_NUM_BATCHED_TOKENS=32768
export MAX_NUM_SEQS=128
# (srok), not yet
# --kv_cache_dtype fp8 \
python3 -m atom.entrypoints.openai_server \
--model $MODEL \
--server-port $PORT \
"${PARALLEL_ARGS[@]}" \
Comment thread
cursor[bot] marked this conversation as resolved.
"${SPEC_ARGS[@]}" \
--block-size 128 \
--gpu-memory-utilization $MEM_FRAC_STATIC \
--max-model-len $MAX_MODEL_LEN \
Comment thread
seungrokj marked this conversation as resolved.
--max-num-batched-tokens $MAX_NUM_BATCHED_TOKENS \
--max-num-seqs $MAX_NUM_SEQS \
Comment thread
seungrokj marked this conversation as resolved.
--trust-remote-code \
--no-enable_prefix_caching \
> $SERVER_LOG 2>&1 &
Comment thread
seungrokj marked this conversation as resolved.
Comment thread
seungrokj marked this conversation as resolved.
Comment thread
cursor[bot] marked this conversation as resolved.

SERVER_PID=$!

# Wait for server to be ready
wait_for_server_ready --port "$PORT" --server-log "$SERVER_LOG" --server-pid "$SERVER_PID"

export PYTHONDONTWRITEBYTECODE=1
run_benchmark_serving \
--model "$MODEL" \
--port "$PORT" \
--backend vllm \
--input-len "$ISL" \
--output-len "$OSL" \
--random-range-ratio "$RANDOM_RANGE_RATIO" \
--num-prompts "$((CONC * 10))" \
--max-concurrency "$CONC" \
--result-filename "$RESULT_FILENAME" \
--result-dir /workspace/ \
--trust-remote-code $( [[ ${#SPEC_ARGS[@]} -gt 0 ]] && echo "--use-chat-template" )

# After throughput, run evaluation only if RUN_EVAL is true
if [ "${RUN_EVAL}" = "true" ]; then
run_eval --framework lm-eval --port "$PORT"
append_lm_eval_summary
fi

# Stop GPU monitoring
stop_gpu_monitor
set +x
7 changes: 7 additions & 0 deletions perf-changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3983,6 +3983,13 @@
- "Remove the runtime SupportsEagle3 source patch now included in the pinned nightly"
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1843

- config-keys:
- minimaxm3-fp4-mi355x-atom-mtp
description:
- "Add minimaxm3-fp4-mi355x-atom-mtp CI recipe: single-node ATOM with EAGLE3 speculative decoding (3 draft tokens) for MiniMax-M3-MXFP4 on MI355X"
- "Supports TP/EP/DP-attention combinations; search space mirrors minimaxm3-fp4-mi355x-atom (ISL=1024,8192 OSL=1024 TP2/TP4/TP8)"
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1866

- config-keys:
- minimaxm3-fp8-gb300-dynamo-vllm
description:
Expand Down
Loading