ShalomKing commited on
Commit
9e715f7
·
verified ·
1 Parent(s): 4ab7b53

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -27,11 +27,11 @@ RUN update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON
27
  # Upgrade pip
28
  RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel
29
 
30
- # Install PyTorch FIRST (required for flash-attn compilation)
31
  RUN pip install --no-cache-dir \
32
- torch==2.4.1 \
33
- torchvision==0.19.1 \
34
- torchaudio==2.4.1 \
35
  --index-url https://download.pytorch.org/whl/cu121
36
 
37
  # Try to install flash-attn, but don't fail if it doesn't work
 
27
  # Upgrade pip
28
  RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel
29
 
30
+ # Install PyTorch 2.5.1+ FIRST (required for xfuser's torch.distributed.tensor.experimental)
31
  RUN pip install --no-cache-dir \
32
+ torch==2.5.1 \
33
+ torchvision==0.20.1 \
34
+ torchaudio==2.5.1 \
35
  --index-url https://download.pytorch.org/whl/cu121
36
 
37
  # Try to install flash-attn, but don't fail if it doesn't work