From 4e75735597902d81f58a4afc4386a4fb7d74c0b7 Mon Sep 17 00:00:00 2001 From: Sina Rafati Date: Tue, 17 Nov 2026 14:34:34 -0800 Subject: [PATCH] Add DeepSeek-V4-Pro and MiniMax-M3 expert-parallel benchmark configs --- ...ark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml | 71 ++++++++++++++++ .../benchmark_vllm_mini_max_3_mxfp8_tp8.yaml | 70 ++++++++++++++++ ...nchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml | 72 +++++++++++++++++ ..._sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml | 80 +++++++++++++++++++ ...hmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml | 47 +++++++++++ 5 files changed, 340 insertions(+) create mode 100644 examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml create mode 100644 examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml create mode 100644 examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml create mode 100644 examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml create mode 100644 examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml diff --git a/examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml b/examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml new file mode 100644 index 0000000..b603ee3 --- /dev/null +++ b/examples/benchmarks/benchmark_vllm_amd_mini_max_3_mxfp4_tp8_ep8.yaml @@ -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 diff --git a/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml b/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml new file mode 100644 index 0000000..28c34e7 --- /dev/null +++ b/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8.yaml @@ -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 diff --git a/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml b/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml new file mode 100644 index 0000000..26656db --- /dev/null +++ b/examples/benchmarks/benchmark_vllm_mini_max_3_mxfp8_tp8_ep8.yaml @@ -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 diff --git a/examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml b/examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml new file mode 100644 index 0000000..d644955 --- /dev/null +++ b/examples/benchmarks/sglang_mi355x/benchmark_sglang_deepseek_v4_pro_mxfp4_dp8_ep8.yaml @@ -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 diff --git a/examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml b/examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml new file mode 100644 index 0000000..689cde5 --- /dev/null +++ b/examples/benchmarks/sglang_mi355x/benchmark_sglang_mini_max_3_mxfp8_tp8_ep8.yaml @@ -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