7
7
8
8
env :
9
9
DIFFUSERS_IS_CI : yes
10
- HF_HOME : /mnt/cache
10
+ HF_HUB_ENABLE_HF_TRANSFER : 1
11
11
OMP_NUM_THREADS : 8
12
12
MKL_NUM_THREADS : 8
13
13
PYTEST_TIMEOUT : 600
27
27
uses : actions/checkout@v3
28
28
with :
29
29
fetch-depth : 2
30
- - name : Set up Python
31
- uses : actions/setup-python@v4
32
- with :
33
- python-version : " 3.8"
34
30
- name : Install dependencies
35
31
run : |
36
32
pip install -e .
@@ -50,36 +46,34 @@ jobs:
50
46
path : reports
51
47
52
48
run_nightly_tests_for_torch_pipelines :
53
- name : Torch Pipelines CUDA Nightly Tests
49
+ name : Nightly Torch Pipelines CUDA Tests
54
50
needs : setup_torch_cuda_pipeline_matrix
55
51
strategy :
56
52
fail-fast : false
53
+ max-parallel : 8
57
54
matrix :
58
55
module : ${{ fromJson(needs.setup_torch_cuda_pipeline_matrix.outputs.pipeline_test_matrix) }}
59
56
runs-on : [single-gpu, nvidia-gpu, t4, ci]
60
57
container :
61
58
image : diffusers/diffusers-pytorch-cuda
62
- options : --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface/diffusers:/mnt/cache/ - -gpus 0
59
+ options : --shm-size "16gb" --ipc host --gpus 0
63
60
steps :
64
61
- name : Checkout diffusers
65
62
uses : actions/checkout@v3
66
63
with :
67
64
fetch-depth : 2
68
65
- name : NVIDIA-SMI
69
66
run : nvidia-smi
70
-
71
67
- name : Install dependencies
72
68
run : |
73
69
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
74
70
python -m uv pip install -e [quality,test]
75
71
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
76
72
python -m uv pip install pytest-reportlog
77
-
78
73
- name : Environment
79
74
run : |
80
75
python utils/print_env.py
81
-
82
- - name : Nightly PyTorch CUDA checkpoint (pipelines) tests
76
+ - name : Pipeline CUDA Test
83
77
env :
84
78
HF_TOKEN : ${{ secrets.HF_TOKEN }}
85
79
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
@@ -90,38 +84,36 @@ jobs:
90
84
--make-reports=tests_pipeline_${{ matrix.module }}_cuda \
91
85
--report-log=tests_pipeline_${{ matrix.module }}_cuda.log \
92
86
tests/pipelines/${{ matrix.module }}
93
-
94
87
- name : Failure short reports
95
88
if : ${{ failure() }}
96
89
run : |
97
90
cat reports/tests_pipeline_${{ matrix.module }}_cuda_stats.txt
98
91
cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
99
-
100
92
- name : Test suite reports artifacts
101
93
if : ${{ always() }}
102
94
uses : actions/upload-artifact@v2
103
95
with :
104
96
name : pipeline_${{ matrix.module }}_test_reports
105
97
path : reports
106
-
107
98
- name : Generate Report and Notify Channel
108
99
if : always()
109
100
run : |
110
101
pip install slack_sdk tabulate
111
- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
102
+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
112
103
113
104
run_nightly_tests_for_other_torch_modules :
114
- name : Torch Non-Pipelines CUDA Nightly Tests
105
+ name : Nightly Torch CUDA Tests
115
106
runs-on : [single-gpu, nvidia-gpu, t4, ci]
116
107
container :
117
108
image : diffusers/diffusers-pytorch-cuda
118
- options : --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ - -gpus 0
109
+ options : --shm-size "16gb" --ipc host --gpus 0
119
110
defaults :
120
111
run :
121
112
shell : bash
122
113
strategy :
123
114
matrix :
124
- module : [models, schedulers, others, examples]
115
+ max-parallel : 2
116
+ module : [models, schedulers, lora, others, single_file, examples]
125
117
steps :
126
118
- name : Checkout diffusers
127
119
uses : actions/checkout@v3
@@ -133,8 +125,8 @@ jobs:
133
125
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
134
126
python -m uv pip install -e [quality,test]
135
127
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
128
+ python -m uv pip install peft@git+https://github.com/huggingface/peft.git
136
129
python -m uv pip install pytest-reportlog
137
-
138
130
- name : Environment
139
131
run : python utils/print_env.py
140
132
@@ -158,7 +150,6 @@ jobs:
158
150
# https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
159
151
CUBLAS_WORKSPACE_CONFIG : :16:8
160
152
run : |
161
- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
162
153
python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
163
154
-s -v --make-reports=examples_torch_cuda \
164
155
--report-log=examples_torch_cuda.log \
@@ -181,64 +172,7 @@ jobs:
181
172
if : always()
182
173
run : |
183
174
pip install slack_sdk tabulate
184
- python scripts/log_reports.py >> $GITHUB_STEP_SUMMARY
185
-
186
- run_lora_nightly_tests :
187
- name : Nightly LoRA Tests with PEFT and TORCH
188
- runs-on : [single-gpu, nvidia-gpu, t4, ci]
189
- container :
190
- image : diffusers/diffusers-pytorch-cuda
191
- options : --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --gpus 0
192
- defaults :
193
- run :
194
- shell : bash
195
- steps :
196
- - name : Checkout diffusers
197
- uses : actions/checkout@v3
198
- with :
199
- fetch-depth : 2
200
-
201
- - name : Install dependencies
202
- run : |
203
- python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
204
- python -m uv pip install -e [quality,test]
205
- python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
206
- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
207
- python -m uv pip install pytest-reportlog
208
-
209
- - name : Environment
210
- run : python utils/print_env.py
211
-
212
- - name : Run nightly LoRA tests with PEFT and Torch
213
- env :
214
- HF_TOKEN : ${{ secrets.HF_TOKEN }}
215
- # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
216
- CUBLAS_WORKSPACE_CONFIG : :16:8
217
- run : |
218
- python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
219
- -s -v -k "not Flax and not Onnx" \
220
- --make-reports=tests_torch_lora_cuda \
221
- --report-log=tests_torch_lora_cuda.log \
222
- tests/lora
223
-
224
- - name : Failure short reports
225
- if : ${{ failure() }}
226
- run : |
227
- cat reports/tests_torch_lora_cuda_stats.txt
228
- cat reports/tests_torch_lora_cuda_failures_short.txt
229
-
230
- - name : Test suite reports artifacts
231
- if : ${{ always() }}
232
- uses : actions/upload-artifact@v2
233
- with :
234
- name : torch_lora_cuda_test_reports
235
- path : reports
236
-
237
- - name : Generate Report and Notify Channel
238
- if : always()
239
- run : |
240
- pip install slack_sdk tabulate
241
- python scripts/log_reports.py >> $GITHUB_STEP_SUMMARY
175
+ python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
242
176
243
177
run_flax_tpu_tests :
244
178
name : Nightly Flax TPU Tests
@@ -294,14 +228,14 @@ jobs:
294
228
if : always()
295
229
run : |
296
230
pip install slack_sdk tabulate
297
- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
231
+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
298
232
299
233
run_nightly_onnx_tests :
300
234
name : Nightly ONNXRuntime CUDA tests on Ubuntu
301
235
runs-on : [single-gpu, nvidia-gpu, t4, ci]
302
236
container :
303
237
image : diffusers/diffusers-onnxruntime-cuda
304
- options : --gpus 0 --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
238
+ options : --gpus 0 --shm-size "16gb" --ipc host
305
239
306
240
steps :
307
241
- name : Checkout diffusers
@@ -318,11 +252,10 @@ jobs:
318
252
python -m uv pip install -e [quality,test]
319
253
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
320
254
python -m uv pip install pytest-reportlog
321
-
322
255
- name : Environment
323
256
run : python utils/print_env.py
324
257
325
- - name : Run nightly ONNXRuntime CUDA tests
258
+ - name : Run Nightly ONNXRuntime CUDA tests
326
259
env :
327
260
HF_TOKEN : ${{ secrets.HF_TOKEN }}
328
261
run : |
@@ -349,7 +282,7 @@ jobs:
349
282
if : always()
350
283
run : |
351
284
pip install slack_sdk tabulate
352
- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
285
+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
353
286
354
287
run_nightly_tests_apple_m1 :
355
288
name : Nightly PyTorch MPS tests on MacOS
@@ -411,4 +344,4 @@ jobs:
411
344
if : always()
412
345
run : |
413
346
pip install slack_sdk tabulate
414
- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
347
+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
0 commit comments