Skip to content

Commit 24281f8

Browse files
a-r-r-o-wsayakpaul
andauthored
make deps_table_update to fix CI tests (#9720)
* update * dummy change to trigger CI; will revert * no deps peft * np deps * todo --------- Co-authored-by: Sayak Paul <[email protected]>
1 parent 2a1d2f6 commit 24281f8

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/pr_test_peft_backend.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ jobs:
9292
run: |
9393
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
9494
python -m uv pip install -e [quality,test]
95+
# TODO (sayakpaul, DN6): revisit `--no-deps`
9596
if [ "${{ matrix.lib-versions }}" == "main" ]; then
96-
python -m pip install -U peft@git+https://github.com/huggingface/peft.git
97-
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git
98-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git
97+
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
98+
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
99+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
99100
else
100-
python -m uv pip install -U peft transformers accelerate
101+
python -m uv pip install -U peft --no-deps
102+
python -m uv pip install -U transformers accelerate --no-deps
101103
fi
102104
103105
- name: Environment

src/diffusers/dependency_versions_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"regex": "regex!=2019.12.17",
3939
"requests": "requests",
4040
"tensorboard": "tensorboard",
41-
"torch": "torch>=1.4",
41+
"torch": "torch>=1.4,<2.5.0",
4242
"torchvision": "torchvision",
4343
"transformers": "transformers>=4.41.2",
4444
"urllib3": "urllib3<=2.0.0",

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,6 @@ def __call__(
10601060
do_denormalize = [True] * image.shape[0]
10611061
else:
10621062
do_denormalize = [not has_nsfw for has_nsfw in has_nsfw_concept]
1063-
10641063
image = self.image_processor.postprocess(image, output_type=output_type, do_denormalize=do_denormalize)
10651064

10661065
# Offload all models

0 commit comments

Comments
 (0)