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
@@ -0,0 +1,71 @@
# vLLM Benchmark Configuration for amd/MiniMax-M3-MXFP4 (TP8, EP8)
# =================================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml \
# --run-mode local
#
# Uses Magpie generic script vllm_mi355x.sh on 8x MI355X (gfx950).
# --enable-expert-parallel switches the MoE layers from tensor-parallel to
# expert-parallel; attention stays TP8. M3 MSA requires --block-size 128.
# The EP1 control is benchmark_vllm_amd_mini_max_3_mxfp4_tp8.yaml.

benchmark:
framework: vllm
model: amd/MiniMax-M3-MXFP4
precision: mxfp4
run_mode: docker
gpu_arch: gfx950

envs:
TP: 8
CONC: 32
ISL: 1024
OSL: 1024
NUM_PROMPTS: 64
RANDOM_RANGE_RATIO: 1
MAX_MODEL_LEN: 4096
GPU_MEMORY_UTILIZATION: 0.9
VLLM_USE_BREAKABLE_CUDAGRAPH: 0
VLLM_ROCM_USE_AITER: 1
VLLM_ROCM_USE_AITER_MOE: 1
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS: 1
VLLM_ENGINE_READY_TIMEOUT_S: 3600
EXTRA_VLLM_ARGS: >-
--enable-expert-parallel
--dtype bfloat16
--block-size 128
--max-num-batched-tokens 32768
--max-num-seqs 256
--kv-cache-dtype fp8
--no-enable-prefix-caching
--attention-backend TRITON_ATTN
--moe-backend aiter
--compilation-config={"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY","max_cudagraph_capture_size":256}
--language-model-only
--tool-call-parser minimax_m3
--reasoning-parser minimax_m3
--enable-auto-tool-choice

profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "vllm/vllm-openai-rocm:v0.29.0"
# hf_cache_path: ""
benchmark_script: "vllm_mi355x.sh"
timeout_seconds: 14400

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
70 changes: 70 additions & 0 deletions examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# vLLM Benchmark Configuration for MiniMaxAI/MiniMax-M3-MXFP8 (TP8, EP1)
# =======================================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml \
# --run-mode local
#
# Uses Magpie generic script vllm_mi355x.sh on 8x MI355X (gfx950).
# Serve flags follow the MXFP4 TP8 example so the two precisions compare
# directly. M3 MSA requires --block-size 128.

benchmark:
framework: vllm
model: MiniMaxAI/MiniMax-M3-MXFP8
precision: mxfp8
run_mode: docker
gpu_arch: gfx950

envs:
TP: 8
CONC: 32
ISL: 1024
OSL: 1024
NUM_PROMPTS: 64
RANDOM_RANGE_RATIO: 1
MAX_MODEL_LEN: 4096
GPU_MEMORY_UTILIZATION: 0.9
VLLM_USE_BREAKABLE_CUDAGRAPH: 0
VLLM_ROCM_USE_AITER: 1
VLLM_ROCM_USE_AITER_MOE: 1
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS: 1
VLLM_ENGINE_READY_TIMEOUT_S: 3600
VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: 1800
EXTRA_VLLM_ARGS: >-
--dtype bfloat16
--block-size 128
--max-num-batched-tokens 32768
--max-num-seqs 256
--kv-cache-dtype fp8
--no-enable-prefix-caching
--attention-backend TRITON_ATTN
--moe-backend aiter
--compilation-config={"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY","max_cudagraph_capture_size":256}
--language-model-only
--tool-call-parser minimax_m3
--reasoning-parser minimax_m3
--enable-auto-tool-choice

profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "vllm/vllm-openai-rocm:v0.29.0"
# hf_cache_path: ""
benchmark_script: "vllm_mi355x.sh"
timeout_seconds: 14400

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# vLLM Benchmark Configuration for MiniMaxAI/MiniMax-M3-MXFP8 (TP8, EP8)
# =======================================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config \
# examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml \
# --run-mode local
#
# Uses Magpie generic script vllm_mi355x.sh on 8x MI355X (gfx950).
# --enable-expert-parallel switches the MoE layers from tensor-parallel to
# expert-parallel; attention stays TP8. M3 MSA requires --block-size 128.
# The EP1 control is benchmark_vllm_mini_max_3_mxfp8_tp8.yaml.

benchmark:
framework: vllm
model: MiniMaxAI/MiniMax-M3-MXFP8
precision: mxfp8
run_mode: docker
gpu_arch: gfx950

envs:
TP: 8
CONC: 32
ISL: 1024
OSL: 1024
NUM_PROMPTS: 64
RANDOM_RANGE_RATIO: 1
MAX_MODEL_LEN: 4096
GPU_MEMORY_UTILIZATION: 0.9
VLLM_USE_BREAKABLE_CUDAGRAPH: 0
VLLM_ROCM_USE_AITER: 1
VLLM_ROCM_USE_AITER_MOE: 1
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS: 1
VLLM_ENGINE_READY_TIMEOUT_S: 3600
VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: 1800
EXTRA_VLLM_ARGS: >-
--enable-expert-parallel
--dtype bfloat16
--block-size 128
--max-num-batched-tokens 32768
--max-num-seqs 256
--kv-cache-dtype fp8
--no-enable-prefix-caching
--attention-backend TRITON_ATTN
--moe-backend aiter
--compilation-config={"mode":0,"cudagraph_mode":"FULL_DECODE_ONLY","max_cudagraph_capture_size":256}
--language-model-only
--tool-call-parser minimax_m3
--reasoning-parser minimax_m3
--enable-auto-tool-choice

profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "vllm/vllm-openai-rocm:v0.29.0"
# hf_cache_path: ""
benchmark_script: "vllm_mi355x.sh"
timeout_seconds: 14400

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# SGLang Benchmark Configuration for deepseek-ai/DeepSeek-V4-Pro (DP8 attention, EP8)
# ===================================================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml --run-mode local
#
# Stock SGLang on 8x MI355X (gfx950). TP is the 8-rank world size; DP
# attention gives attention TP1 and routed experts use EP8. Shared experts
# stay replicated per DP rank. The EP1 control is
# benchmark_sglang_deepseek_v4_pro_mxfp4.yaml.

benchmark:
framework: sglang
model: deepseek-ai/DeepSeek-V4-Pro
precision: mxfp4
run_mode: docker
gpu_arch: gfx950

# Environment variables
envs:
TP: 8
CONC: 64
ISL: 1024
OSL: 1024
RANDOM_RANGE_RATIO: 1
SGLANG_USE_AITER: 1
SGLANG_DEFAULT_THINKING: 1
SGLANG_DSV4_REASONING_EFFORT: max
SGLANG_USE_ROCM700A: 0
SGLANG_HACK_FLASHMLA_BACKEND: unified_kv_triton
AITER_BF16_FP8_MOE_BOUND: 0
SGLANG_SHARED_EXPERT_TP1: 1
SGLANG_DP_SHARED_EXPERT_LOCAL: 1
SGLANG_DP_USE_GATHERV: 1
SGLANG_DP_USE_REDUCE_SCATTER: 1
GPU_MAX_HW_QUEUES: 5
# Admit the full sweep rather than one point: the request limit is the top
# concurrency, split across the 8 DP ranks, and the decode graph limit is
# left unset for SGLang to derive.
EXTRA_SGLANG_ARGS: >-
--dp-size 8
--ep-size 8
--moe-a2a-backend none
--enable-dp-attention
--enable-prefill-delayer
--enable-two-batch-overlap
--attention-backend dsv4
--max-running-requests 256
--mem-fraction-static 0.90
--swa-full-tokens-ratio 0.15
--page-size 256
--kv-cache-dtype fp8_e4m3
--context-length 8192
--chunked-prefill-size 8192
--disable-shared-experts-fusion
--tool-call-parser deepseekv4
--reasoning-parser deepseek-v4
--watchdog-timeout 1800

# Profiler configuration
profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "lmsysorg/sglang-rocm:v0.5.16-rocm724-mi35x-20260805"
# hf_cache_path: ""
benchmark_script: "sglang_mi355x.sh"
timeout_seconds: 7200

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# SGLang Benchmark Configuration for MiniMaxAI/MiniMax-M3-MXFP8 (TP8, EP8)
# =========================================================================
#
# Usage (Docker - default):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml
#
# Usage (Local - run directly on host, e.g. inside a pod):
# python -m Magpie benchmark --benchmark-config examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml --run-mode local
#
# Stock SGLang on 8x MI355X (gfx950). Attention is TP8; routed experts use
# EP8. The EP1 control is benchmark_sglang_mini_max_3_mxfp8.yaml.

benchmark:
framework: sglang
model: MiniMaxAI/MiniMax-M3-MXFP8
precision: mxfp8
run_mode: docker
gpu_arch: gfx950

# Environment variables
envs:
TP: 8
CONC: 32
ISL: 1024
OSL: 1024
RANDOM_RANGE_RATIO: 0.8
SGLANG_USE_AITER: 1
EXTRA_SGLANG_ARGS: "--kv-cache-dtype fp8_e4m3 --ep-size 8 --moe-a2a-backend none"

# Profiler configuration
profiler:
torch_profiler:
enabled: false
system_profiler:
enabled: false
tracelens:
enabled: false

docker_image: "lmsysorg/sglang-rocm:v0.5.16-rocm724-mi35x-20260805"
# hf_cache_path: ""
benchmark_script: "sglang_mi355x.sh"
timeout_seconds: 10800

gap_analysis:
enabled: false
top_k: 100
find_kernel_sources: false
Loading