roll-ai commited on
Commit
abb7d8e
·
verified ·
1 Parent(s): 8f2e07d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 (CUDA 12.1) first, then other deps (excluding deepspeed)
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