77
88env :
99 DIFFUSERS_IS_CI : yes
10- HF_HOME : /mnt/cache
10+ HF_HUB_ENABLE_HF_TRANSFER : 1
1111 OMP_NUM_THREADS : 8
1212 MKL_NUM_THREADS : 8
1313 PYTEST_TIMEOUT : 600
2727 uses : actions/checkout@v3
2828 with :
2929 fetch-depth : 2
30- - name : Set up Python
31- uses : actions/setup-python@v4
32- with :
33- python-version : " 3.8"
3430 - name : Install dependencies
3531 run : |
3632 pip install -e .
@@ -50,36 +46,35 @@ jobs:
5046 path : reports
5147
5248 run_nightly_tests_for_torch_pipelines :
53- name : Torch Pipelines CUDA Nightly Tests
49+ name : Nightly Torch Pipelines CUDA Tests
5450 needs : setup_torch_cuda_pipeline_matrix
5551 strategy :
5652 fail-fast : false
53+ max-parallel : 8
5754 matrix :
5855 module : ${{ fromJson(needs.setup_torch_cuda_pipeline_matrix.outputs.pipeline_test_matrix) }}
5956 runs-on : [single-gpu, nvidia-gpu, t4, ci]
6057 container :
6158 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
6360 steps :
6461 - name : Checkout diffusers
6562 uses : actions/checkout@v3
6663 with :
6764 fetch-depth : 2
6865 - name : NVIDIA-SMI
6966 run : nvidia-smi
70-
7167 - name : Install dependencies
7268 run : |
7369 python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7470 python -m uv pip install -e [quality,test]
7571 python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
7672 python -m uv pip install pytest-reportlog
77-
73+ python -m uv pip install hf_transfer
7874 - name : Environment
7975 run : |
8076 python utils/print_env.py
81-
82- - name : Nightly PyTorch CUDA checkpoint (pipelines) tests
77+ - name : Pipeline CUDA Test
8378 env :
8479 HF_TOKEN : ${{ secrets.HF_TOKEN }}
8580 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
@@ -90,38 +85,36 @@ jobs:
9085 --make-reports=tests_pipeline_${{ matrix.module }}_cuda \
9186 --report-log=tests_pipeline_${{ matrix.module }}_cuda.log \
9287 tests/pipelines/${{ matrix.module }}
93-
9488 - name : Failure short reports
9589 if : ${{ failure() }}
9690 run : |
9791 cat reports/tests_pipeline_${{ matrix.module }}_cuda_stats.txt
9892 cat reports/tests_pipeline_${{ matrix.module }}_cuda_failures_short.txt
99-
10093 - name : Test suite reports artifacts
10194 if : ${{ always() }}
10295 uses : actions/upload-artifact@v2
10396 with :
10497 name : pipeline_${{ matrix.module }}_test_reports
10598 path : reports
106-
10799 - name : Generate Report and Notify Channel
108100 if : always()
109101 run : |
110102 pip install slack_sdk tabulate
111- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
103+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
112104
113105 run_nightly_tests_for_other_torch_modules :
114- name : Torch Non-Pipelines CUDA Nightly Tests
106+ name : Nightly Torch CUDA Tests
115107 runs-on : [single-gpu, nvidia-gpu, t4, ci]
116108 container :
117109 image : diffusers/diffusers-pytorch-cuda
118- options : --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ - -gpus 0
110+ options : --shm-size "16gb" --ipc host --gpus 0
119111 defaults :
120112 run :
121113 shell : bash
122114 strategy :
123115 matrix :
124- module : [models, schedulers, others, examples]
116+ max-parallel : 2
117+ module : [models, schedulers, lora, others, single_file, examples]
125118 steps :
126119 - name : Checkout diffusers
127120 uses : actions/checkout@v3
@@ -133,7 +126,9 @@ jobs:
133126 python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
134127 python -m uv pip install -e [quality,test]
135128 python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
129+ python -m uv pip install peft@git+https://github.com/huggingface/peft.git
136130 python -m uv pip install pytest-reportlog
131+ python -m uv pip install hf_transfer
137132
138133 - name : Environment
139134 run : python utils/print_env.py
@@ -158,7 +153,6 @@ jobs:
158153 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
159154 CUBLAS_WORKSPACE_CONFIG : :16:8
160155 run : |
161- python -m uv pip install peft@git+https://github.com/huggingface/peft.git
162156 python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
163157 -s -v --make-reports=examples_torch_cuda \
164158 --report-log=examples_torch_cuda.log \
@@ -181,64 +175,7 @@ jobs:
181175 if : always()
182176 run : |
183177 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
178+ python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
242179
243180 run_flax_tpu_tests :
244181 name : Nightly Flax TPU Tests
@@ -294,14 +231,14 @@ jobs:
294231 if : always()
295232 run : |
296233 pip install slack_sdk tabulate
297- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
234+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
298235
299236 run_nightly_onnx_tests :
300237 name : Nightly ONNXRuntime CUDA tests on Ubuntu
301238 runs-on : [single-gpu, nvidia-gpu, t4, ci]
302239 container :
303240 image : diffusers/diffusers-onnxruntime-cuda
304- options : --gpus 0 --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/
241+ options : --gpus 0 --shm-size "16gb" --ipc host
305242
306243 steps :
307244 - name : Checkout diffusers
@@ -318,11 +255,12 @@ jobs:
318255 python -m uv pip install -e [quality,test]
319256 python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
320257 python -m uv pip install pytest-reportlog
258+ python -m uv pip install hf_transfer
321259
322260 - name : Environment
323261 run : python utils/print_env.py
324262
325- - name : Run nightly ONNXRuntime CUDA tests
263+ - name : Run Nightly ONNXRuntime CUDA tests
326264 env :
327265 HF_TOKEN : ${{ secrets.HF_TOKEN }}
328266 run : |
@@ -349,7 +287,7 @@ jobs:
349287 if : always()
350288 run : |
351289 pip install slack_sdk tabulate
352- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
290+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
353291
354292 run_nightly_tests_apple_m1 :
355293 name : Nightly PyTorch MPS tests on MacOS
@@ -411,4 +349,4 @@ jobs:
411349 if : always()
412350 run : |
413351 pip install slack_sdk tabulate
414- python scripts /log_reports.py >> $GITHUB_STEP_SUMMARY
352+ python utils /log_reports.py >> $GITHUB_STEP_SUMMARY
0 commit comments