Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM nvidia/cuda:11.
|
| 3 |
|
| 4 |
# Set up the environment
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
@@ -19,9 +19,8 @@ ENV HF_HOME=/app/cache
|
|
| 19 |
# Create the cache directory and give it open permissions
|
| 20 |
RUN mkdir -p /app/cache && chmod 777 /app/cache
|
| 21 |
|
| 22 |
-
#
|
| 23 |
-
|
| 24 |
-
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
| 25 |
|
| 26 |
# Copy and install the rest of the Python dependencies
|
| 27 |
COPY requirements.txt .
|
|
|
|
| 1 |
+
# STEP 1: Change this line to a CUDA 11.7.1 base image
|
| 2 |
+
FROM nvidia/cuda:11.7.1-devel-ubuntu22.04
|
| 3 |
|
| 4 |
# Set up the environment
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
| 19 |
# Create the cache directory and give it open permissions
|
| 20 |
RUN mkdir -p /app/cache && chmod 777 /app/cache
|
| 21 |
|
| 22 |
+
# STEP 2: Change this line to install PyTorch for CUDA 11.7
|
| 23 |
+
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
|
|
|
|
| 24 |
|
| 25 |
# Copy and install the rest of the Python dependencies
|
| 26 |
COPY requirements.txt .
|