@@ -45,33 +45,20 @@ jobs:
4545 REF=main
4646 push : true
4747 tags : huggingface/transformers-all-latest-gpu${{ inputs.image_postfix }}
48- # Push CI images still need to be re-built daily
49- -
50- name : Build and push (for Push CI) in a daily basis
51- # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
52- # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
53- if : inputs.image_postfix != '-push-ci'
54- uses : docker/build-push-action@v5
55- with :
56- context : ./docker/transformers-all-latest-gpu
57- build-args : |
58- REF=main
59- push : true
60- tags : huggingface/transformers-all-latest-gpu-push-ci
6148
6249 - name : Post to Slack
6350 if : always()
6451 uses : huggingface/hf-workflows/.github/actions/post-slack@main
6552 with :
6653 slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER }}
67- title : 🤗 Results of the transformers-all-latest-gpu-push-ci docker build
54+ title : 🤗 Results of the transformers-all-latest-gpu docker build
6855 status : ${{ job.status }}
6956 slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
7057
71- latest-torch-deepspeed-docker :
72- name : " Latest PyTorch + DeepSpeed "
58+ flash-attn-ci-image :
59+ name : " PyTorch with Flash Attn [dev] "
7360 runs-on :
74- group : aws-g4dn-2xlarge-cache
61+ group : aws-general-8-plus
7562 steps :
7663 -
7764 name : Set up Docker Buildx
@@ -89,26 +76,28 @@ jobs:
8976 name : Build and push
9077 uses : docker/build-push-action@v5
9178 with :
92- context : ./docker/transformers-pytorch-deepspeed -latest-gpu
79+ context : ./docker/transformers-all -latest-gpu
9380 build-args : |
94- REF=main
81+ REF=update_dockerfile
82+ PYTORCH=2.8.0
83+ TORCHCODEC=0.7.0
84+ FLASH_ATTN=yes
9585 push : true
96- tags : huggingface/transformers-pytorch-deepspeed- latest-gpu${{ inputs.image_postfix }}
86+ tags : huggingface/transformers-all- latest-gpu${{ inputs.image_postfix }}:flash-attn
9787
9888 - name : Post to Slack
9989 if : always()
10090 uses : huggingface/hf-workflows/.github/actions/post-slack@main
10191 with :
102- slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER}}
103- title : 🤗 Results of the transformers-pytorch-deepspeed -latest-gpu docker build
92+ slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER }}
93+ title : 🤗 Results of the transformers-all -latest-gpu docker build
10494 status : ${{ job.status }}
10595 slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
10696
107- # Can't build 2 images in a single job `latest-torch-deepspeed-docker` (for `nvcr.io/nvidia`)
108- latest-torch-deepspeed-docker-for-push-ci-daily-build :
109- name : " Latest PyTorch + DeepSpeed (Push CI - Daily Build)"
97+ latest-torch-deepspeed-docker :
98+ name : " Latest PyTorch + DeepSpeed"
11099 runs-on :
111- group : aws-general-8-plus
100+ group : aws-g4dn-2xlarge-cache
112101 steps :
113102 -
114103 name : Set up Docker Buildx
@@ -122,33 +111,27 @@ jobs:
122111 with :
123112 username : ${{ secrets.DOCKERHUB_USERNAME }}
124113 password : ${{ secrets.DOCKERHUB_PASSWORD }}
125- # Push CI images still need to be re-built daily
126114 -
127- name : Build and push (for Push CI) in a daily basis
128- # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
129- # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
130- if : inputs.image_postfix != '-push-ci'
115+ name : Build and push
131116 uses : docker/build-push-action@v5
132117 with :
133118 context : ./docker/transformers-pytorch-deepspeed-latest-gpu
134119 build-args : |
135120 REF=main
136121 push : true
137- tags : huggingface/transformers-pytorch-deepspeed-latest-gpu-push-ci
122+ tags : huggingface/transformers-pytorch-deepspeed-latest-gpu${{ inputs.image_postfix }}
138123
139124 - name : Post to Slack
140125 if : always()
141126 uses : huggingface/hf-workflows/.github/actions/post-slack@main
142127 with :
143- slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER }}
144- title : 🤗 Results of the transformers-pytorch-deepspeed-latest-gpu-push-ci docker build
128+ slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER}}
129+ title : 🤗 Results of the transformers-pytorch-deepspeed-latest-gpu docker build
145130 status : ${{ job.status }}
146131 slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
147132
148133 doc-builder :
149134 name : " Doc builder"
150- # Push CI doesn't need this image
151- if : inputs.image_postfix != '-push-ci'
152135 runs-on :
153136 group : aws-general-8-plus
154137 steps :
@@ -181,44 +164,6 @@ jobs:
181164 status : ${{ job.status }}
182165 slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
183166
184- latest-pytorch :
185- name : " Latest PyTorch [dev]"
186- # Push CI doesn't need this image
187- if : inputs.image_postfix != '-push-ci'
188- runs-on :
189- group : aws-general-8-plus
190- steps :
191- -
192- name : Set up Docker Buildx
193- uses : docker/setup-buildx-action@v3
194- -
195- name : Check out code
196- uses : actions/checkout@v4
197- -
198- name : Login to DockerHub
199- uses : docker/login-action@v3
200- with :
201- username : ${{ secrets.DOCKERHUB_USERNAME }}
202- password : ${{ secrets.DOCKERHUB_PASSWORD }}
203- -
204- name : Build and push
205- uses : docker/build-push-action@v5
206- with :
207- context : ./docker/transformers-pytorch-gpu
208- build-args : |
209- REF=main
210- push : true
211- tags : huggingface/transformers-pytorch-gpu
212-
213- - name : Post to Slack
214- if : always()
215- uses : huggingface/hf-workflows/.github/actions/post-slack@main
216- with :
217- slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER }}
218- title : 🤗 Results of the huggingface/transformers-pytorch-gpudocker build
219- status : ${{ job.status }}
220- slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
221-
222167 latest-pytorch-amd :
223168 name : " Latest PyTorch (AMD) [dev]"
224169 runs-on :
@@ -245,26 +190,13 @@ jobs:
245190 REF=main
246191 push : true
247192 tags : huggingface/transformers-pytorch-amd-gpu${{ inputs.image_postfix }}
248- # Push CI images still need to be re-built daily
249- -
250- name : Build and push (for Push CI) in a daily basis
251- # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
252- # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
253- if : inputs.image_postfix != '-push-ci'
254- uses : docker/build-push-action@v5
255- with :
256- context : ./docker/transformers-pytorch-amd-gpu
257- build-args : |
258- REF=main
259- push : true
260- tags : huggingface/transformers-pytorch-amd-gpu-push-ci
261193
262194 - name : Post to Slack
263195 if : always()
264196 uses : huggingface/hf-workflows/.github/actions/post-slack@main
265197 with :
266198 slack_channel : ${{ secrets.CI_SLACK_CHANNEL_DOCKER }}
267- title : 🤗 Results of the huggingface/transformers-pytorch-amd-gpu-push-ci build
199+ title : 🤗 Results of the huggingface/transformers-pytorch-amd-gpu build
268200 status : ${{ job.status }}
269201 slack_token : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }}
270202
@@ -294,19 +226,6 @@ jobs:
294226 REF=main
295227 push : true
296228 tags : huggingface/transformers-pytorch-deepspeed-amd-gpu${{ inputs.image_postfix }}
297- # Push CI images still need to be re-built daily
298- -
299- name : Build and push (for Push CI) in a daily basis
300- # This condition allows `schedule` events, or `push` events that trigger this workflow NOT via `workflow_call`.
301- # The later case is useful for manual image building for debugging purpose. Use another tag in this case!
302- if : inputs.image_postfix != '-push-ci'
303- uses : docker/build-push-action@v5
304- with :
305- context : ./docker/transformers-pytorch-deepspeed-amd-gpu
306- build-args : |
307- REF=main
308- push : true
309- tags : huggingface/transformers-pytorch-deepspeed-amd-gpu-push-ci
310229
311230 - name : Post to Slack
312231 if : always()
@@ -319,8 +238,6 @@ jobs:
319238
320239 latest-quantization-torch-docker :
321240 name : " Latest Pytorch + Quantization [dev]"
322- # Push CI doesn't need this image
323- if : inputs.image_postfix != '-push-ci'
324241 runs-on :
325242 group : aws-general-8-plus
326243 steps :
0 commit comments