fix --gpus option for docker (#17235)
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
6
.github/workflows/self-scheduled.yml
vendored
6
.github/workflows/self-scheduled.yml
vendored
@@ -126,7 +126,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.machines }}
|
runs-on: ${{ matrix.machines }}
|
||||||
container:
|
container:
|
||||||
image: huggingface/transformers-all-latest-gpu
|
image: huggingface/transformers-all-latest-gpu
|
||||||
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Echo folder ${{ matrix.folders }}
|
- name: Echo folder ${{ matrix.folders }}
|
||||||
@@ -208,7 +208,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.machines }}
|
runs-on: ${{ matrix.machines }}
|
||||||
container:
|
container:
|
||||||
image: huggingface/transformers-pytorch-gpu
|
image: huggingface/transformers-pytorch-gpu
|
||||||
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
# Set machine type, i.e. `single-gpu` or `multi-gpu`. Here we just remove `-docker`.
|
# Set machine type, i.e. `single-gpu` or `multi-gpu`. Here we just remove `-docker`.
|
||||||
@@ -252,7 +252,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.machines }}
|
runs-on: ${{ matrix.machines }}
|
||||||
container:
|
container:
|
||||||
image: huggingface/transformers-tensorflow-gpu
|
image: huggingface/transformers-tensorflow-gpu
|
||||||
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
# Set machine type, i.e. `single-gpu` or `multi-gpu`. Here we just remove `-docker`.
|
# Set machine type, i.e. `single-gpu` or `multi-gpu`. Here we just remove `-docker`.
|
||||||
|
|||||||
Reference in New Issue
Block a user