Skip to content

Commit 2c669e8

Browse files
authored
change to CUDA 12.9. (#13045)
* change to CUDA 12.9. * up * change runtime base * FROM
1 parent 2ac39ba commit 2c669e8

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

docker/diffusers-pytorch-cuda/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
1+
FROM nvidia/cuda:12.9.0-runtime-ubuntu20.04
22
LABEL maintainer="Hugging Face"
33
LABEL repository="diffusers"
44

5-
ARG PYTHON_VERSION=3.11
5+
ARG PYTHON_VERSION=3.10
66
ENV DEBIAN_FRONTEND=noninteractive
77

88
RUN apt-get -y update \
@@ -36,8 +36,12 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3636
RUN uv pip install --no-cache-dir \
3737
torch \
3838
torchvision \
39-
torchaudio \
40-
--index-url https://download.pytorch.org/whl/cu121
39+
torchaudio
40+
41+
# Install compatible versions of numba/llvmlite for Python 3.10+
42+
RUN uv pip install --no-cache-dir \
43+
"llvmlite>=0.40.0" \
44+
"numba>=0.57.0"
4145

4246
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4347

docker/diffusers-pytorch-xformers-cuda/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
1+
FROM nvidia/cuda:12.9.0-runtime-ubuntu20.04
22
LABEL maintainer="Hugging Face"
33
LABEL repository="diffusers"
44

5-
ARG PYTHON_VERSION=3.11
5+
ARG PYTHON_VERSION=3.10
66
ENV DEBIAN_FRONTEND=noninteractive
77

88
RUN apt-get -y update \
@@ -36,8 +36,12 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3636
RUN uv pip install --no-cache-dir \
3737
torch \
3838
torchvision \
39-
torchaudio \
40-
--index-url https://download.pytorch.org/whl/cu121
39+
torchaudio
40+
41+
# Install compatible versions of numba/llvmlite for Python 3.10+
42+
RUN uv pip install --no-cache-dir \
43+
"llvmlite>=0.40.0" \
44+
"numba>=0.57.0"
4145

4246
RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4347

0 commit comments

Comments
 (0)