@@ -235,7 +235,64 @@ jobs:
235235        run : | 
236236          pip install slack_sdk tabulate 
237237          python utils/log_reports.py >> $GITHUB_STEP_SUMMARY 
238+            
239+ torch_minimum_version_cuda_tests :
240+     name : Torch Minimum Version CUDA Tests 
241+     runs-on :
242+       group : aws-g4dn-2xlarge 
243+     container :
244+       image : diffusers/diffusers-pytorch-minimum-cuda 
245+       options : --shm-size "16gb" --ipc host --gpus 0 
246+     defaults :
247+       run :
248+         shell : bash 
249+     steps :
250+       - name : Checkout diffusers 
251+         uses : actions/checkout@v3 
252+         with :
253+           fetch-depth : 2 
254+ 
255+       - name : Install dependencies 
256+         run : | 
257+           python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH" 
258+           python -m uv pip install -e [quality,test] 
259+           python -m uv pip install peft@git+https://github.com/huggingface/peft.git 
260+           pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git 
238261
262+ name : Environment 
263+         run : | 
264+           python utils/print_env.py 
265+ 
266+ name : Run PyTorch CUDA tests 
267+         env :
268+           HF_TOKEN : ${{ secrets.HF_TOKEN }} 
269+           #  https://pytorch.org/docs/stable/notes/randomness.html#avoiding-nondeterministic-algorithms
270+           CUBLAS_WORKSPACE_CONFIG : :16:8 
271+         run : | 
272+           python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile \ 
273+             -s -v -k "not Flax and not Onnx" \ 
274+             --make-reports=tests_torch_minimum_version_cuda \ 
275+             tests/models/test_modeling_common.py \ 
276+             tests/pipelines/test_pipelines_common.py \ 
277+             tests/pipelines/test_pipeline_utils.py \ 
278+             tests/pipelines/test_pipelines.py \ 
279+             tests/pipelines/test_pipelines_auto.py \ 
280+             tests/schedulers/test_schedulers.py \ 
281+             tests/others 
282+ 
283+ name : Failure short reports 
284+         if : ${{ failure() }} 
285+         run : | 
286+           cat reports/tests_torch_minimum_version_cuda_stats.txt 
287+           cat reports/tests_torch_minimum_version_cuda_failures_short.txt 
288+ 
289+ name : Test suite reports artifacts 
290+         if : ${{ always() }} 
291+         uses : actions/upload-artifact@v4 
292+         with :
293+           name : torch_minimum_version_cuda_test_reports 
294+           path : reports 
295+  
239296  run_flax_tpu_tests :
240297    name : Nightly Flax TPU Tests 
241298    runs-on :
0 commit comments