Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -91,6 +91,11 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
| 91 |
ENV PATH="$HOME/.cargo/bin:${PATH}"
|
| 92 |
RUN chmod -R 777 $HOME/.cargo/
|
| 93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
# Python packages
|
| 95 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 96 |
pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 91 |
ENV PATH="$HOME/.cargo/bin:${PATH}"
|
| 92 |
RUN chmod -R 777 $HOME/.cargo/
|
| 93 |
|
| 94 |
+
# Install ninja, which might help speed up flash attn build time
|
| 95 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 96 |
+
ninja-build \
|
| 97 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 98 |
+
|
| 99 |
# Python packages
|
| 100 |
RUN --mount=target=requirements.txt,source=requirements.txt \
|
| 101 |
pip install --no-cache-dir --upgrade -r requirements.txt
|