Skip to content

Commit 3b602cd

Browse files
AMD conditional all test execution // new test groups (#17556)
Signed-off-by: Alexei V. Ivanov <[email protected]> Signed-off-by: Yida Wu <[email protected]>
1 parent 4b2ed79 commit 3b602cd

File tree

3 files changed

+69
-25
lines changed

3 files changed

+69
-25
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# This script runs test inside the corresponding ROCm docker container.
44
set -o pipefail
55

6+
# Export Python path
7+
export PYTHONPATH=".."
8+
69
# Print ROCm version
710
echo "--- Confirming Clean Initial State"
811
while true; do
@@ -74,6 +77,15 @@ HF_MOUNT="/root/.cache/huggingface"
7477

7578
commands=$@
7679
echo "Commands:$commands"
80+
81+
if [[ $commands == *"pytest -v -s basic_correctness/test_basic_correctness.py"* ]]; then
82+
commands=${commands//"pytest -v -s basic_correctness/test_basic_correctness.py"/"VLLM_USE_TRITON_FLASH_ATTN=0 pytest -v -s basic_correctness/test_basic_correctness.py"}
83+
fi
84+
85+
if [[ $commands == *"pytest -v -s compile/test_basic_correctness.py"* ]]; then
86+
commands=${commands//"pytest -v -s compile/test_basic_correctness.py"/"VLLM_USE_TRITON_FLASH_ATTN=0 pytest -v -s compile/test_basic_correctness.py"}
87+
fi
88+
7789
#ignore certain kernels tests
7890
if [[ $commands == *" kernels/core"* ]]; then
7991
commands="${commands} \
@@ -161,6 +173,8 @@ fi
161173

162174

163175
PARALLEL_JOB_COUNT=8
176+
MYPYTHONPATH=".."
177+
164178
# check if the command contains shard flag, we will run all shards in parallel because the host have 8 GPUs.
165179
if [[ $commands == *"--shard-id="* ]]; then
166180
# assign job count as the number of shards used
@@ -181,6 +195,7 @@ if [[ $commands == *"--shard-id="* ]]; then
181195
-e AWS_SECRET_ACCESS_KEY \
182196
-v "${HF_CACHE}:${HF_MOUNT}" \
183197
-e "HF_HOME=${HF_MOUNT}" \
198+
-e "PYTHONPATH=${MYPYTHONPATH}" \
184199
--name "${container_name}_${GPU}" \
185200
"${image_name}" \
186201
/bin/bash -c "${commands_gpu}" \
@@ -211,6 +226,7 @@ else
211226
-e AWS_SECRET_ACCESS_KEY \
212227
-v "${HF_CACHE}:${HF_MOUNT}" \
213228
-e "HF_HOME=${HF_MOUNT}" \
229+
-e "PYTHONPATH=${MYPYTHONPATH}" \
214230
--name "${container_name}" \
215231
"${image_name}" \
216232
/bin/bash -c "${commands}"

0 commit comments

Comments
 (0)