fix docker file

Former-commit-id: 688f02decb1185deb74b26444f7643cab7d355c1
This commit is contained in:
hiyouga 2024-06-27 20:29:16 +08:00
parent bf99223a80
commit 95bf795de4

View File

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