Skip to content

Commit 7ea2939

Browse files
committed
Add lora unit tests to the CI
Signed-off-by: Xiongfei Wei <isaacwxf23@gmail.com>
1 parent d409a35 commit 7ea2939

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

.buildkite/pipeline_jax.yml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,28 +150,20 @@ steps:
150150
exit 0
151151
fi
152152
153-
- label: "lora tests for JAX + vLLM models single chip"
153+
- label: "lora e2e tests for JAX + vLLM models single chip"
154154
key: test_10
155155
soft_fail: true
156156
agents:
157157
queue: tpu_v6e_queue
158158
commands:
159159
- |
160-
<<<<<<< HEAD
161160
if [[ "$$NIGHTLY" == "1" ]]; then
162161
.buildkite/scripts/run_in_docker.sh \
163-
bash -c 'MODEL_IMPL_TYPE=vllm TPU_BACKEND_TYPE=jax python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_lora.py && \
164-
python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_bgmv.py'
162+
bash -c 'MODEL_IMPL_TYPE=vllm TPU_BACKEND_TYPE=jax python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_lora.py'
165163
else
166164
echo "Skipping: NIGHTLY environment variable not set"
167165
exit 0
168166
fi
169-
=======
170-
.buildkite/scripts/run_in_docker.sh \
171-
bash -c 'MODEL_IMPL_TYPE=vllm TPU_BACKEND_TYPE=jax python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_lora.py && \
172-
python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_bgmv.py && \
173-
python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_layers.py'
174-
>>>>>>> c17bacea (add multi-chip test case)
175167
176168
- label: "E2E MLPerf tests for JAX + vLLM models on multiple chips"
177169
key: test_11
@@ -209,7 +201,7 @@ steps:
209201
exit 0
210202
fi
211203
212-
- label: "lora tests for JAX + vLLM models multi chips"
204+
- label: "lora e2e tests for JAX + vLLM models multi chips"
213205
key: test_13
214206
soft_fail: true
215207
env:
@@ -219,19 +211,38 @@ steps:
219211
queue: tpu_v6e_8_queue
220212
commands:
221213
- |
222-
<<<<<<< HEAD
223214
if [[ "$$NIGHTLY" == "1" ]]; then
224215
.buildkite/scripts/run_in_docker.sh \
225216
bash -c 'MODEL_IMPL_TYPE=vllm TPU_BACKEND_TYPE=jax python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_lora.py'
226217
else
227218
echo "Skipping: NIGHTLY environment variable not set"
228219
exit 0
229220
fi
230-
=======
221+
222+
- label: "lora unit tests on single chip"
223+
key: test_14
224+
soft_fail: true
225+
agents:
226+
queue: tpu_v6e_queue
227+
commands:
228+
- |
231229
.buildkite/scripts/run_in_docker.sh \
232-
bash -c 'MODEL_IMPL_TYPE=vllm TPU_BACKEND_TYPE=jax python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_lora.py && \
233-
python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_layers.py'
234-
>>>>>>> c17bacea (add multi-chip test case)
230+
bash -c ' python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_bgmv.py && \
231+
python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_layers.py'
232+
233+
- label: "lora unit tests on multi chips"
234+
key: test_15
235+
soft_fail: true
236+
env:
237+
USE_V6E8_QUEUE: "True"
238+
VLLM_LOG_LEVEL: "INFO"
239+
agents:
240+
queue: tpu_v6e_8_queue
241+
commands:
242+
- |
243+
.buildkite/scripts/run_in_docker.sh \
244+
bash -c 'python3 -m pytest -s -v -x /workspace/tpu_inference/tests/lora/test_layers.py'
245+
235246
236247
237248
# -----------------------------------------------------------------
@@ -253,9 +264,11 @@ steps:
253264
- test_11
254265
- test_12
255266
- test_13
267+
- test_14
268+
- test_15
256269
agents:
257270
queue: cpu
258271
commands:
259272
- |
260273
.buildkite/scripts/check_results.sh \
261-
"TPU JAX Tests Failed" test_0 test_1 test_2 test_3 test_4 test_5 test_6 test_7 test_8 test_9 test_10 test_11 test_12 test_13
274+
"TPU JAX Tests Failed" test_0 test_1 test_2 test_3 test_4 test_5 test_6 test_7 test_8 test_9 test_10 test_11 test_12 test_13 test_14 test_15

0 commit comments

Comments
 (0)