brandonmusic commited on
Commit
f23f667
·
verified ·
1 Parent(s): da5312d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -36,10 +36,13 @@ WORKDIR ${HOME}/app
36
  # Copy your app code
37
  COPY --chown=user . ${HOME}/app
38
 
 
 
 
39
  # Install torch with specific version for compatibility
40
  RUN python3 -m pip install --user --no-cache-dir torch==2.4.1+cu121 torchvision==0.19.1+cu121 torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
41
 
42
- # Install requirements (includes packaging and flash-attn)
43
  RUN python3 -m pip install --user --no-cache-dir -r requirements.txt
44
 
45
  # Verify flash-attn installation
 
36
  # Copy your app code
37
  COPY --chown=user . ${HOME}/app
38
 
39
+ # Install packaging first to ensure it's available for flash-attn
40
+ RUN python3 -m pip install --user --no-cache-dir packaging==24.1
41
+
42
  # Install torch with specific version for compatibility
43
  RUN python3 -m pip install --user --no-cache-dir torch==2.4.1+cu121 torchvision==0.19.1+cu121 torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
44
 
45
+ # Install requirements (includes flash-attn and other dependencies)
46
  RUN python3 -m pip install --user --no-cache-dir -r requirements.txt
47
 
48
  # Verify flash-attn installation