Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM pytorch/pytorch:2.0.1-
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV MKL_THREADING_LAYER=GNU
|
|
@@ -6,17 +6,17 @@ ENV MKL_THREADING_LAYER=GNU
|
|
| 6 |
# Install dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev pkg-config \
|
| 9 |
-
build-essential cmake g++
|
| 10 |
-
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Add NVIDIA package repositories
|
| 14 |
-
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/
|
| 15 |
-
dpkg -i cuda-keyring_1.
|
| 16 |
apt-get update
|
| 17 |
|
| 18 |
-
# Install CUDA Toolkit and cuDNN
|
| 19 |
-
RUN apt-get install -y cuda-toolkit-
|
| 20 |
|
| 21 |
# Set CUDA paths for build environment
|
| 22 |
ENV PATH=/usr/local/cuda/bin:$PATH \
|
|
@@ -24,7 +24,7 @@ ENV PATH=/usr/local/cuda/bin:$PATH \
|
|
| 24 |
CUDA_HOME=/usr/local/cuda \
|
| 25 |
LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
|
| 26 |
CMAKE_PREFIX_PATH="/usr/local/cuda:/usr/lib/x86_64-linux-gnu/" \
|
| 27 |
-
TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6"
|
| 28 |
|
| 29 |
# Upgrade pip & install dependencies
|
| 30 |
RUN pip install --upgrade pip setuptools wheel
|
|
|
|
| 1 |
+
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV MKL_THREADING_LAYER=GNU
|
|
|
|
| 6 |
# Install dependencies
|
| 7 |
RUN apt-get update && apt-get install -y \
|
| 8 |
git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev pkg-config \
|
| 9 |
+
build-essential cmake g++ software-properties-common \
|
| 10 |
+
gnupg2 libopenblas-dev libx11-dev && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Add NVIDIA package repositories
|
| 14 |
+
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb && \
|
| 15 |
+
dpkg -i cuda-keyring_1.1-1_all.deb && \
|
| 16 |
apt-get update
|
| 17 |
|
| 18 |
+
# Install CUDA Toolkit and cuDNN (with version matching the base image)
|
| 19 |
+
RUN apt-get install -y cuda-toolkit-12-1 libcudnn8 libcudnn8-dev
|
| 20 |
|
| 21 |
# Set CUDA paths for build environment
|
| 22 |
ENV PATH=/usr/local/cuda/bin:$PATH \
|
|
|
|
| 24 |
CUDA_HOME=/usr/local/cuda \
|
| 25 |
LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
|
| 26 |
CMAKE_PREFIX_PATH="/usr/local/cuda:/usr/lib/x86_64-linux-gnu/" \
|
| 27 |
+
TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;8.9;9.0"
|
| 28 |
|
| 29 |
# Upgrade pip & install dependencies
|
| 30 |
RUN pip install --upgrade pip setuptools wheel
|