Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -35,7 +35,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
35 |
RUN pip install --upgrade pip setuptools wheel packaging ninja
|
36 |
|
37 |
# Uninstall any prebuilt flash-attn
|
38 |
-
|
39 |
ENV CONDA_FORGE=1 \
|
40 |
CONDA_AUTO_UPDATE_CONDA=false
|
41 |
|
@@ -49,13 +48,13 @@ COPY requirements.txt .
|
|
49 |
# Pre-install torch so flash-attn doesn't fail
|
50 |
RUN pip install --upgrade pip && \
|
51 |
pip install torch==2.6 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
|
52 |
-
|
53 |
# Install the rest of the dependencies
|
54 |
RUN pip install --no-cache-dir -r requirements.txt
|
55 |
RUN pip uninstall -y flash-attn || true
|
56 |
|
57 |
# Build from source so it links correctly
|
58 |
-
RUN pip install flash-attn<2.8 --no-build-isolation --no-cache-dir
|
59 |
|
60 |
# Copy project code
|
61 |
COPY . .
|
|
|
35 |
RUN pip install --upgrade pip setuptools wheel packaging ninja
|
36 |
|
37 |
# Uninstall any prebuilt flash-attn
|
|
|
38 |
ENV CONDA_FORGE=1 \
|
39 |
CONDA_AUTO_UPDATE_CONDA=false
|
40 |
|
|
|
48 |
# Pre-install torch so flash-attn doesn't fail
|
49 |
RUN pip install --upgrade pip && \
|
50 |
pip install torch==2.6 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121
|
51 |
+
|
52 |
# Install the rest of the dependencies
|
53 |
RUN pip install --no-cache-dir -r requirements.txt
|
54 |
RUN pip uninstall -y flash-attn || true
|
55 |
|
56 |
# Build from source so it links correctly
|
57 |
+
RUN pip install "flash-attn<2.8" --no-build-isolation --no-cache-dir
|
58 |
|
59 |
# Copy project code
|
60 |
COPY . .
|