@@ -12,9 +12,6 @@ cleanup() {
1212 if [[ " ${CLEANUP_BENCHMARK_RESULTS:- 1} " == " 1" ]]; then
1313 rm -rf vllm/benchmarks/results
1414 fi
15-
16- # https://github.com/vllm-project/vllm/issues/13392
17- rm -rf ~ /.cache/vllm/torch_compile_cache
1815}
1916
2017setup_vllm () {
@@ -43,8 +40,15 @@ build_vllm() {
4340 # TODO (huydhn) I'll setup remote cache for this later
4441 SCCACHE_CACHE_SIZE=100G sccache --start-server || true
4542 # Build and install vLLM
46- pip install -r requirements-build.txt
47- pip install --editable .
43+ if command -v nvidia-smi; then
44+ pip install -r requirements-build.txt
45+ pip install --editable .
46+ elif command -v amd-smi; then
47+ pip install -r requirements-rocm.txt
48+ pip install -r requirements-rocm-build.txt
49+ # https://docs.vllm.ai/en/latest/getting_started/installation/gpu/index.html?device=rocm
50+ PYTORCH_ROCM_ARCH=" gfx90a;gfx942" python setup.py develop
51+ fi
4852 popd
4953}
5054
@@ -70,14 +74,14 @@ upload_results() {
7074 pushd vllm
7175 if [[ -f benchmarks/results/benchmark_results.md ]]; then
7276 # Upload the markdown file
73- S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /benchmark_results.md"
77+ S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /${GPU_DEVICE} / benchmark_results.md"
7478 aws s3 cp --acl public-read \
7579 benchmarks/results/benchmark_results.md " s3://ossci-benchmarks/${S3_PATH} "
7680 fi
7781
7882 if [[ -f benchmarks.log ]]; then
7983 # Upload the logs
80- S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /benchmarks.log"
84+ S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /${GPU_DEVICE} / benchmarks.log"
8185 aws s3 cp --acl public-read \
8286 benchmarks.log " s3://ossci-benchmarks/${S3_PATH} "
8387 fi
@@ -99,7 +103,13 @@ pushd vllm
99103export HEAD_BRANCH=main
100104export HEAD_SHA=$( git rev-parse --verify HEAD)
101105
102- S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /benchmark_results.json"
106+ if command -v nvidia-smi; then
107+ declare -g GPU_DEVICE=$( nvidia-smi --query-gpu=name --format=csv,noheader | awk ' {print $2}' )
108+ elif command -v amd-smi; then
109+ declare -g GPU_DEVICE=$( amd-smi static -g 0 -a | grep ' MARKET_NAME' | awk ' {print $2}' )
110+ fi
111+
112+ S3_PATH=" v3/vllm-project/vllm/${HEAD_BRANCH} /${HEAD_SHA} /${GPU_DEVICE} /benchmark_results.json"
103113aws s3api head-object --bucket ossci-benchmarks --key ${S3_PATH} || NOT_EXIST=1
104114
105115if [[ ${NOT_EXIST:- 0} == " 0" && " ${OVERWRITE_BENCHMARK_RESULTS:- 0} " != " 1" ]]; then
0 commit comments