Skip to content

Commit d17d4df

Browse files
authored
Merge pull request ROCm#503 from ROCm/upstream_merge_2025_04_07
Upstream merge 2025 04 07
2 parents 732455b + 2b6e9c9 commit d17d4df

File tree

153 files changed

+5591
-1711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+5591
-1711
lines changed

.buildkite/nightly-benchmarks/scripts/run-performance-benchmarks.sh

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,24 @@ set -x
1010
set -o pipefail
1111

1212
check_gpus() {
13-
# check the number of GPUs and GPU type.
14-
declare -g gpu_count=$(nvidia-smi --list-gpus | wc -l)
13+
if command -v nvidia-smi; then
14+
# check the number of GPUs and GPU type.
15+
declare -g gpu_count=$(nvidia-smi --list-gpus | wc -l)
16+
elif command -v amd-smi; then
17+
declare -g gpu_count=$(amd-smi list | grep 'GPU' | wc -l)
18+
fi
19+
1520
if [[ $gpu_count -gt 0 ]]; then
1621
echo "GPU found."
1722
else
1823
echo "Need at least 1 GPU to run benchmarking."
1924
exit 1
2025
fi
21-
declare -g gpu_type=$(nvidia-smi --query-gpu=name --format=csv,noheader | awk '{print $2}')
26+
if command -v nvidia-smi; then
27+
declare -g gpu_type=$(nvidia-smi --query-gpu=name --format=csv,noheader | awk '{print $2}')
28+
elif command -v amd-smi; then
29+
declare -g gpu_type=$(amd-smi static -g 0 -a | grep 'MARKET_NAME' | awk '{print $2}')
30+
fi
2231
echo "GPU type is $gpu_type"
2332
}
2433

@@ -90,9 +99,15 @@ kill_gpu_processes() {
9099

91100

92101
# wait until GPU memory usage smaller than 1GB
93-
while [ "$(nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits | head -n 1)" -ge 1000 ]; do
94-
sleep 1
95-
done
102+
if command -v nvidia-smi; then
103+
while [ "$(nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits | head -n 1)" -ge 1000 ]; do
104+
sleep 1
105+
done
106+
elif command -v amd-smi; then
107+
while [ "$(amd-smi metric -g 0 | grep 'USED_VRAM' | awk '{print $2}')" -ge 1000 ]; do
108+
sleep 1
109+
done
110+
fi
96111

97112
# remove vllm config file
98113
rm -rf ~/.config/vllm

.buildkite/release-pipeline.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg GIT_REPO_CHECK=1 --build-arg CUDA_VERSION=12.4.0 --tag vllm-ci:build-image --target build --progress plain -f docker/Dockerfile ."
77
- "mkdir artifacts"
88
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image bash -c 'cp -r dist /artifacts_host && chmod -R a+rw /artifacts_host'"
9-
- "bash .buildkite/upload-wheels.sh"
9+
- "bash .buildkite/scripts/upload-wheels.sh"
1010
env:
1111
DOCKER_BUILDKIT: "1"
1212

@@ -17,7 +17,7 @@ steps:
1717
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg GIT_REPO_CHECK=1 --build-arg CUDA_VERSION=12.1.0 --tag vllm-ci:build-image --target build --progress plain -f docker/Dockerfile ."
1818
- "mkdir artifacts"
1919
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image bash -c 'cp -r dist /artifacts_host && chmod -R a+rw /artifacts_host'"
20-
- "bash .buildkite/upload-wheels.sh"
20+
- "bash .buildkite/scripts/upload-wheels.sh"
2121
env:
2222
DOCKER_BUILDKIT: "1"
2323

@@ -34,7 +34,7 @@ steps:
3434
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg GIT_REPO_CHECK=1 --build-arg CUDA_VERSION=11.8.0 --tag vllm-ci:build-image --target build --progress plain -f docker/Dockerfile ."
3535
- "mkdir artifacts"
3636
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image bash -c 'cp -r dist /artifacts_host && chmod -R a+rw /artifacts_host'"
37-
- "bash .buildkite/upload-wheels.sh"
37+
- "bash .buildkite/scripts/upload-wheels.sh"
3838
env:
3939
DOCKER_BUILDKIT: "1"
4040

.buildkite/run-amd-test.sh renamed to .buildkite/scripts/hardware_ci/run-amd-test.sh

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,33 @@ fi
105105
if [[ $commands == *" entrypoints/openai "* ]]; then
106106
commands=${commands//" entrypoints/openai "/" entrypoints/openai \
107107
--ignore=entrypoints/openai/test_audio.py \
108-
--ignore=entrypoints/openai/test_chat.py \
109108
--ignore=entrypoints/openai/test_shutdown.py \
110109
--ignore=entrypoints/openai/test_completion.py \
111110
--ignore=entrypoints/openai/test_sleep.py \
112111
--ignore=entrypoints/openai/test_models.py \
112+
--ignore=entrypoints/openai/test_lora_adapters.py \
113+
--ignore=entrypoints/openai/test_return_tokens_as_ids.py \
114+
--ignore=entrypoints/openai/test_root_path.py \
115+
--ignore=entrypoints/openai/test_tokenization.py \
113116
--ignore=entrypoints/openai/test_prompt_validation.py "}
114117
fi
115118

116119
#ignore certain Entrypoints/llm tests
117-
if [[ $commands == *" && pytest -v -s entrypoints/llm/test_guided_generate.py"* ]]; then
118-
commands=${commands//" && pytest -v -s entrypoints/llm/test_guided_generate.py"/" "}
120+
if [[ $commands == *" entrypoints/llm "* ]]; then
121+
commands=${commands//" entrypoints/llm "/" entrypoints/llm \
122+
--ignore=entrypoints/llm/test_chat.py \
123+
--ignore=entrypoints/llm/test_accuracy.py \
124+
--ignore=entrypoints/llm/test_init.py \
125+
--ignore=entrypoints/llm/test_generate_multiple_loras.py \
126+
--ignore=entrypoints/llm/test_prompt_validation.py "}
119127
fi
120128

129+
#Obsolete currently
130+
##ignore certain Entrypoints/llm tests
131+
#if [[ $commands == *" && pytest -v -s entrypoints/llm/test_guided_generate.py"* ]]; then
132+
# commands=${commands//" && pytest -v -s entrypoints/llm/test_guided_generate.py"/" "}
133+
#fi
134+
121135
# --ignore=entrypoints/openai/test_encoder_decoder.py \
122136
# --ignore=entrypoints/openai/test_embedding.py \
123137
# --ignore=entrypoints/openai/test_oot_registration.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.buildkite/run-tpu-v1-test.sh renamed to .buildkite/scripts/hardware_ci/run-tpu-v1-test.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -xue
44

55
# Build the docker image.
66
docker build -f docker/Dockerfile.tpu -t vllm-tpu .
@@ -38,7 +38,9 @@ docker run --privileged --net host --shm-size=16G -it \
3838
&& echo TEST_7 \
3939
&& pytest -s -v /workspace/vllm/tests/v1/tpu/test_sampler.py \
4040
&& echo TEST_8 \
41-
&& pytest -s -v /workspace/vllm/tests/v1/tpu/test_topk_topp_sampler.py" \
41+
&& pytest -s -v /workspace/vllm/tests/v1/tpu/test_topk_topp_sampler.py \
42+
&& echo TEST_9 \
43+
&& pytest -s -v /workspace/vllm/tests/v1/tpu/test_pallas.py" \
4244

4345

4446
# TODO: This test fails because it uses RANDOM_SEED sampling
File renamed without changes.

0 commit comments

Comments
 (0)