Spaces:
Running
Running
Upload Dockerfile with huggingface_hub
Browse files- 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
|
| 31 |
RUN pip install --no-cache-dir \
|
| 32 |
-
torch==2.
|
| 33 |
-
torchvision==0.
|
| 34 |
-
torchaudio==2.
|
| 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
|