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 4bf5f886330e..393c891bc780 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 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'}} @@ -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 }} @@ -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 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 }} @@ -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 bbdb9dd327b1..48289ea39186 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 1cd73566e8c3..aa2df61af148 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -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' }} @@ -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' }} @@ -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: | diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index 1791add4348d..ac8c12ac9647 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: | @@ -139,7 +139,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Extract tests id: extract_tests run: | @@ -210,7 +210,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Extract tests id: extract_tests @@ -273,7 +273,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 e8bf71f3a212..62d6236245ed 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: | @@ -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 }} @@ -134,7 +134,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -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 }} @@ -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 }} @@ -269,7 +269,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 e9f06840d3e2..0fec20e320ca 100644 --- a/.github/workflows/push_tests_mps.yml +++ b/.github/workflows/push_tests_mps.yml @@ -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} diff --git a/.github/workflows/pypi_publish.yaml b/.github/workflows/pypi_publish.yaml index 77f0c50d1a27..490268a5f2d2 100644 --- a/.github/workflows/pypi_publish.yaml +++ b/.github/workflows/pypi_publish.yaml @@ -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')" diff --git a/.github/workflows/release_tests_fast.yml b/.github/workflows/release_tests_fast.yml index 77c31b6f8b86..0cb74d6293ef 100644 --- a/.github/workflows/release_tests_fast.yml +++ b/.github/workflows/release_tests_fast.yml @@ -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: | @@ -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 }} @@ -135,7 +135,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -187,7 +187,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -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 }} @@ -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 }} @@ -334,7 +334,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run example tests on GPU env: