Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -21,10 +21,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
21 |
WORKDIR /app
|
22 |
COPY requirements.txt /app/requirements.txt
|
23 |
|
24 |
-
# Torch
|
25 |
RUN python3 -m pip install --upgrade pip \
|
26 |
&& python3 -m pip install --extra-index-url https://download.pytorch.org/whl/cu121 torch torchvision torchaudio \
|
27 |
-
&& awk '!/^ *#/ && !/deepspeed/ {print $0}' requirements.txt > requirements.infer.txt \
|
28 |
&& python3 -m pip install -r requirements.infer.txt \
|
29 |
&& python3 -m pip install huggingface_hub imageio-ffmpeg
|
30 |
|
|
|
21 |
WORKDIR /app
|
22 |
COPY requirements.txt /app/requirements.txt
|
23 |
|
24 |
+
# Torch first, then everything except deepspeed / flash-attn
|
25 |
RUN python3 -m pip install --upgrade pip \
|
26 |
&& python3 -m pip install --extra-index-url https://download.pytorch.org/whl/cu121 torch torchvision torchaudio \
|
27 |
+
&& awk '!/^ *#/ && !/deepspeed/ && !/flash-attn/ && !/flash_attn/ {print $0}' requirements.txt > requirements.infer.txt \
|
28 |
&& python3 -m pip install -r requirements.infer.txt \
|
29 |
&& python3 -m pip install huggingface_hub imageio-ffmpeg
|
30 |
|