From 5cd055166bbe8e3bc755142151ebb7780149e2d9 Mon Sep 17 00:00:00 2001 From: DN6 Date: Thu, 30 Apr 2026 16:53:40 +0530 Subject: [PATCH] update --- .github/workflows/benchmark.yml | 2 +- .github/workflows/nightly_tests.yml | 18 +++++++++--------- .github/workflows/pr_modular_tests.yml | 2 +- .github/workflows/pr_test_fetcher.yml | 6 +++--- .github/workflows/pr_tests.yml | 6 +++--- .github/workflows/pr_tests_gpu.yml | 8 ++++---- .github/workflows/push_tests.yml | 12 ++++++------ .github/workflows/push_tests_fast.yml | 2 +- .github/workflows/push_tests_mps.yml | 2 +- .github/workflows/pypi_publish.yaml | 2 +- .github/workflows/release_tests_fast.yml | 14 +++++++------- 11 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5a2161240ad6..3f5aacd1f029 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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 }} diff --git a/.github/workflows/nightly_tests.yml b/.github/workflows/nightly_tests.yml index a3f29dbd7eda..78a16a5fa5a3 100644 --- a/.github/workflows/nightly_tests.yml +++ b/.github/workflows/nightly_tests.yml @@ -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 }} @@ -132,7 +132,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1 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'}} @@ -198,7 +198,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1 - 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 }} @@ -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 }} @@ -294,7 +294,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -372,7 +372,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install transformers==4.57.1 - 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 }} @@ -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 }} @@ -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: @@ -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: diff --git a/.github/workflows/pr_modular_tests.yml b/.github/workflows/pr_modular_tests.yml index 89b502d364ec..9c6f74fec3d9 100644 --- a/.github/workflows/pr_modular_tests.yml +++ b/.github/workflows/pr_modular_tests.yml @@ -124,7 +124,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run fast PyTorch Pipeline CPU tests run: | diff --git a/.github/workflows/pr_test_fetcher.yml b/.github/workflows/pr_test_fetcher.yml index a02a40709fcc..038d1a75bec2 100644 --- a/.github/workflows/pr_test_fetcher.yml +++ b/.github/workflows/pr_test_fetcher.yml @@ -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: | @@ -94,7 +94,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run all selected tests on CPU run: | @@ -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' }} diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 02dee7d541b7..d92a936507e8 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -122,7 +122,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' }} @@ -196,7 +196,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' }} @@ -250,7 +250,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run fast PyTorch LoRA tests with PEFT run: | diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index 9c63ad755f3b..926a80f721bc 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -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: | @@ -138,7 +138,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Extract tests id: extract_tests run: | @@ -208,7 +208,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Extract tests id: extract_tests @@ -270,7 +270,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run example tests on GPU env: diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index 61bb9f0ef679..1339191b1dd6 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -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: | @@ -79,7 +79,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - 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 }} @@ -132,7 +132,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -183,7 +183,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - 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 }} @@ -225,7 +225,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 }} @@ -266,7 +266,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run example tests on GPU env: diff --git a/.github/workflows/push_tests_fast.yml b/.github/workflows/push_tests_fast.yml index fe6f6a265e89..f2a43037871b 100644 --- a/.github/workflows/push_tests_fast.yml +++ b/.github/workflows/push_tests_fast.yml @@ -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' }} diff --git a/.github/workflows/push_tests_mps.yml b/.github/workflows/push_tests_mps.yml index 7f8ce9a4b99d..c6a9076eb401 100644 --- a/.github/workflows/push_tests_mps.yml +++ b/.github/workflows/push_tests_mps.yml @@ -49,7 +49,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} diff --git a/.github/workflows/pypi_publish.yaml b/.github/workflows/pypi_publish.yaml index 6439c5f7f19a..f778e0f26a9c 100644 --- a/.github/workflows/pypi_publish.yaml +++ b/.github/workflows/pypi_publish.yaml @@ -43,7 +43,7 @@ jobs: - name: Test installing diffusers and importing run: | pip install -U transformers - python utils/print_env.py + diffusers-cli env 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')" diff --git a/.github/workflows/release_tests_fast.yml b/.github/workflows/release_tests_fast.yml index 7d097d165928..a283d2cc232a 100644 --- a/.github/workflows/release_tests_fast.yml +++ b/.github/workflows/release_tests_fast.yml @@ -37,7 +37,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Fetch Pipeline Matrix id: fetch_pipeline_matrix run: | @@ -79,7 +79,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - 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 }} @@ -132,7 +132,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -183,7 +183,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -240,7 +240,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - 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 }} @@ -283,7 +283,7 @@ jobs: uv pip uninstall transformers huggingface_hub && uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git - 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 }} @@ -327,7 +327,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run example tests on GPU env: