diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 06ed3234ccfe..84ff531a5d11 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -45,7 +45,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 4819d74df176..069b3f7e72bd 100644 --- a/.github/workflows/nightly_tests.yml +++ b/.github/workflows/nightly_tests.yml @@ -81,7 +81,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 }} @@ -135,7 +135,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'}} @@ -201,7 +201,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 }} @@ -246,7 +246,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 }} @@ -297,7 +297,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -375,7 +375,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 }} @@ -425,7 +425,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 }} @@ -541,7 +541,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: @@ -597,7 +597,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 86b6ce9fcbf4..14ebe005eab1 100644 --- a/.github/workflows/pr_modular_tests.yml +++ b/.github/workflows/pr_modular_tests.yml @@ -127,7 +127,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 345985220836..17789ec8a9cd 100644 --- a/.github/workflows/pr_test_fetcher.yml +++ b/.github/workflows/pr_test_fetcher.yml @@ -39,7 +39,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: | @@ -97,7 +97,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run all selected tests on CPU run: | @@ -151,7 +151,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 99db00e567a4..e1bf90b6530e 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -40,7 +40,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: | @@ -83,7 +83,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 }} @@ -137,7 +137,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -189,7 +189,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 }} @@ -231,7 +231,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 }} @@ -272,7 +272,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 e88fb88d01f0..44677ab72c0d 100644 --- a/.github/workflows/push_tests_fast.yml +++ b/.github/workflows/push_tests_fast.yml @@ -67,7 +67,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 6a6825713e33..f3b59dcda5ef 100644 --- a/.github/workflows/push_tests_mps.yml +++ b/.github/workflows/push_tests_mps.yml @@ -53,7 +53,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 3e869514c553..c8fca5ea63c5 100644 --- a/.github/workflows/release_tests_fast.yml +++ b/.github/workflows/release_tests_fast.yml @@ -41,7 +41,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: | @@ -84,7 +84,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 }} @@ -138,7 +138,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -190,7 +190,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run PyTorch CUDA tests env: @@ -248,7 +248,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 }} @@ -292,7 +292,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 }} @@ -337,7 +337,7 @@ jobs: - name: Environment run: | - python utils/print_env.py + diffusers-cli env - name: Run example tests on GPU env: