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