Skip to content

Commit 2dcc751

Browse files
committed
separate images
1 parent 7e84723 commit 2dcc751

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

.github/workflows/build-docker-images.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- docker-image*
77
repository_dispatch:
88
workflow_call:
9+
inputs:
10+
image_postfix:
11+
required: true
12+
type: string
913
schedule:
1014
- cron: "0 1 * * *"
1115

@@ -38,10 +42,12 @@ jobs:
3842
build-args: |
3943
REF=main
4044
push: true
41-
tags: huggingface/transformers-all-latest-gpu
45+
tags: huggingface/transformers-all-latest-gpu${{ inputs.image_postfix }}
4246

4347
latest-with-torch-nightly-docker:
4448
name: "Nightly PyTorch + Stable TensorFlow"
49+
# Push CI doesn't need this image
50+
if: inputs.image_postfix != ''
4551
runs-on: ubuntu-latest
4652
steps:
4753
-
@@ -91,10 +97,12 @@ jobs:
9197
build-args: |
9298
REF=main
9399
push: true
94-
tags: huggingface/transformers-pytorch-deepspeed-latest-gpu
100+
tags: huggingface/transformers-pytorch-deepspeed-latest-gpu${{ inputs.image_postfix }}
95101

96102
nightly-torch-deepspeed-docker:
97103
name: "Nightly PyTorch + DeepSpeed"
104+
# Push CI doesn't need this image
105+
if: inputs.image_postfix != ''
98106
runs-on: ubuntu-latest
99107
steps:
100108
-
@@ -121,6 +129,8 @@ jobs:
121129

122130
doc-builder:
123131
name: "Doc builder"
132+
# Push CI doesn't need this image
133+
if: inputs.image_postfix != ''
124134
runs-on: ubuntu-latest
125135
steps:
126136
-
@@ -145,6 +155,8 @@ jobs:
145155

146156
latest-pytorch:
147157
name: "Latest PyTorch [dev]"
158+
# Push CI doesn't need this image
159+
if: inputs.image_postfix != ''
148160
runs-on: ubuntu-latest
149161
steps:
150162
-
@@ -171,6 +183,8 @@ jobs:
171183

172184
latest-tensorflow:
173185
name: "Latest TensorFlow [dev]"
186+
# Push CI doesn't need this image
187+
if: inputs.image_postfix != ''
174188
runs-on: ubuntu-latest
175189
steps:
176190
-

.github/workflows/self-push-caller.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
needs: check-for-setup
4141
if: (github.event_name == 'push') && (needs.check-for-setup.outputs.changed == '1')
4242
uses: ./.github/workflows/build-docker-images.yml
43+
with:
44+
image_postfix: "-push-ci"
4345
secrets: inherit
4446

4547
run_push_ci:

.github/workflows/self-push.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
machine_type: [single-gpu, multi-gpu]
4848
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
4949
container:
50-
image: huggingface/transformers-all-latest-gpu
50+
image: huggingface/transformers-all-latest-gpu-push-ci
5151
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
5252
steps:
5353
- name: NVIDIA-SMI
@@ -62,7 +62,7 @@ jobs:
6262
machine_type: [single-gpu, multi-gpu]
6363
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
6464
container:
65-
image: huggingface/transformers-all-latest-gpu
65+
image: huggingface/transformers-all-latest-gpu-push-ci
6666
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
6767
outputs:
6868
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -158,7 +158,7 @@ jobs:
158158
machine_type: [single-gpu]
159159
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
160160
container:
161-
image: huggingface/transformers-all-latest-gpu
161+
image: huggingface/transformers-all-latest-gpu-push-ci
162162
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
163163
steps:
164164
# Necessary to get the correct branch name and commit SHA for `workflow_run` event
@@ -243,7 +243,7 @@ jobs:
243243
machine_type: [multi-gpu]
244244
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
245245
container:
246-
image: huggingface/transformers-all-latest-gpu
246+
image: huggingface/transformers-all-latest-gpu-push-ci
247247
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
248248
steps:
249249
# Necessary to get the correct branch name and commit SHA for `workflow_run` event
@@ -328,7 +328,7 @@ jobs:
328328
machine_type: [single-gpu]
329329
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
330330
container:
331-
image: huggingface/transformers-pytorch-deepspeed-latest-gpu
331+
image: huggingface/transformers-pytorch-deepspeed-latest-gpu-push-ci
332332
options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
333333
steps:
334334
# Necessary to get the correct branch name and commit SHA for `workflow_run` event
@@ -410,7 +410,7 @@ jobs:
410410
machine_type: [multi-gpu]
411411
runs-on: [self-hosted, docker-gpu, '${{ matrix.machine_type }}']
412412
container:
413-
image: huggingface/transformers-pytorch-deepspeed-latest-gpu
413+
image: huggingface/transformers-pytorch-deepspeed-latest-gpu-push-ci
414414
options: --gpus all --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
415415
steps:
416416
# Necessary to get the correct branch name and commit SHA for `workflow_run` event

0 commit comments

Comments
 (0)