Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,9 @@ RUN pip install --no-cache-dir \
|
|
| 12 |
datasets \
|
| 13 |
tenacity \
|
| 14 |
safetensors
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Configure cache
|
| 18 |
ENV TRANSFORMERS_CACHE="/cache/models"
|
|
|
|
| 12 |
datasets \
|
| 13 |
tenacity \
|
| 14 |
safetensors
|
| 15 |
+
|
| 16 |
+
# Avoids installing GPU-specific builds that won’t work in CPU-only environments.
|
| 17 |
+
RUN pip install --no-cache-dir torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
| 18 |
|
| 19 |
# Configure cache
|
| 20 |
ENV TRANSFORMERS_CACHE="/cache/models"
|