Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -26,6 +26,20 @@ RUN rm -f /opt/conda/.condarc && \
|
|
26 |
conda config --add channels conda-forge && \
|
27 |
conda config --set channel_priority strict
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
ENV CONDA_FORGE=1 \
|
30 |
CONDA_AUTO_UPDATE_CONDA=false
|
31 |
|
|
|
26 |
conda config --add channels conda-forge && \
|
27 |
conda config --set channel_priority strict
|
28 |
|
29 |
+
# Ensure build tools are present
|
30 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
31 |
+
ninja-build build-essential cmake git python3-dev && \
|
32 |
+
rm -rf /var/lib/apt/lists/*
|
33 |
+
|
34 |
+
# Install packaging helpers
|
35 |
+
RUN pip install --upgrade pip setuptools wheel packaging ninja
|
36 |
+
|
37 |
+
# Uninstall any prebuilt flash-attn
|
38 |
+
RUN pip uninstall -y flash-attn || true
|
39 |
+
|
40 |
+
# Build from source so it links correctly
|
41 |
+
RUN pip install flash-attn --no-build-isolation --no-cache-dir
|
42 |
+
|
43 |
ENV CONDA_FORGE=1 \
|
44 |
CONDA_AUTO_UPDATE_CONDA=false
|
45 |
|