From ddc0b650e11b1241b145e045431e5667bec19ad9 Mon Sep 17 00:00:00 2001 From: Shashank Rajput Date: Fri, 12 Jan 2024 10:15:18 -0800 Subject: [PATCH] .. --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ea72ebc7b4..e556227a0a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -294,7 +294,10 @@ RUN if [[ -n "$CUDA_VERSION" ]] && [[ -z "${PYTORCH_NIGHTLY_URL}" ]]; then \ RUN if [ -n "$CUDA_VERSION" ] ; then \ pip${PYTHON_VERSION} install --upgrade --no-cache-dir ninja==1.11.1 && \ pip${PYTHON_VERSION} install --upgrade --no-cache-dir --force-reinstall packaging==22.0 && \ - pip${PYTHON_VERSION} install --no-cache-dir flash-attn==1.0.9; \ + git clone --branch v2.4.2 https://github.com/Dao-AILab/flash-attention.git && \ + cd flash-attention && \ + MAX_JOBS=1 python${PYTHON_VERSION} setup.py install && \ + cd ..; \ fi ###############