diff --git a/.github/configs/amd-master.yaml b/.github/configs/amd-master.yaml index b316bcede..4cb8815e1 100644 --- a/.github/configs/amd-master.yaml +++ b/.github/configs/amd-master.yaml @@ -292,6 +292,28 @@ kimik2.5-int4-mi355x-vllm: search-space: - { tp: 8, conc-start: 4, conc-end: 64 } +kimik2.5-int4-mi300x-vllm: + image: vllm/vllm-openai-rocm:v0.16.0 + model: moonshotai/Kimi-K2.5 + model-prefix: kimik2.5 + runner: mi300x + precision: int4 + framework: vllm + multinode: false + seq-len-configs: + - isl: 1024 + osl: 1024 + search-space: + - { tp: 8, conc-start: 4, conc-end: 64 } + - isl: 1024 + osl: 8192 + search-space: + - { tp: 8, conc-start: 4, conc-end: 64 } + - isl: 8192 + osl: 1024 + search-space: + - { tp: 8, conc-start: 4, conc-end: 64 } + kimik2.5-fp4-mi355x-vllm: image: vllm/vllm-openai-rocm:v0.16.0 model: amd/Kimi-K2.5-MXFP4 diff --git a/benchmarks/single_node/kimik2.5_int4_mi300x.sh b/benchmarks/single_node/kimik2.5_int4_mi300x.sh new file mode 100755 index 000000000..a607b4492 --- /dev/null +++ b/benchmarks/single_node/kimik2.5_int4_mi300x.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash + +source "$(dirname "$0")/../benchmark_lib.sh" + +check_env_vars \ + MODEL \ + TP \ + CONC \ + ISL \ + OSL \ + MAX_MODEL_LEN \ + RANDOM_RANGE_RATIO \ + RESULT_FILENAME + +if [[ -n "$SLURM_JOB_ID" ]]; then + echo "JOB $SLURM_JOB_ID running on $SLURMD_NODENAME" +fi + +hf download "$MODEL" + +# Set HIP_VISIBLE_DEVICES to match ROCR_VISIBLE_DEVICES for Ray compatibility in vLLM 0.14+ +if [ -n "$ROCR_VISIBLE_DEVICES" ]; then + export HIP_VISIBLE_DEVICES="$ROCR_VISIBLE_DEVICES" +fi + +SERVER_LOG=/workspace/server.log +PORT=${PORT:-8888} + +# following AMD andy luo's recipe +# https://x.com/linluo77/status/2017024513595301985 +set -x +vllm serve $MODEL --port $PORT \ +--tensor-parallel-size=$TP \ +--gpu-memory-utilization 0.95 \ +--max-model-len $MAX_MODEL_LEN \ +--block-size=64 \ +--disable-log-requests \ +--trust-remote-code \ +--mm-encoder-tp-mode data > $SERVER_LOG 2>&1 & + +SERVER_PID=$! + +# Wait for server to be ready +wait_for_server_ready --port "$PORT" --server-log "$SERVER_LOG" --server-pid "$SERVER_PID" + +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 + +# After throughput, run evaluation only if RUN_EVAL is true +if [ "${RUN_EVAL}" = "true" ]; then + run_eval --framework lm-eval --port "$PORT" --concurrent-requests $CONC + append_lm_eval_summary +fi +set +x diff --git a/perf-changelog.yaml b/perf-changelog.yaml index a48f42b6b..7d0d6ad98 100644 --- a/perf-changelog.yaml +++ b/perf-changelog.yaml @@ -844,3 +844,13 @@ - "Switch from TP=8/EP=8 to TP=4/EP=4, concurrency 4-64 for 1k1k, 1k8k, and 8k1k" - "Script uses conditional --enable-expert-parallel based on EP_SIZE env var" pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/832 + +- config-keys: + - kimik2.5-int4-mi300x-vllm + description: + - "Add Kimi-K2.5 INT4 vLLM benchmark for MI300X" + - "Model: moonshotai/Kimi-K2.5 with --mm-encoder-tp-mode data and --trust-remote-code" + - "Image: vllm/vllm-openai-rocm:v0.16.0" + - "Following AMD Andy Luo's recipe: https://x.com/linluo77/status/2017024513595301985" + - "TP=8, concurrency 4-64 for 1k1k, 1k8k, and 8k1k sequence lengths" + pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/XXX