From fda29856cd2f30682ecf661eef215e434531249e Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Tue, 4 Jun 2024 21:29:29 +0000 Subject: [PATCH] Fix. --- server/Makefile-flash-att | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/Makefile-flash-att b/server/Makefile-flash-att index 0f695d1f..29e75bc4 100644 --- a/server/Makefile-flash-att +++ b/server/Makefile-flash-att @@ -3,10 +3,10 @@ flash_att_commit := 3a9bfd076f98746c73362328958dbc68d145fbec build-flash-attention: if [ ! -d 'flash-attention' ]; then \ pip install -U packaging ninja --no-cache-dir && \ - git clone https://github.com/HazyResearch/flash-attention.git && \ - cd flash-attention && git fetch && git checkout $(flash_att_commit) && \ - MAX_JOBS=8 python setup.py build && cd csrc/layer_norm && python setup.py build && cd ../rotary && python setup.py build; \ + git clone https://github.com/HazyResearch/flash-attention.git; \ fi + cd flash-attention && git fetch && git checkout $(flash_att_commit) && \ + MAX_JOBS=8 python setup.py build && cd csrc/layer_norm && python setup.py build && cd ../rotary && python setup.py build install-flash-attention: build-flash-attention - cd flash-attention && git checkout $(flash_att_commit) && MAX_JOBS=8 python setup.py && cd csrc/layer_norm && python setup.py install && cd ../rotary && python setup.py install; \ + cd flash-attention && git checkout $(flash_att_commit) && MAX_JOBS=8 python setup.py install && cd csrc/layer_norm && python setup.py install && cd ../rotary && python setup.py install