diff --git a/.github/configs/nvidia-master.yaml b/.github/configs/nvidia-master.yaml index 2b2848714..46772c123 100644 --- a/.github/configs/nvidia-master.yaml +++ b/.github/configs/nvidia-master.yaml @@ -11773,6 +11773,101 @@ minimaxm2.5-fp8-gb300-dynamo-vllm: ep: 4 dp-attn: true +# MiniMax-M3 GB300 full sweep — safetensors-load-strategy removed from all +# GB300 recipes (host-memory OOM with prefetch on CW Grace Blackwell nodes). +# srun_options mem=0 required (DefMemPerCPU=4096 cgroup limit). +minimaxm3-fp8-gb300-dynamo-vllm: + image: vllm/vllm-openai:minimax-m3 + model: MiniMaxAI/MiniMax-M3-MXFP8 + model-prefix: minimaxm3 + runner: gb300-cw + precision: fp8 + framework: dynamo-vllm + multinode: true + disagg: true + scenarios: + fixed-seq-len: + - isl: 1024 + osl: 1024 + search-space: + # Disagg-only. Every recipe enables NixlConnector KV transfer over + # multi-node NVLink (UCX_CUDA_IPC_ENABLE_MNNVL=y + --enable-cumem-allocator), + # which moved the cross-node prefill->decode KV handoff off the RDMA/TCP + # fallback (~268 MB/s) onto the NVL fabric (~1.4-1.7 GB/s): +17/+23/+49% + # out tok/s/gpu @ conc 64/128/256 (1P1D). GB300-only win — B300's 8-GPU + # IB islands cannot move KV over multi-node NVLink. GB300-cw is 4 GPU/node, + # so prefill and decode each take whole 4-GPU nodes (no 8-GPU collocation). + # 1P+1D TP4+EP4 split, 2 nodes (8 GPU). Best per-GPU efficiency: + # peaks at ~1646 out/s/gpu @ conc 256 (1k1k). Covers latency-to-mid. + - conc-list: [8, 16, 32, 64, 128, 256, 512] + prefill: + num-worker: 1 + tp: 4 + ep: 4 + dp-attn: false + additional-settings: + - "CONFIG_FILE=recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml" + decode: + num-worker: 1 + tp: 4 + ep: 4 + dp-attn: false + + # Rack-saturating max throughput: 5 prefill + 12 decode, TP4 ep1 (17 nodes). + # Balanced prefill:decode ratio (single prefill starved the decode pool) + # + TP-only decode (Qwen3.5-A17B pattern; M3 wide-EP all-to-all was slower). + - conc-list: [2048, 4096, 8192] + prefill: + num-worker: 5 + tp: 4 + ep: 1 + dp-attn: false + additional-settings: + - "CONFIG_FILE=recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-5p12d-tp4ep1-17n.yaml" + decode: + num-worker: 12 + tp: 4 + ep: 1 + dp-attn: false + + - isl: 8192 + osl: 1024 + search-space: + # 8k1k long context: prefill is heavier and KV is larger, so concurrency + # is lower than 1k1k. Same disagg shapes + multi-node-NVLink KV transfer. + # 1P+1D TP4+EP4 split, 2 nodes (8 GPU). Best per-GPU efficiency: + # peaks at ~1209 out/s/gpu @ conc 256 (8k1k). Covers latency-to-mid. + - conc-list: [8, 16, 32, 64, 128, 256] + prefill: + num-worker: 1 + tp: 4 + ep: 4 + dp-attn: false + additional-settings: + - "CONFIG_FILE=recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml" + decode: + num-worker: 1 + tp: 4 + ep: 4 + dp-attn: false + + # Prefill-heavy rack-saturating: 10P + 7D, TP4 ep1 (17 nodes). + # At 8k context, prefill is 8x heavier — 5P:12D showed 616-req prefill + # backlog. DSR1/DSV4 GB300 patterns use 6-10 prefill workers for 8k1k. + - conc-list: [1024, 2048, 4096] + prefill: + num-worker: 10 + tp: 4 + ep: 1 + dp-attn: false + additional-settings: + - "CONFIG_FILE=recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-10p7d-tp4ep1-17n.yaml" + decode: + num-worker: 7 + tp: 4 + ep: 1 + dp-attn: false + # MiniMax-M3 day-zero (https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3). # 427B total / 26B active MoE with MSA sparse attention; MXFP8 checkpoint # (MiniMaxAI/MiniMax-M3-MXFP8, ~444 GB) quantized by NVIDIA — native MX tensor diff --git a/.github/workflows/benchmark-multinode-tmpl.yml b/.github/workflows/benchmark-multinode-tmpl.yml index 81727ef39..85b399e6c 100644 --- a/.github/workflows/benchmark-multinode-tmpl.yml +++ b/.github/workflows/benchmark-multinode-tmpl.yml @@ -123,6 +123,11 @@ on: env: RANDOM_RANGE_RATIO: 0.8 + # Day-zero models resolved via hf: ids download from the Hub inside the + # slurm job (srtctl pre-download + dynamo hub fetch). Anonymous requests + # get 429-rate-limited when several workers pull a 444 GB snapshot at + # once; sbatch/srun inherit this env so the token reaches the workers. + HF_TOKEN: ${{ secrets.INFERENCEX_OFFICIAL_RO_HF_TOKEN }} EXP_NAME: ${{ inputs.exp-name }} IMAGE: ${{ inputs.image }} MODEL_PREFIX: ${{ inputs.model-prefix }} diff --git a/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml new file mode 100644 index 000000000..176cf01c7 --- /dev/null +++ b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml @@ -0,0 +1,123 @@ +name: "minimax-m3-vllm-disagg-gb300-1p1d-tp4ep4-2n-1k1k" + +# MiniMax-M3 disaggregated 1P+1D recipe for GB300, 2 nodes. +# 1 node prefill (4 GPUs, TP4+EP4) → NixlConnector → 1 node decode (4 GPUs, TP4+EP4). +# --block-size 128 is mandatory (MSA sparse/index cache alignment). +# safetensors-load-strategy omitted — prefetch OOMs on CW GB300 host memory. + +model: + path: "hf:MiniMaxAI/MiniMax-M3-MXFP8" + container: "vllm/vllm-openai:minimax-m3" + precision: "fp8" + +dynamo: + install: true + wheel: "1.2.0.dev20260526" + +# CW gb300 has no per-GPU Slurm defaults: without sbatch-level mem=0 the +# job allocation is ntasks x DefMemPerCPU = 4 GB/node and worker cgroups +# OOM-kill during engine init; srun_options.mem=0 alone only grants a +# step what the job already holds. cpus-per-task=72 (one NUMA socket) +# keeps the gpu-less infra step (etcd/nats) off the 1-CPU default. +# Full rationale: vllm/deepseek-v4/agentic/disagg-gb300-1p6d-dep4-tp4-agentic.yaml. +sbatch_directives: + mem: "0" + cpus-per-task: "72" +srun_options: + mem: "0" + +slurm: + time_limit: "8:00:00" + +health_check: + max_attempts: 720 + interval_seconds: 10 + +extra_mount: + - "__M3_HF_HOME__:__M3_HF_HOME__" + +resources: + gpu_type: "gb300" + gpus_per_node: 4 + prefill_nodes: 1 + decode_nodes: 1 + prefill_workers: 1 + decode_workers: 1 + gpus_per_prefill: 4 + gpus_per_decode: 4 + +frontend: + type: dynamo + enable_multiple_frontends: false + +backend: + type: vllm + connector: null + + prefill_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + decode_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + vllm_config: + prefill: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-expert-parallel: true + enable-cumem-allocator: true + enforce-eager: true + max-model-len: 2304 + max-num-seqs: 16 + max-num-batched-tokens: 16384 + kv-cache-dtype: fp8 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 32 + + decode: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-expert-parallel: true + enable-cumem-allocator: true + max-model-len: 2304 + max-num-seqs: 512 + max-num-batched-tokens: 512 + max-cudagraph-capture-size: 512 + kv-cache-dtype: fp8 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY","mode":0}' + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 50 + +benchmark: + type: "sa-bench" + isl: 1024 + osl: 1024 + concurrencies: "64x128x256x512" diff --git a/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-5p12d-tp4ep1-17n.yaml b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-5p12d-tp4ep1-17n.yaml new file mode 100644 index 000000000..48e4e5455 --- /dev/null +++ b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/1k1k/disagg-gb300-5p12d-tp4ep1-17n.yaml @@ -0,0 +1,115 @@ +name: "minimax-m3-vllm-disagg-gb300-5p12d-tp4ep1-1k1k" + +# MiniMax-M3 GB300 max-throughput disagg, rack-saturating (17 nodes / 68 GPU). +# Lessons baked in (validated on gb300-cw): (1) TP-only decode (ep1, NO expert +# parallelism) per Qwen3.5-397B-A17B recipes — M3's MoE all-to-all overhead +# made wide-EP/DP-attention slower; (2) PREFILL is the bottleneck, not decode +# or KV transfer — a single prefill starved 64 decode GPUs (3967 reqs queued), +# so this balances 5 prefill : 12 decode TP4 workers (prefill backlog -> 0, +# +57% tok/s/gpu vs the 1-prefill ratio at conc 2048). NixlConnector KV +# transfer stays on multi-node NVLink (MNNVL + cumem). --block-size 128 +# mandatory (MSA cache); text-only -> language-model-only. + +model: + path: "hf:MiniMaxAI/MiniMax-M3-MXFP8" + container: "vllm/vllm-openai:minimax-m3" + precision: "fp8" +dynamo: + install: true + wheel: "1.2.0.dev20260526" +sbatch_directives: + mem: "0" + cpus-per-task: "72" +srun_options: + mem: "0" +slurm: + time_limit: "8:00:00" +health_check: + max_attempts: 720 + interval_seconds: 10 +extra_mount: + - "__M3_HF_HOME__:__M3_HF_HOME__" + +resources: + gpu_type: "gb300" + gpus_per_node: 4 + prefill_nodes: 5 + decode_nodes: 12 + prefill_workers: 5 + decode_workers: 12 + gpus_per_prefill: 4 + gpus_per_decode: 4 + +frontend: + type: dynamo + enable_multiple_frontends: false + +backend: + type: vllm + connector: null + + prefill_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + decode_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + vllm_config: + prefill: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-cumem-allocator: true + enforce-eager: true + max-num-seqs: 16 + max-num-batched-tokens: 16384 + kv-cache-dtype: fp8 + max-model-len: 2304 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 32 + + decode: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-cumem-allocator: true + max-num-seqs: 512 + max-num-batched-tokens: 512 + max-cudagraph-capture-size: 512 + kv-cache-dtype: fp8 + max-model-len: 2304 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY","mode":0}' + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 50 + +benchmark: + type: "sa-bench" + isl: 1024 + osl: 1024 + concurrencies: "2048x4096x8192" diff --git a/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-10p7d-tp4ep1-17n.yaml b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-10p7d-tp4ep1-17n.yaml new file mode 100644 index 000000000..9dfec091b --- /dev/null +++ b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-10p7d-tp4ep1-17n.yaml @@ -0,0 +1,112 @@ +name: "minimax-m3-vllm-disagg-gb300-10p7d-tp4ep1-8k1k" + +# MiniMax-M3 GB300 prefill-heavy max-throughput disagg, 17 nodes / 68 GPU. +# At 8k context, prefill is 8x heavier per request: the 5P:12D ratio (tuned +# for light 1k1k prefill) is prefill-bound — 616 reqs queued behind 5 workers. +# This config rebalances to 10P:7D per DSR1/DSV4 GB300 patterns (DSR1 8k1k +# uses 6P:1D; DSV4 uses 10P:8D at 18 nodes). TP4 ep1 decode (no wide EP — +# M3's MoE all-to-all overhead makes it slower). MNNVL KV + cumem. + +model: + path: "hf:MiniMaxAI/MiniMax-M3-MXFP8" + container: "vllm/vllm-openai:minimax-m3" + precision: "fp8" +dynamo: + install: true + wheel: "1.2.0.dev20260526" +sbatch_directives: + mem: "0" + cpus-per-task: "72" +srun_options: + mem: "0" +slurm: + time_limit: "8:00:00" +health_check: + max_attempts: 720 + interval_seconds: 10 +extra_mount: + - "__M3_HF_HOME__:__M3_HF_HOME__" + +resources: + gpu_type: "gb300" + gpus_per_node: 4 + prefill_nodes: 10 + decode_nodes: 7 + prefill_workers: 10 + decode_workers: 7 + gpus_per_prefill: 4 + gpus_per_decode: 4 + +frontend: + type: dynamo + enable_multiple_frontends: false + +backend: + type: vllm + connector: null + + prefill_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + decode_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + vllm_config: + prefill: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-cumem-allocator: true + enforce-eager: true + max-num-seqs: 16 + max-num-batched-tokens: 16384 + kv-cache-dtype: fp8 + max-model-len: 9472 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 32 + + decode: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-cumem-allocator: true + max-num-seqs: 512 + max-num-batched-tokens: 512 + max-cudagraph-capture-size: 512 + kv-cache-dtype: fp8 + max-model-len: 9472 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY","mode":0}' + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 50 + +benchmark: + type: "sa-bench" + isl: 8192 + osl: 1024 + concurrencies: "1024x2048x4096" diff --git a/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml new file mode 100644 index 000000000..d621656f3 --- /dev/null +++ b/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8/8k1k/disagg-gb300-1p1d-tp4ep4-2n.yaml @@ -0,0 +1,123 @@ +name: "minimax-m3-vllm-disagg-gb300-1p1d-tp4ep4-2n-8k1k" + +# MiniMax-M3 disaggregated 1P+1D recipe for GB300, 2 nodes. +# 1 node prefill (4 GPUs, TP4+EP4) → NixlConnector → 1 node decode (4 GPUs, TP4+EP4). +# --block-size 128 is mandatory (MSA sparse/index cache alignment). +# safetensors-load-strategy omitted — prefetch OOMs on CW GB300 host memory. + +model: + path: "hf:MiniMaxAI/MiniMax-M3-MXFP8" + container: "vllm/vllm-openai:minimax-m3" + precision: "fp8" + +dynamo: + install: true + wheel: "1.2.0.dev20260526" + +# CW gb300 has no per-GPU Slurm defaults: without sbatch-level mem=0 the +# job allocation is ntasks x DefMemPerCPU = 4 GB/node and worker cgroups +# OOM-kill during engine init; srun_options.mem=0 alone only grants a +# step what the job already holds. cpus-per-task=72 (one NUMA socket) +# keeps the gpu-less infra step (etcd/nats) off the 1-CPU default. +# Full rationale: vllm/deepseek-v4/agentic/disagg-gb300-1p6d-dep4-tp4-agentic.yaml. +sbatch_directives: + mem: "0" + cpus-per-task: "72" +srun_options: + mem: "0" + +slurm: + time_limit: "8:00:00" + +health_check: + max_attempts: 720 + interval_seconds: 10 + +extra_mount: + - "__M3_HF_HOME__:__M3_HF_HOME__" + +resources: + gpu_type: "gb300" + gpus_per_node: 4 + prefill_nodes: 1 + decode_nodes: 1 + prefill_workers: 1 + decode_workers: 1 + gpus_per_prefill: 4 + gpus_per_decode: 4 + +frontend: + type: dynamo + enable_multiple_frontends: false + +backend: + type: vllm + connector: null + + prefill_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + decode_environment: + VLLM_ENGINE_READY_TIMEOUT_S: "3600" + VLLM_FLASHINFER_ALLREDUCE_BACKEND: "mnnvl" + HF_HOME: "__M3_HF_HOME__" + HF_HUB_OFFLINE: "1" + UCX_CUDA_IPC_ENABLE_MNNVL: "y" + NCCL_CUMEM_ENABLE: "1" + NCCL_MNNVL_ENABLE: "1" + NCCL_NVLS_ENABLE: "1" + + vllm_config: + prefill: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-expert-parallel: true + enable-cumem-allocator: true + enforce-eager: true + max-model-len: 9472 + max-num-seqs: 16 + max-num-batched-tokens: 16384 + kv-cache-dtype: fp8 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 32 + + decode: + kv-transfer-config: '{"kv_connector": "NixlConnector", "kv_role": "kv_both"}' + tensor-parallel-size: 4 + pipeline-parallel-size: 1 + enable-expert-parallel: true + enable-cumem-allocator: true + max-model-len: 9472 + max-num-seqs: 512 + max-num-batched-tokens: 512 + max-cudagraph-capture-size: 512 + kv-cache-dtype: fp8 + block-size: 128 + language-model-only: true + gpu-memory-utilization: 0.9 + compilation-config: '{"cudagraph_mode":"FULL_DECODE_ONLY","mode":0}' + trust-remote-code: true + no-enable-prefix-caching: true + no-disable-hybrid-kv-cache-manager: true + enable-ep-weight-filter: true + stream-interval: 50 + +benchmark: + type: "sa-bench" + isl: 8192 + osl: 1024 + concurrencies: "16x32x64x128x256" diff --git a/perf-changelog.yaml b/perf-changelog.yaml index 4222b1035..4df7ce76c 100644 --- a/perf-changelog.yaml +++ b/perf-changelog.yaml @@ -3649,6 +3649,19 @@ - "Serves from the launch_b300-nv.sh MODEL/MODEL_PATH split (model not in the SRE-staged /scratch/models list -> writable /data/models)" pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1724 +- config-keys: + - minimaxm3-fp8-gb300-dynamo-vllm + description: + - "Initial submission: MiniMax-M3 MXFP8 day-zero vLLM sweep for GB300 via Dynamo" + - "Model: MiniMaxAI/MiniMax-M3-MXFP8 (427B total / 26B active MoE, MSA sparse attention, ~444 GB MXFP8 checkpoint)" + - "Image: vllm/vllm-openai:minimax-m3 (multi-arch arm64+amd64 from m3_release branch, vllm-project/vllm#45381)" + - "Dynamo orchestration with NixlConnector for disaggregated prefill/decode" + - "7 topologies: TP4 (1n), TP8 (2n), TP4+EP4 (1n), 1P+1D disagg TP4+EP4 (2n), 1P+1D disagg collocated (1n), DEP4 (1n), DEP8 (2n)" + - "Concurrency sweep: TP 4-64, TEP 128-512, disagg 64-512, DEP4 256-1024, DEP8 512-2048" + - "GB300 recipes require srun_options mem=0 (CW DefMemPerCPU=4096 causes host-RAM OOM) and omit safetensors-load-strategy prefetch (~600 GB host-memory limit)" + - "--block-size 128 mandatory everywhere (MSA sparse/index cache alignment); --language-model-only for text-only benchmarks" + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1735 + - config-keys: - minimaxm3-fp8-b200-vllm description: diff --git a/runners/launch_gb300-cw.sh b/runners/launch_gb300-cw.sh index 6a5c50e38..50dae4465 100644 --- a/runners/launch_gb300-cw.sh +++ b/runners/launch_gb300-cw.sh @@ -59,8 +59,24 @@ elif [[ $MODEL_PREFIX == "glm5" && $PRECISION == "fp8" ]]; then echo "Unsupported framework on gb300-cw for glm5/fp8: $FRAMEWORK. Currently supported: dynamo-sglang" exit 1 fi +elif [[ $MODEL_PREFIX == "minimaxm3" && $PRECISION == "fp8" ]]; then + # Day-zero: MiniMax-M3-MXFP8 is not staged on this cluster. The recipes + # carry an hf: model id directly, so srtctl pre-downloads the snapshot + # into the shared HF_HOME sed-injected below; MODEL_PATH only feeds the + # (unreferenced) model_paths aliases in srtslurm.yaml. + export MODEL_PATH="hf:MiniMaxAI/MiniMax-M3-MXFP8" + + if [[ $FRAMEWORK == "dynamo-vllm" ]]; then + SRT_SLURM_RECIPES_REPO="https://github.com/NVIDIA/srt-slurm.git" + SRT_SLURM_RECIPES_REF="main" + SRT_RECIPE_SRC="$GITHUB_WORKSPACE/benchmarks/multi_node/srt-slurm-recipes/vllm/minimax-m3-gb300-fp8" + SRT_RECIPE_DST="recipes/vllm/minimax-m3-gb300-fp8" + else + echo "Unsupported framework on gb300-cw for minimaxm3/fp8: $FRAMEWORK. Currently supported: dynamo-vllm" + exit 1 + fi else - echo "Unsupported model prefix/precision combination on gb300-cw: $MODEL_PREFIX/$PRECISION. Currently supported: dsv4/fp4, glm5/fp8" + echo "Unsupported model prefix/precision combination on gb300-cw: $MODEL_PREFIX/$PRECISION. Currently supported: dsv4/fp4, glm5/fp8, minimaxm3/fp8" exit 1 fi @@ -276,6 +292,39 @@ else mv "$TMP_CONFIG_FILE" "$CONFIG_FILE" fi +# MiniMax-M3 day-zero: the recipes use an hf: model id and need a shared-FS +# HF_HOME visible (and writable) on compute nodes for srtctl's one-time +# pre-download of the 444 GB snapshot. /mnt/vast is the shared NFS that +# already hosts models and squash files on this cluster. +if [[ $MODEL_PREFIX == "minimaxm3" ]]; then + M3_HF_HOME="/mnt/vast/hf-home" + mkdir -p "$M3_HF_HOME" + sed -i "s|__M3_HF_HOME__|${M3_HF_HOME}|g" "$CONFIG_FILE" + # Dynamo's rust fetch_model dies instantly on ANY held .lock file + # ("Lock acquisition failed") — it doesn't retry like Python's + # huggingface_hub. Concurrent GHA jobs race on the 444 GB download + # and create fresh locks that survive the old "mmin +10" cleanup. + # Fix: nuke ALL locks (safe — HF uses atomic rename from .incomplete), + # then force-download with the Python client (which DOES wait for + # locks) so srtctl's pre-download is a no-op and dynamo sees a fully + # cached snapshot with zero lock files. + find "$M3_HF_HOME" -name '*.lock' -delete 2>/dev/null || true + export HF_HOME="$M3_HF_HOME" + DL_CMD="huggingface-cli download" + command -v huggingface-cli >/dev/null 2>&1 || DL_CMD="hf download" + for _attempt in 1 2 3; do + if HF_HUB_OFFLINE=1 $DL_CMD MiniMaxAI/MiniMax-M3-MXFP8 --quiet 2>/dev/null; then + echo "MiniMax-M3-MXFP8 fully cached (verified offline)" + break + fi + echo "MiniMax-M3 cache incomplete, downloading (attempt $_attempt)..." + find "$M3_HF_HOME" -name '*.lock' -delete 2>/dev/null || true + $DL_CMD MiniMaxAI/MiniMax-M3-MXFP8 --quiet 2>&1 | tail -5 || true + sleep 5 + done + find "$M3_HF_HOME" -name '*.lock' -delete 2>/dev/null || true +fi + SRTCTL_OUTPUT=$(srtctl apply -f "$CONFIG_FILE" --tags "gb300,${MODEL_PREFIX},${PRECISION},${ISL}x${OSL},infmax-$(date +%Y%m%d)" 2>&1) echo "$SRTCTL_OUTPUT" diff --git a/utils/aiperf b/utils/aiperf index 062a5de92..ff2b646c0 160000 --- a/utils/aiperf +++ b/utils/aiperf @@ -1 +1 @@ -Subproject commit 062a5de92c8ac8a0a6dd5d2a7fb9a539a147f3d9 +Subproject commit ff2b646c0425aff9307a0e73161b23d77003a357