Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
04bafcbb
Unverified
Commit
04bafcbb
authored
Feb 27, 2024
by
Sayak Paul
Committed by
GitHub
Feb 27, 2024
Browse files
move to `uv` in the Dockerfiles. (#7094)
move to uv in the Dockerfiles.
parent
7081a256
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
22 deletions
+22
-22
docker/diffusers-flax-cpu/Dockerfile
docker/diffusers-flax-cpu/Dockerfile
+3
-3
docker/diffusers-flax-tpu/Dockerfile
docker/diffusers-flax-tpu/Dockerfile
+4
-4
docker/diffusers-onnxruntime-cpu/Dockerfile
docker/diffusers-onnxruntime-cpu/Dockerfile
+3
-3
docker/diffusers-onnxruntime-cuda/Dockerfile
docker/diffusers-onnxruntime-cuda/Dockerfile
+3
-3
docker/diffusers-pytorch-compile-cuda/Dockerfile
docker/diffusers-pytorch-compile-cuda/Dockerfile
+2
-2
docker/diffusers-pytorch-cpu/Dockerfile
docker/diffusers-pytorch-cpu/Dockerfile
+3
-3
docker/diffusers-pytorch-cuda/Dockerfile
docker/diffusers-pytorch-cuda/Dockerfile
+2
-2
docker/diffusers-pytorch-xformers-cuda/Dockerfile
docker/diffusers-pytorch-xformers-cuda/Dockerfile
+2
-2
No files found.
docker/diffusers-flax-cpu/Dockerfile
View file @
04bafcbb
...
@@ -23,13 +23,13 @@ ENV PATH="/opt/venv/bin:$PATH"
...
@@ -23,13 +23,13 @@ ENV PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# follow the instructions here: https://cloud.google.com/tpu/docs/run-in-container#train_a_jax_model_in_a_docker_container
# follow the instructions here: https://cloud.google.com/tpu/docs/run-in-container#train_a_jax_model_in_a_docker_container
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--upgrade
--no-cache-dir
\
python3
-m
uv
pip
install
--upgrade
--no-cache-dir
\
clu
\
clu
\
"jax[cpu]>=0.2.16,!=0.3.2"
\
"jax[cpu]>=0.2.16,!=0.3.2"
\
"flax>=0.4.1"
\
"flax>=0.4.1"
\
"jaxlib>=0.1.65"
&&
\
"jaxlib>=0.1.65"
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-flax-tpu/Dockerfile
View file @
04bafcbb
...
@@ -23,15 +23,15 @@ ENV PATH="/opt/venv/bin:$PATH"
...
@@ -23,15 +23,15 @@ ENV PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# follow the instructions here: https://cloud.google.com/tpu/docs/run-in-container#train_a_jax_model_in_a_docker_container
# follow the instructions here: https://cloud.google.com/tpu/docs/run-in-container#train_a_jax_model_in_a_docker_container
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
"jax[tpu]>=0.2.16,!=0.3.2"
\
"jax[tpu]>=0.2.16,!=0.3.2"
\
-f
https://storage.googleapis.com/jax-releases/libtpu_releases.html
&&
\
-f
https://storage.googleapis.com/jax-releases/libtpu_releases.html
&&
\
python3
-m
pip
install
--upgrade
--no-cache-dir
\
python3
-m
uv
pip
install
--upgrade
--no-cache-dir
\
clu
\
clu
\
"flax>=0.4.1"
\
"flax>=0.4.1"
\
"jaxlib>=0.1.65"
&&
\
"jaxlib>=0.1.65"
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-onnxruntime-cpu/Dockerfile
View file @
04bafcbb
...
@@ -22,14 +22,14 @@ RUN python3 -m venv /opt/venv
...
@@ -22,14 +22,14 @@ RUN python3 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
torch
==
2.1.2
\
torch
==
2.1.2
\
torchvision
==
0.16.2
\
torchvision
==
0.16.2
\
torchaudio
==
2.1.2
\
torchaudio
==
2.1.2
\
onnxruntime
\
onnxruntime
\
--extra-index-url
https://download.pytorch.org/whl/cpu
&&
\
--extra-index-url
https://download.pytorch.org/whl/cpu
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-onnxruntime-cuda/Dockerfile
View file @
04bafcbb
...
@@ -22,14 +22,14 @@ RUN python3 -m venv /opt/venv
...
@@ -22,14 +22,14 @@ RUN python3 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
torch
==
2.1.2
\
torch
==
2.1.2
\
torchvision
==
0.16.2
\
torchvision
==
0.16.2
\
torchaudio
==
2.1.2
\
torchaudio
==
2.1.2
\
"onnxruntime-gpu>=1.13.1"
\
"onnxruntime-gpu>=1.13.1"
\
--extra-index-url
https://download.pytorch.org/whl/cu117
&&
\
--extra-index-url
https://download.pytorch.org/whl/cu117
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-pytorch-compile-cuda/Dockerfile
View file @
04bafcbb
...
@@ -24,8 +24,8 @@ RUN python3.9 -m venv /opt/venv
...
@@ -24,8 +24,8 @@ RUN python3.9 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3.9
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3.9
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3.9
-m
pip
install
--no-cache-dir
\
python3.9
-m
uv
pip
install
--no-cache-dir
\
torch
\
torch
\
torchvision
\
torchvision
\
torchaudio
\
torchaudio
\
...
...
docker/diffusers-pytorch-cpu/Dockerfile
View file @
04bafcbb
...
@@ -23,14 +23,14 @@ RUN python3 -m venv /opt/venv
...
@@ -23,14 +23,14 @@ RUN python3 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
torch
\
torch
\
torchvision
\
torchvision
\
torchaudio
\
torchaudio
\
invisible_watermark
\
invisible_watermark
\
--extra-index-url
https://download.pytorch.org/whl/cpu
&&
\
--extra-index-url
https://download.pytorch.org/whl/cpu
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
docker/diffusers-pytorch-cuda/Dockerfile
View file @
04bafcbb
...
@@ -23,8 +23,8 @@ RUN python3 -m venv /opt/venv
...
@@ -23,8 +23,8 @@ RUN python3 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
torch
\
torch
\
torchvision
\
torchvision
\
torchaudio
\
torchaudio
\
...
...
docker/diffusers-pytorch-xformers-cuda/Dockerfile
View file @
04bafcbb
...
@@ -23,13 +23,13 @@ RUN python3 -m venv /opt/venv
...
@@ -23,13 +23,13 @@ RUN python3 -m venv /opt/venv
ENV
PATH="/opt/venv/bin:$PATH"
ENV
PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
&&
\
RUN
python3
-m
pip
install
--no-cache-dir
--upgrade
pip
uv
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
pip
install
--no-cache-dir
\
torch
\
torch
\
torchvision
\
torchvision
\
torchaudio
\
torchaudio
\
invisible_watermark
&&
\
invisible_watermark
&&
\
python3
-m
pip
install
--no-cache-dir
\
python3
-m
uv
pip
install
--no-cache-dir
\
accelerate
\
accelerate
\
datasets
\
datasets
\
hf-doc-builder
\
hf-doc-builder
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment