@@ -180,6 +180,55 @@ jobs:
180180 pip install slack_sdk tabulate
181181 python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
182182
183+ run_torch_compile_tests :
184+ name : PyTorch Compile CUDA tests
185+
186+ runs-on :
187+ group : aws-g4dn-2xlarge
188+
189+ container :
190+ image : diffusers/diffusers-pytorch-compile-cuda
191+ options : --gpus 0 --shm-size "16gb" --ipc host
192+
193+ steps :
194+ - name : Checkout diffusers
195+ uses : actions/checkout@v3
196+ with :
197+ fetch-depth : 2
198+
199+ - name : NVIDIA-SMI
200+ run : |
201+ nvidia-smi
202+ - name : Install dependencies
203+ run : |
204+ python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
205+ python -m uv pip install -e [quality,test,training]
206+ - name : Environment
207+ run : |
208+ python utils/print_env.py
209+ - name : Run torch compile tests on GPU
210+ env :
211+ HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
212+ RUN_COMPILE : yes
213+ run : |
214+ python -m pytest -n 1 --max-worker-restart=0 --dist=loadfile -s -v -k "compile" --make-reports=tests_torch_compile_cuda tests/
215+ - name : Failure short reports
216+ if : ${{ failure() }}
217+ run : cat reports/tests_torch_compile_cuda_failures_short.txt
218+
219+ - name : Test suite reports artifacts
220+ if : ${{ always() }}
221+ uses : actions/upload-artifact@v4
222+ with :
223+ name : torch_compile_test_reports
224+ path : reports
225+
226+ - name : Generate Report and Notify Channel
227+ if : always()
228+ run : |
229+ pip install slack_sdk tabulate
230+ python utils/log_reports.py >> $GITHUB_STEP_SUMMARY
231+
183232 run_big_gpu_torch_tests :
184233 name : Torch tests on big GPU
185234 strategy :
0 commit comments