Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uv pip install -r benchmarks/requirements.txt
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Diffusers Benchmarking
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/nightly_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uv pip install pytest-reportlog
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Pipeline CUDA Test
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
uv pip install pytest-reportlog
- name: Environment
run: python utils/print_env.py
run: diffusers-cli env

- name: Run nightly PyTorch CUDA tests for non-pipeline modules
if: ${{ matrix.module != 'examples'}}
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run torch compile tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
uv pip install pytest-reportlog
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Selected Torch CUDA Test on big GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run PyTorch CUDA tests
env:
Expand Down Expand Up @@ -372,7 +372,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: ${{ matrix.config.backend }} quantization tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -422,7 +422,7 @@ jobs:
uv pip install pytest-reportlog
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Pipeline-level quantization tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -538,7 +538,7 @@ jobs:
# - name: Environment
# shell: arch -arch arm64 bash {0}
# run: |
# ${CONDA_RUN} python utils/print_env.py
# ${CONDA_RUN} diffusers-cli env
# - name: Run nightly PyTorch tests on M1 (MPS)
# shell: arch -arch arm64 bash {0}
# env:
Expand Down Expand Up @@ -594,7 +594,7 @@ jobs:
# - name: Environment
# shell: arch -arch arm64 bash {0}
# run: |
# ${CONDA_RUN} python utils/print_env.py
# ${CONDA_RUN} diffusers-cli env
# - name: Run nightly PyTorch tests on M1 (MPS)
# shell: arch -arch arm64 bash {0}
# env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_modular_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run fast PyTorch Pipeline CPU tests
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_test_fetcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uv pip install -e ".[quality]"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
echo $(git --version)
- name: Fetch Tests
run: |
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run all selected tests on CPU
run: |
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run Hub tests for models, schedulers, and pipelines on a staging env
if: ${{ matrix.config.framework == 'hub_tests_pytorch' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run fast PyTorch Pipeline CPU tests
if: ${{ matrix.config.framework == 'pytorch_pipelines' }}
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run Hub tests for models, schedulers, and pipelines on a staging env
if: ${{ matrix.config.framework == 'hub_tests_pytorch' }}
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run fast PyTorch LoRA tests with PEFT
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr_tests_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
uv pip install -e ".[quality]"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Fetch Pipeline Matrix
id: fetch_pipeline_matrix
run: |
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Extract tests
id: extract_tests
run: |
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Extract tests
id: extract_tests
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run example tests on GPU
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/push_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uv pip install -e ".[quality]"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Fetch Pipeline Matrix
id: fetch_pipeline_matrix
run: |
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: PyTorch CUDA checkpoint tests on Ubuntu
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run PyTorch CUDA tests
env:
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run example tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
uv pip install -e ".[quality,training]"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run example tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run example tests on GPU
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_tests_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run fast PyTorch CPU tests
if: ${{ matrix.config.framework == 'pytorch' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push_tests_mps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Environment
shell: arch -arch arm64 bash {0}
run: |
${CONDA_RUN} python utils/print_env.py
${CONDA_RUN} diffusers-cli env
- name: Run fast PyTorch tests on M1 (MPS)
shell: arch -arch arm64 bash {0}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pypi_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
run: |
pip install -U transformers
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
python utils/print_env.py
python -c "from diffusers import __version__; print(__version__)"
python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('fusing/unet-ldm-dummy-update'); pipe()"
python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('hf-internal-testing/tiny-stable-diffusion-pipe', safety_checker=None); pipe('ah suh du')"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release_tests_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Fetch Pipeline Matrix
id: fetch_pipeline_matrix
run: |
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Slow PyTorch CUDA checkpoint tests on Ubuntu
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run PyTorch CUDA tests
env:
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run PyTorch CUDA tests
env:
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run torch compile tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
uv pip uninstall tokenizers && uv pip install "tokenizers<=0.23.0"
- name: Environment
run: |
python utils/print_env.py
diffusers-cli env
- name: Run example tests on GPU
env:
HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }}
Expand Down Expand Up @@ -334,7 +334,7 @@ jobs:

- name: Environment
run: |
python utils/print_env.py
diffusers-cli env

- name: Run example tests on GPU
env:
Expand Down
Loading