From f6f6dd21d60368b98f280f94e947dd735e7b83cf Mon Sep 17 00:00:00 2001 From: "Hugging Face Bot (RC Testing)" Date: Thu, 22 Oct 2026 13:23:24 +0000 Subject: [PATCH] Test hfh 2.3.0.rc1 --- .github/workflows/benchmark.yml | 4 +- .github/workflows/bot_pytest.yml | 8 +-- .github/workflows/build_documentation.yml | 2 +- .github/workflows/build_pr_documentation.yml | 4 +- .github/workflows/nightly_tests.yml | 74 ++++++++++---------- .github/workflows/pr_modular_tests.yml | 12 ++-- .github/workflows/pr_test_fetcher.yml | 6 +- .github/workflows/pr_tests.yml | 20 +++--- .github/workflows/pr_tests_gpu.yml | 22 +++--- .github/workflows/push_tests.yml | 24 +++---- .github/workflows/push_tests_fast.yml | 4 +- .github/workflows/push_tests_mps.yml | 8 +-- .github/workflows/release_tests_fast.yml | 36 +++++----- setup.py | 4 +- src/diffusers/dependency_versions_table.py | 2 +- 15 files changed, 115 insertions(+), 115 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 454cdff564..ab68204a63 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -43,8 +43,8 @@ jobs: run: | apt update apt install -y libpq-dev postgresql-client - uv pip install -e ".[quality]" - uv pip install -r benchmarks/requirements.txt + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow -r benchmarks/requirements.txt - name: Environment run: | diffusers-cli env diff --git a/.github/workflows/bot_pytest.yml b/.github/workflows/bot_pytest.yml index bd4a159335..f8a88fe85e 100644 --- a/.github/workflows/bot_pytest.yml +++ b/.github/workflows/bot_pytest.yml @@ -87,10 +87,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training,test]" - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training,test]" + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: diffusers-cli env diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index b5126e13d9..634eea9c55 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -25,7 +25,7 @@ jobs: python_version: "3.11" notebook_folder: diffusers_doc languages: en ko zh ja pt - pre_command: uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + pre_command: uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git secrets: token: ${{ secrets.HUGGINGFACE_PUSH }} hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }} diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index 4a58425df0..ccd26d0d48 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -36,7 +36,7 @@ jobs: - name: Install doc-builder run: | - uv pip install --system git+https://github.com/huggingface/doc-builder.git@main + uv pip install --prerelease=allow --system git+https://github.com/huggingface/doc-builder.git@main - name: Check documentation links run: | @@ -52,4 +52,4 @@ jobs: package: diffusers python_version: "3.11" languages: en ko zh ja pt - pre_command: uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + pre_command: uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git diff --git a/.github/workflows/nightly_tests.yml b/.github/workflows/nightly_tests.yml index 5a6cf75a95..178e9f9c2a 100644 --- a/.github/workflows/nightly_tests.yml +++ b/.github/workflows/nightly_tests.yml @@ -84,10 +84,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip install pytest-reportlog + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip install --prerelease=allow pytest-reportlog - name: Environment run: | diffusers-cli env @@ -139,11 +139,11 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip install pytest-reportlog + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip install --prerelease=allow pytest-reportlog - name: Environment run: diffusers-cli env @@ -209,8 +209,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -252,11 +252,11 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip install pytest-reportlog + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip install --prerelease=allow pytest-reportlog - name: Environment run: | diffusers-cli env @@ -305,10 +305,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.6.0\ntorchvision==0.21.0\ntorchaudio==2.6.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git - name: Environment run: | @@ -378,13 +378,13 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install -U ${{ matrix.config.backend }} + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow -U ${{ matrix.config.backend }} if [ "${{ join(matrix.config.additional_deps, ' ') }}" != "" ]; then - uv pip install ${{ join(matrix.config.additional_deps, ' ') }} + uv pip install --prerelease=allow ${{ join(matrix.config.additional_deps, ' ') }} fi - uv pip install pytest-reportlog - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow pytest-reportlog + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -436,10 +436,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install -U bitsandbytes - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip install pytest-reportlog + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow -U bitsandbytes + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow pytest-reportlog - name: Environment run: | diffusers-cli env @@ -552,10 +552,10 @@ jobs: # shell: arch -arch arm64 bash {0} # run: | # ${CONDA_RUN} pip install --upgrade pip uv -# ${CONDA_RUN} uv pip install -e ".[quality]" -# ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu -# ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate -# ${CONDA_RUN} uv pip install pytest-reportlog +# ${CONDA_RUN} uv pip install --prerelease=allow -e ".[quality]" +# ${CONDA_RUN} uv pip install --prerelease=allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu +# ${CONDA_RUN} uv pip install --prerelease=allow accelerate@git+https://github.com/huggingface/accelerate +# ${CONDA_RUN} uv pip install --prerelease=allow pytest-reportlog # - name: Environment # shell: arch -arch arm64 bash {0} # run: | @@ -608,10 +608,10 @@ jobs: # shell: arch -arch arm64 bash {0} # run: | # ${CONDA_RUN} pip install --upgrade pip uv -# ${CONDA_RUN} uv pip install -e ".[quality]" -# ${CONDA_RUN} uv pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu -# ${CONDA_RUN} uv pip install accelerate@git+https://github.com/huggingface/accelerate -# ${CONDA_RUN} uv pip install pytest-reportlog +# ${CONDA_RUN} uv pip install --prerelease=allow -e ".[quality]" +# ${CONDA_RUN} uv pip install --prerelease=allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu +# ${CONDA_RUN} uv pip install --prerelease=allow accelerate@git+https://github.com/huggingface/accelerate +# ${CONDA_RUN} uv pip install --prerelease=allow pytest-reportlog # - name: Environment # shell: arch -arch arm64 bash {0} # run: | diff --git a/.github/workflows/pr_modular_tests.yml b/.github/workflows/pr_modular_tests.yml index 117a6321e5..38008c94fe 100644 --- a/.github/workflows/pr_modular_tests.yml +++ b/.github/workflows/pr_modular_tests.yml @@ -103,8 +103,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Check auto docs run: make modular-autodoctrings - name: Check if failure @@ -138,11 +138,11 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" + uv pip install --prerelease=allow -e ".[quality]" # TODO (sayakpaul, DN6): revisit `--no-deps` - uv pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps + uv pip install --prerelease=allow -U peft@git+https://github.com/huggingface/peft.git --no-deps + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps - name: Environment run: | diff --git a/.github/workflows/pr_test_fetcher.yml b/.github/workflows/pr_test_fetcher.yml index b247aee41e..da2459e1ff 100644 --- a/.github/workflows/pr_test_fetcher.yml +++ b/.github/workflows/pr_test_fetcher.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - name: Install dependencies run: | - uv pip install -e ".[quality]" + uv pip install --prerelease=allow -e ".[quality]" - name: Environment run: | diffusers-cli env @@ -96,8 +96,8 @@ jobs: - name: Install dependencies run: | - uv pip install -e ".[quality]" - uv pip install accelerate + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow accelerate - name: Environment run: | diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 9fe6ac29cd..4bb2cfd587 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -133,9 +133,9 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" "pyarrow<26" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps + uv pip install --prerelease=allow -e ".[quality]" "pyarrow<26" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps - name: Environment run: | @@ -159,7 +159,7 @@ jobs: - name: Run example PyTorch CPU tests if: ${{ matrix.config.framework == 'pytorch_examples' }} run: | - uv pip install ".[training]" + uv pip install --prerelease=allow ".[training]" pytest -n 4 --max-worker-restart=0 --dist=loadfile \ --make-reports=tests_${{ matrix.config.report }} \ examples @@ -211,8 +211,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -267,11 +267,11 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" + uv pip install --prerelease=allow -e ".[quality]" # TODO (sayakpaul, DN6): revisit `--no-deps` - uv pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -U peft@git+https://github.com/huggingface/peft.git --no-deps + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index 1e9c2d0eff..1afcd8d07a 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -106,7 +106,7 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" + uv pip install --prerelease=allow -e ".[quality]" - name: Environment run: | diffusers-cli env @@ -150,9 +150,9 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -221,10 +221,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -288,8 +288,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git - uv pip install -e ".[quality,training]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training]" - name: Environment run: | @@ -299,7 +299,7 @@ jobs: env: HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }} run: | - uv pip install ".[training]" + uv pip install --prerelease=allow ".[training]" pytest -n 1 --max-worker-restart=0 --dist=loadfile --make-reports=examples_torch_cuda examples/ - name: Failure short reports diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index 875ce4e410..2d1aaeeb6f 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -45,7 +45,7 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" + uv pip install --prerelease=allow -e ".[quality]" - name: Environment run: | diffusers-cli env @@ -88,9 +88,9 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -141,10 +141,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -198,8 +198,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -242,7 +242,7 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training]" + uv pip install --prerelease=allow -e ".[quality,training]" - name: Environment run: | @@ -252,7 +252,7 @@ jobs: env: HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }} run: | - uv pip install ".[training]" + uv pip install --prerelease=allow ".[training]" pytest -n 1 --max-worker-restart=0 --dist=loadfile --make-reports=examples_torch_cuda examples/ - name: Failure short reports diff --git a/.github/workflows/push_tests_fast.yml b/.github/workflows/push_tests_fast.yml index 42666034a8..af3e7fc188 100644 --- a/.github/workflows/push_tests_fast.yml +++ b/.github/workflows/push_tests_fast.yml @@ -68,7 +68,7 @@ jobs: - name: Install dependencies run: | - uv pip install -e ".[quality]" "pyarrow<26" + uv pip install --prerelease=allow -e ".[quality]" "pyarrow<26" - name: Environment run: | @@ -84,7 +84,7 @@ jobs: - name: Run example PyTorch CPU tests if: ${{ matrix.config.framework == 'pytorch_examples' }} run: | - uv pip install ".[training]" + uv pip install --prerelease=allow ".[training]" pytest -n 4 --max-worker-restart=0 --dist=loadfile \ --make-reports=tests_${{ matrix.config.report }} \ examples diff --git a/.github/workflows/push_tests_mps.yml b/.github/workflows/push_tests_mps.yml index a0e9d7f13d..8fa48647bb 100644 --- a/.github/workflows/push_tests_mps.yml +++ b/.github/workflows/push_tests_mps.yml @@ -46,10 +46,10 @@ jobs: shell: arch -arch arm64 bash {0} run: | ${CONDA_RUN} python -m pip install --upgrade pip uv - ${CONDA_RUN} python -m uv pip install -e ".[quality]" - ${CONDA_RUN} python -m uv pip install torch torchvision torchaudio - ${CONDA_RUN} python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git - ${CONDA_RUN} python -m uv pip install transformers --upgrade + ${CONDA_RUN} python -m uv pip install --prerelease=allow -e ".[quality]" + ${CONDA_RUN} python -m uv pip install --prerelease=allow torch torchvision torchaudio + ${CONDA_RUN} python -m uv pip install --prerelease=allow accelerate@git+https://github.com/huggingface/accelerate.git + ${CONDA_RUN} python -m uv pip install --prerelease=allow transformers --upgrade - name: Environment shell: arch -arch arm64 bash {0} diff --git a/.github/workflows/release_tests_fast.yml b/.github/workflows/release_tests_fast.yml index 3fb34c5266..2b391bf9b0 100644 --- a/.github/workflows/release_tests_fast.yml +++ b/.github/workflows/release_tests_fast.yml @@ -44,8 +44,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -88,9 +88,9 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -141,10 +141,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -195,10 +195,10 @@ jobs: - name: Install dependencies run: | printf 'torch==2.6.0\ntorchvision==0.21.0\ntorchaudio==2.6.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality]" - uv pip install peft@git+https://github.com/huggingface/peft.git - uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality]" + uv pip install --prerelease=allow peft@git+https://github.com/huggingface/peft.git + uv pip uninstall accelerate && uv pip install --prerelease=allow -U accelerate@git+https://github.com/huggingface/accelerate.git + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -256,8 +256,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | diffusers-cli env @@ -302,8 +302,8 @@ jobs: - name: Install dependencies run: | printf 'torch==2.10.0\ntorchvision==0.25.0\ntorchaudio==2.10.0\n' > "$UV_OVERRIDE" - uv pip install -e ".[quality,training]" - uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install -U transformers@git+https://github.com/huggingface/transformers.git + uv pip install --prerelease=allow -e ".[quality,training]" + uv pip uninstall transformers huggingface_hub && UV_PRERELEASE=allow uv pip install --prerelease=allow -U transformers@git+https://github.com/huggingface/transformers.git - name: Environment run: | @@ -313,7 +313,7 @@ jobs: env: HF_TOKEN: ${{ secrets.DIFFUSERS_HF_HUB_READ_TOKEN }} run: | - uv pip install ".[training]" + uv pip install --prerelease=allow ".[training]" pytest -n 1 --max-worker-restart=0 --dist=loadfile --make-reports=examples_torch_cuda examples/ - name: Failure short reports diff --git a/setup.py b/setup.py index f490209e99..1184330e02 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ _deps = [ "filelock", "ftfy", "hf-doc-builder>=0.3.0", - "huggingface-hub>=1.32.0,<3.0", + "huggingface-hub==2.3.0.rc1", "requests-mock==1.10.0", "importlib_metadata", "invisible-watermark>=0.2.0", @@ -150,7 +150,7 @@ _deps = [ # this is a lookup table with items like: # -# tokenizers: "huggingface-hub==0.8.0" +# tokenizers: "huggingface-hub==2.3.0.rc1" # packaging: "packaging" # # some of the values are versioned whereas others aren't. diff --git a/src/diffusers/dependency_versions_table.py b/src/diffusers/dependency_versions_table.py index da572914dc..19d82a2876 100644 --- a/src/diffusers/dependency_versions_table.py +++ b/src/diffusers/dependency_versions_table.py @@ -8,7 +8,7 @@ deps = { "filelock": "filelock", "ftfy": "ftfy", "hf-doc-builder": "hf-doc-builder>=0.3.0", - "huggingface-hub": "huggingface-hub>=1.32.0,<3.0", + "huggingface-hub": "huggingface-hub==2.3.0.rc1", "requests-mock": "requests-mock==1.10.0", "importlib_metadata": "importlib_metadata", "invisible-watermark": "invisible-watermark>=0.2.0",