mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Fix.
This commit is contained in:
parent
698f7cd474
commit
fda29856cd
@ -3,10 +3,10 @@ flash_att_commit := 3a9bfd076f98746c73362328958dbc68d145fbec
|
|||||||
build-flash-attention:
|
build-flash-attention:
|
||||||
if [ ! -d 'flash-attention' ]; then \
|
if [ ! -d 'flash-attention' ]; then \
|
||||||
pip install -U packaging ninja --no-cache-dir && \
|
pip install -U packaging ninja --no-cache-dir && \
|
||||||
git clone https://github.com/HazyResearch/flash-attention.git && \
|
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; \
|
|
||||||
fi
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user