fix docker file

Former-commit-id: 0f421055da37d7f9b3313954fd008c433b3100f5
This commit is contained in:
hiyouga 2024-06-27 20:29:16 +08:00
parent 7c488cea57
commit 5e60c29971

View File

@ -26,8 +26,8 @@ RUN pip config set global.index-url "$PIP_INDEX" && \
RUN pip uninstall -y transformer-engine flash-attn && \
if [ "$INSTALL_FLASHATTN" == "true" ]; then \
pip uninstall -y ninja && pip install ninja && \
pip install --no-cache-dir flash-attn --no-build-isolation \
fi;
pip install --no-cache-dir flash-attn --no-build-isolation; \
fi
# Copy the rest of the application into the image
COPY . /app