Skip to content

Commit 63b3200

Browse files
authored
Use --gpus all in workflow files (#39752)
gpu all Co-authored-by: ydshieh <[email protected]>
1 parent 95faabf commit 63b3200

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/doctest_job.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
group: aws-g5-4xlarge-cache
3232
container:
3333
image: huggingface/transformers-all-latest-gpu
34-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
34+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
3535
steps:
3636
- name: Update clone
3737
working-directory: /transformers

.github/workflows/doctests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
group: aws-g5-4xlarge-cache
1919
container:
2020
image: huggingface/transformers-all-latest-gpu
21-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
21+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
2222
outputs:
2323
job_splits: ${{ steps.set-matrix.outputs.job_splits }}
2424
split_keys: ${{ steps.set-matrix.outputs.split_keys }}

.github/workflows/self-push.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
group: '${{ matrix.machine_type }}'
3737
container:
3838
image: huggingface/transformers-all-latest-gpu-push-ci
39-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
39+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
4040
outputs:
4141
matrix: ${{ steps.set-matrix.outputs.matrix }}
4242
test_map: ${{ steps.set-matrix.outputs.test_map }}
@@ -136,7 +136,7 @@ jobs:
136136
group: '${{ matrix.machine_type }}'
137137
container:
138138
image: huggingface/transformers-all-latest-gpu-push-ci
139-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
139+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
140140
env:
141141
# For the meaning of these environment variables, see the job `Setup`
142142
CI_BRANCH_PUSH: ${{ github.event.ref }}
@@ -362,7 +362,7 @@ jobs:
362362
group: '${{ matrix.machine_type }}'
363363
container:
364364
image: huggingface/transformers-pytorch-deepspeed-latest-gpu-push-ci
365-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
365+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
366366
env:
367367
# For the meaning of these environment variables, see the job `Setup`
368368
CI_BRANCH_PUSH: ${{ github.event.ref }}

.github/workflows/self-scheduled.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
group: '${{ matrix.machine_type }}'
5656
container:
5757
image: huggingface/transformers-all-latest-gpu
58-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
58+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
5959
outputs:
6060
folder_slices: ${{ steps.set-matrix.outputs.folder_slices }}
6161
slice_ids: ${{ steps.set-matrix.outputs.slice_ids }}
@@ -219,7 +219,7 @@ jobs:
219219
group: '${{ matrix.machine_type }}'
220220
container:
221221
image: huggingface/transformers-all-latest-gpu
222-
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
222+
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
223223
steps:
224224
- name: Update clone
225225
working-directory: /transformers

0 commit comments

Comments
 (0)