Skip to content

Commit b1cba0e

Browse files
AaruniAggarwallk-chen
authored andcommitted
Updating builkite job for IBM Power (vllm-project#17111)
Signed-off-by: Aaruni Aggarwal <[email protected]>
1 parent b26484a commit b1cba0e

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.buildkite/scripts/hardware_ci/run-cpu-test-ppc64le.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,30 @@
55
set -ex
66

77
# Setup cleanup
8-
remove_docker_container() { podman rm -f cpu-test-ubi9-ppc || true; podman system prune -f; }
8+
remove_docker_container() {
9+
if [[ -n "$container_id" ]]; then
10+
podman rm -f "$container_id" || true
11+
fi
12+
podman system prune -f
13+
}
914
trap remove_docker_container EXIT
1015
remove_docker_container
1116

1217
# Try building the docker image
1318
podman build -t cpu-test-ubi9-ppc -f docker/Dockerfile.ppc64le .
1419

1520
# Run the image
16-
podman run -itd --entrypoint /bin/bash -v /tmp/:/root/.cache/huggingface --privileged=true --network host -e HF_TOKEN --name cpu-test-ubi9-ppc cpu-test-ubi9-ppc
21+
container_id=$(podman run -itd --entrypoint /bin/bash -v /tmp/:/root/.cache/huggingface --privileged=true --network host -e HF_TOKEN cpu-test-ubi9-ppc)
1722

1823
function cpu_tests() {
1924

2025
# offline inference
21-
podman exec cpu-test-ubi9-ppc bash -c "
26+
podman exec -it "$container_id" bash -c "
2227
set -e
2328
python3 examples/offline_inference/basic/generate.py --model facebook/opt-125m"
2429

2530
# Run basic model test
26-
podman exec cpu-test-ubi9-ppc bash -c "
31+
podman exec -it "$container_id" bash -c "
2732
set -e
2833
pip install pytest pytest-asyncio einops peft Pillow soundfile transformers_stream_generator matplotlib
2934
pip install sentence-transformers datamodel_code_generator
@@ -33,6 +38,8 @@ function cpu_tests() {
3338
}
3439

3540
# All of CPU tests are expected to be finished less than 40 mins.
41+
42+
export container_id
3643
export -f cpu_tests
3744
timeout 40m bash -c cpu_tests
3845

0 commit comments

Comments
 (0)