Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -3,7 +3,7 @@ FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
|
|
3 |
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
|
6 |
-
#
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
tzdata \
|
9 |
software-properties-common \
|
@@ -19,10 +19,13 @@ RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && \
|
|
19 |
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
|
20 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
|
21 |
|
22 |
-
# Install Python packages (torch,
|
23 |
RUN python -m pip install --no-cache-dir \
|
24 |
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 && \
|
25 |
python -m pip install --no-cache-dir \
|
|
|
|
|
|
|
26 |
transformers \
|
27 |
accelerate \
|
28 |
trl \
|
|
|
3 |
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
|
6 |
+
# Install basic utilities
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
tzdata \
|
9 |
software-properties-common \
|
|
|
19 |
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
|
20 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
|
21 |
|
22 |
+
# Install Python packages (torch, xFormers, Transformers, etc.)
|
23 |
RUN python -m pip install --no-cache-dir \
|
24 |
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 && \
|
25 |
python -m pip install --no-cache-dir \
|
26 |
+
xformers==0.0.27 \
|
27 |
+
--extra-index-url https://download.pytorch.org/whl/nightly/cu118/torch_nightly.html && \
|
28 |
+
python -m pip install --no-cache-dir \
|
29 |
transformers \
|
30 |
accelerate \
|
31 |
trl \
|