81
81
python utils/print_env.py
82
82
- name : Slow PyTorch CUDA checkpoint tests on Ubuntu
83
83
env :
84
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
84
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
85
85
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
86
86
CUBLAS_WORKSPACE_CONFIG : :16:8
87
87
run : |
@@ -135,7 +135,7 @@ jobs:
135
135
136
136
- name : Run PyTorch CUDA tests
137
137
env :
138
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
138
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
139
139
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
140
140
CUBLAS_WORKSPACE_CONFIG : :16:8
141
141
run : |
@@ -157,6 +157,63 @@ jobs:
157
157
name : torch_cuda_${{ matrix.module }}_test_reports
158
158
path : reports
159
159
160
+ torch_minimum_version_cuda_tests :
161
+ name : Torch Minimum Version CUDA Tests
162
+ runs-on :
163
+ group : aws-g4dn-2xlarge
164
+ container :
165
+ image : diffusers/diffusers-pytorch-minimum-cuda
166
+ options : --shm-size "16gb" --ipc host --gpus 0
167
+ defaults :
168
+ run :
169
+ shell : bash
170
+ steps :
171
+ - name : Checkout diffusers
172
+ uses : actions/checkout@v3
173
+ with :
174
+ fetch-depth : 2
175
+
176
+ - name : Install dependencies
177
+ run : |
178
+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
179
+ python -m uv pip install -e [quality,test]
180
+ python -m uv pip install peft@git+https://github.com/huggingface/peft.git
181
+ pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
182
+
183
+ - name : Environment
184
+ run : |
185
+ python utils/print_env.py
186
+
187
+ - name : Run PyTorch CUDA tests
188
+ env :
189
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
190
+ # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
191
+ CUBLAS_WORKSPACE_CONFIG : :16:8
192
+ run : |
193
+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
194
+ -s -v -k "not Flax and not Onnx" \
195
+ --make-reports=tests_torch_minimum_cuda \
196
+ tests/models/test_modeling_common.py \
197
+ tests/pipelines/test_pipelines_common.py \
198
+ tests/pipelines/test_pipeline_utils.py \
199
+ tests/pipelines/test_pipelines.py \
200
+ tests/pipelines/test_pipelines_auto.py \
201
+ tests/schedulers/test_schedulers.py \
202
+ tests/others
203
+
204
+ - name : Failure short reports
205
+ if : ${{ failure() }}
206
+ run : |
207
+ cat reports/tests_torch_minimum_version_cuda_stats.txt
208
+ cat reports/tests_torch_minimum_version_cuda_failures_short.txt
209
+
210
+ - name : Test suite reports artifacts
211
+ if : ${{ always() }}
212
+ uses : actions/upload-artifact@v4
213
+ with :
214
+ name : torch_minimum_version_cuda_test_reports
215
+ path : reports
216
+
160
217
flax_tpu_tests :
161
218
name : Flax TPU Tests
162
219
runs-on : docker-tpu
@@ -184,7 +241,7 @@ jobs:
184
241
185
242
- name : Run slow Flax TPU tests
186
243
env :
187
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
244
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
188
245
run : |
189
246
python -m pytest -n 0 \
190
247
-s -v -k "Flax" \
@@ -232,7 +289,7 @@ jobs:
232
289
233
290
- name : Run slow ONNXRuntime CUDA tests
234
291
env :
235
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
292
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
236
293
run : |
237
294
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
238
295
-s -v -k "Onnx" \
@@ -280,7 +337,7 @@ jobs:
280
337
python utils/print_env.py
281
338
- name : Run example tests on GPU
282
339
env :
283
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
340
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
284
341
RUN_COMPILE : yes
285
342
run : |
286
343
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
@@ -323,7 +380,7 @@ jobs:
323
380
python utils/print_env.py
324
381
- name : Run example tests on GPU
325
382
env :
326
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
383
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
327
384
run : |
328
385
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "xformers" --make-reports=tests_torch_xformers_cuda tests/
329
386
- name : Failure short reports
@@ -369,7 +426,7 @@ jobs:
369
426
370
427
- name : Run example tests on GPU
371
428
env :
372
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
429
+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
373
430
run : |
374
431
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
375
432
python -m uv pip install timm
0 commit comments