Skip to content

Commit 86336a1

Browse files
committed
up
1 parent 230cc08 commit 86336a1

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.github/workflows/pr_tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
- name: Install dependencies
116116
run: |
117117
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
118-
python -m uv pip install -e [quality,test]
118+
python -m uv pip install -e [quality]
119119
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
120120
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
121121
@@ -196,7 +196,7 @@ jobs:
196196
- name: Install dependencies
197197
run: |
198198
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
199-
python -m uv pip install -e [quality,test]
199+
python -m uv pip install -e [quality]
200200
201201
- name: Environment
202202
run: |
@@ -250,10 +250,9 @@ jobs:
250250
- name: Install dependencies
251251
run: |
252252
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
253-
python -m uv pip install -e [quality,test]
253+
python -m uv pip install -e [quality]
254254
# TODO (sayakpaul, DN6): revisit `--no-deps`
255255
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
256-
python -m uv pip install -U tokenizers
257256
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
258257
pip uninstall transformers -y && pip uninstall huggingface_hub -y && python -m uv pip install --prerelease allow -U transformers@git+https://github.com/huggingface/transformers.git
259258

docker/diffusers-pytorch-cpu/Dockerfile

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,14 @@ RUN uv pip install --no-cache-dir \
2222
torch \
2323
torchvision \
2424
torchaudio \
25-
invisible_watermark \
26-
--extra-index-url https://download.pytorch.org/whl/cpu && \
27-
uv pip install --no-cache-dir \
28-
accelerate \
29-
datasets \
30-
hf-doc-builder \
31-
huggingface-hub \
32-
Jinja2 \
33-
librosa \
34-
numpy==1.26.4 \
35-
scipy \
36-
tensorboard \
37-
transformers matplotlib \
38-
hf_transfer
25+
--extra-index-url https://download.pytorch.org/whl/cpu
26+
27+
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
28+
29+
# Extra dependencies
30+
RUN uv pip install --no-cache-dir \
31+
accelerate \
32+
numpy==1.26.4
33+
hf_transfer
3934

4035
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)