Skip to content

Commit 696d99f

Browse files
committed
Update int test container launcher to use --gpus=alll
1 parent e8bc912 commit 696d99f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/launch_container.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ if $is_multi_node; then
157157
-e DJL_LEADER_ADDR=${leader_hostname} \
158158
-e DJL_WORKER_ADDR_FORMAT="${LWS_NAME}-${GROUP_INDEX}-%d.${LWS_NAME}.${NAMESPACE}" \
159159
${env_file} \
160-
${runtime:+--runtime="${runtime}"} \
160+
${runtime:+--gpus=all} \
161161
${shm:+--shm-size="${shm}"} \
162162
${host_device:+ ${host_device}} \
163163
"${docker_image}" "service ssh start; djl-serving"
@@ -179,7 +179,7 @@ if $is_multi_node; then
179179
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
180180
-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
181181
${env_file} \
182-
${runtime:+--runtime="${runtime}"} \
182+
${runtime:+--gpus=all} \
183183
${shm:+--shm-size="${shm}"} \
184184
${host_device:+ ${host_device}} \
185185
"${docker_image}" "service ssh start; /usr/bin/python3 /opt/djl/partition/run_multi_node_setup.py 2>&1 | tee /opt/djl/logs/lmi-worker.log; tail -f"
@@ -207,7 +207,7 @@ elif $is_sm_neo_context; then
207207
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
208208
-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
209209
${env_file} \
210-
${runtime:+--runtime="${runtime}"} \
210+
${runtime:+--gpus=all} \
211211
${shm:+--shm-size="${shm}"} \
212212
${host_device:+ ${host_device}} \
213213
"${docker_image}"
@@ -228,7 +228,7 @@ elif $is_partition; then
228228
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
229229
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
230230
-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
231-
${runtime:+--runtime="${runtime}"} \
231+
${runtime:+--gpus=all} \
232232
${shm:+--shm-size="${shm}"} \
233233
${host_device:+ ${host_device}} \
234234
"${docker_image}" \
@@ -247,7 +247,7 @@ elif [[ "$docker_image" == *"text-generation-inference"* ]]; then
247247
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
248248
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
249249
-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
250-
${runtime:+--runtime="${runtime}"} \
250+
${runtime:+--gpus=all} \
251251
${shm:+--shm-size="${shm}"} \
252252
"${docker_image}" \
253253
${args})
@@ -272,7 +272,7 @@ else
272272
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
273273
-e AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN \
274274
$uid_mapping \
275-
${runtime:+--runtime="${runtime}"} \
275+
${runtime:+--gpus=all} \
276276
${shm:+--shm-size="${shm}"} \
277277
${host_device:+ ${host_device}} \
278278
"${docker_image}" \

0 commit comments

Comments
 (0)