Spaces:
Sleeping
Sleeping
Install CUDA PyTorch in slim image for A100 GPU
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -10,12 +10,16 @@ ENV XDG_CACHE_HOME=/tmp/cache
|
|
| 10 |
ENV HOME=/tmp/home
|
| 11 |
ENV USER=user
|
| 12 |
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
|
|
| 13 |
|
| 14 |
RUN mkdir -p /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home && \
|
| 15 |
chmod -R 777 /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home
|
| 16 |
|
| 17 |
RUN pip install --no-cache-dir \
|
| 18 |
-
torch
|
|
|
|
|
|
|
| 19 |
transformers \
|
| 20 |
trl \
|
| 21 |
peft \
|
|
|
|
| 10 |
ENV HOME=/tmp/home
|
| 11 |
ENV USER=user
|
| 12 |
ENV PYTHONUNBUFFERED=1
|
| 13 |
+
ENV NVIDIA_VISIBLE_DEVICES=all
|
| 14 |
+
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
| 15 |
|
| 16 |
RUN mkdir -p /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home && \
|
| 17 |
chmod -R 777 /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home
|
| 18 |
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
+
torch --index-url https://download.pytorch.org/whl/cu121
|
| 21 |
+
|
| 22 |
+
RUN pip install --no-cache-dir \
|
| 23 |
transformers \
|
| 24 |
trl \
|
| 25 |
peft \
|