8181 python utils/print_env.py
8282 - name : Slow PyTorch CUDA checkpoint tests on Ubuntu
8383 env :
84- HF_TOKEN : ${{ secrets.HF_TOKEN }}
84+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
8585 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
8686 CUBLAS_WORKSPACE_CONFIG : :16:8
8787 run : |
@@ -135,7 +135,7 @@ jobs:
135135
136136 - name : Run PyTorch CUDA tests
137137 env :
138- HF_TOKEN : ${{ secrets.HF_TOKEN }}
138+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
139139 # https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
140140 CUBLAS_WORKSPACE_CONFIG : :16:8
141141 run : |
@@ -157,6 +157,63 @@ jobs:
157157 name : torch_cuda_${{ matrix.module }}_test_reports
158158 path : reports
159159
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+
160217 flax_tpu_tests :
161218 name : Flax TPU Tests
162219 runs-on : docker-tpu
@@ -184,7 +241,7 @@ jobs:
184241
185242 - name : Run slow Flax TPU tests
186243 env :
187- HF_TOKEN : ${{ secrets.HF_TOKEN }}
244+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
188245 run : |
189246 python -m pytest -n 0 \
190247 -s -v -k "Flax" \
@@ -232,7 +289,7 @@ jobs:
232289
233290 - name : Run slow ONNXRuntime CUDA tests
234291 env :
235- HF_TOKEN : ${{ secrets.HF_TOKEN }}
292+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
236293 run : |
237294 python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \
238295 -s -v -k "Onnx" \
@@ -280,7 +337,7 @@ jobs:
280337 python utils/print_env.py
281338 - name : Run example tests on GPU
282339 env :
283- HF_TOKEN : ${{ secrets.HF_TOKEN }}
340+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
284341 RUN_COMPILE : yes
285342 run : |
286343 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:
323380 python utils/print_env.py
324381 - name : Run example tests on GPU
325382 env :
326- HF_TOKEN : ${{ secrets.HF_TOKEN }}
383+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
327384 run : |
328385 python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "xformers" --make-reports=tests_torch_xformers_cuda tests/
329386 - name : Failure short reports
@@ -369,7 +426,7 @@ jobs:
369426
370427 - name : Run example tests on GPU
371428 env :
372- HF_TOKEN : ${{ secrets.HF_TOKEN }}
429+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
373430 run : |
374431 python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
375432 python -m uv pip install timm
0 commit comments