|
| 1 | +#!/usr/bin/env bash |
| 2 | + |
| 3 | +# DeepSeek-V4-Pro disaggregated prefill/decode on MI355X via vLLM + MoRI-IO. |
| 4 | +# Thin, model-agnostic launcher: all serving flags / env live in the |
| 5 | +# DeepSeek-V4-Pro entry of amd_utils/models_vllm.yaml, and topology (P/D node |
| 6 | +# counts, TP/EP) comes from amd-master.yaml. Identical in shape to the kimi / |
| 7 | +# minimax vllm-disagg wrappers; only the model differs. |
| 8 | + |
| 9 | +source "$(dirname "$0")/../benchmark_lib.sh" |
| 10 | + |
| 11 | +check_env_vars \ |
| 12 | + CONC_LIST \ |
| 13 | + ISL \ |
| 14 | + OSL \ |
| 15 | + IMAGE \ |
| 16 | + SPEC_DECODING \ |
| 17 | + MODEL_PATH \ |
| 18 | + PREFILL_NUM_WORKERS \ |
| 19 | + PREFILL_TP \ |
| 20 | + PREFILL_EP \ |
| 21 | + PREFILL_DP_ATTN \ |
| 22 | + DECODE_NUM_WORKERS \ |
| 23 | + DECODE_TP \ |
| 24 | + DECODE_EP \ |
| 25 | + DECODE_DP_ATTN \ |
| 26 | + PREFILL_NODES \ |
| 27 | + DECODE_NODES \ |
| 28 | + RANDOM_RANGE_RATIO \ |
| 29 | + FRAMEWORK |
| 30 | + |
| 31 | +if [[ -n "$SLURM_JOB_ID" ]]; then |
| 32 | + echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" |
| 33 | +fi |
| 34 | + |
| 35 | +set -x |
| 36 | + |
| 37 | +cd "$GITHUB_WORKSPACE/benchmarks/multi_node/amd_utils" || exit 1 |
| 38 | + |
| 39 | +export TIME_LIMIT="08:00:00" |
| 40 | +export MODEL_PATH=$MODEL_PATH |
| 41 | +export MODEL_NAME=$MODEL_NAME |
| 42 | +export CONTAINER_IMAGE=$IMAGE |
| 43 | + |
| 44 | +# Same EP/DP booleans as kimik2.5_fp4_mi355x_vllm-disagg.sh → amd_utils/submit.sh |
| 45 | +if [[ "${PREFILL_EP:-1}" -eq 1 ]]; then |
| 46 | + export PREFILL_ENABLE_EP=false |
| 47 | +else |
| 48 | + export PREFILL_ENABLE_EP=true |
| 49 | +fi |
| 50 | + |
| 51 | +if [[ "$PREFILL_DP_ATTN" == "true" ]]; then |
| 52 | + export PREFILL_ENABLE_DP=true |
| 53 | +else |
| 54 | + export PREFILL_ENABLE_DP=false |
| 55 | +fi |
| 56 | + |
| 57 | +if [[ "${DECODE_EP:-1}" -eq 1 ]]; then |
| 58 | + export DECODE_ENABLE_EP=false |
| 59 | +else |
| 60 | + export DECODE_ENABLE_EP=true |
| 61 | +fi |
| 62 | + |
| 63 | +if [[ "$DECODE_DP_ATTN" == "true" ]]; then |
| 64 | + export DECODE_ENABLE_DP=true |
| 65 | +else |
| 66 | + export DECODE_ENABLE_DP=false |
| 67 | +fi |
| 68 | + |
| 69 | +# Parameter order matches SGLang disagg submit.sh; arg 16 is optional NODELIST. |
| 70 | +JOB_ID=$(bash ./submit.sh $PREFILL_NODES \ |
| 71 | + $PREFILL_NUM_WORKERS \ |
| 72 | + $DECODE_NODES \ |
| 73 | + $DECODE_NUM_WORKERS \ |
| 74 | + $ISL $OSL "${CONC_LIST// /x}" inf \ |
| 75 | + ${PREFILL_ENABLE_EP} ${PREFILL_ENABLE_DP} \ |
| 76 | + ${DECODE_ENABLE_EP} ${DECODE_ENABLE_DP} \ |
| 77 | + ${PREFILL_TP} ${DECODE_TP} \ |
| 78 | + ${RANDOM_RANGE_RATIO} \ |
| 79 | + "${NODELIST:-}") |
| 80 | + |
| 81 | +if [[ $? -ne 0 ]]; then |
| 82 | + echo "Failed to submit job" >&2 |
| 83 | + exit 1 |
| 84 | +fi |
| 85 | + |
| 86 | +echo "$JOB_ID" |
0 commit comments