1313  PYTEST_TIMEOUT : 600 
1414  RUN_SLOW : yes 
1515  RUN_NIGHTLY : yes 
16-   PIPELINE_USAGE_CUTOFF : 2000000 
16+   PIPELINE_USAGE_CUTOFF : 0 
1717  SLACK_API_TOKEN : ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} 
1818  CONSOLIDATED_REPORT_PATH : consolidated_test_report.md 
1919
@@ -484,6 +484,57 @@ jobs:
484484          name : torch_cuda_pipeline_level_quant_reports 
485485          path : reports 
486486
487+   run_flax_tpu_tests :
488+     name : Nightly Flax TPU Tests 
489+     runs-on :
490+       group : gcp-ct5lp-hightpu-8t 
491+     if : github.event_name == 'schedule' 
492+ 
493+     container :
494+       image : diffusers/diffusers-flax-tpu 
495+       options : --shm-size "16gb" --ipc host --privileged ${{ vars.V5_LITEPOD_8_ENV}} -v /mnt/hf_cache:/mnt/hf_cache 
496+     defaults :
497+       run :
498+         shell : bash 
499+     steps :
500+     - name : Checkout diffusers 
501+       uses : actions/checkout@v3 
502+       with :
503+         fetch-depth : 2 
504+ 
505+     - name : Install dependencies 
506+       run : | 
507+         python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH" 
508+         python -m uv pip install -e [quality,test] 
509+         pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git 
510+         python -m uv pip install pytest-reportlog 
511+ 
512+      - name : Environment 
513+       run : python utils/print_env.py 
514+ 
515+     - name : Run nightly Flax TPU tests 
516+       env :
517+         HF_TOKEN : ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }} 
518+       run : | 
519+         python -m pytest -n 0 \ 
520+           -s -v -k "Flax" \ 
521+           --make-reports=tests_flax_tpu \ 
522+           --report-log=tests_flax_tpu.log \ 
523+           tests/ 
524+ 
525+      - name : Failure short reports 
526+       if : ${{ failure() }} 
527+       run : | 
528+         cat reports/tests_flax_tpu_stats.txt 
529+         cat reports/tests_flax_tpu_failures_short.txt 
530+ 
531+      - name : Test suite reports artifacts 
532+       if : ${{ always() }} 
533+       uses : actions/upload-artifact@v4 
534+       with :
535+         name : flax_tpu_test_reports 
536+         path : reports 
537+ 
487538  generate_consolidated_report :
488539    name : Generate Consolidated Test Report 
489540    needs : [ 
@@ -494,6 +545,8 @@ jobs:
494545      run_nightly_quantization_tests, 
495546      run_nightly_pipeline_level_quantization_tests, 
496547      run_nightly_onnx_tests, 
548+       torch_minimum_version_cuda_tests, 
549+       run_flax_tpu_tests 
497550    ] 
498551    if : always() 
499552    runs-on :
@@ -531,10 +584,6 @@ jobs:
531584            --output_file $CONSOLIDATED_REPORT_PATH \ 
532585            --slack_channel_name diffusers-ci-nightly 
533586
534-        - name : Show consolidated report 
535-         run : | 
536-           cat $CONSOLIDATED_REPORT_PATH >> $GITHUB_STEP_SUMMARY 
537- 
538587       - name : Upload consolidated report 
539588        uses : actions/upload-artifact@v4 
540589        with :
0 commit comments