赞
踩
git clone https://github.com/HazyResearch/flash-attention \
&& cd flash-attention && git checkout v${flash_attn_version} \
&& cd csrc/fused_softmax && pip install . && cd ../../ \
&& cd csrc/rotary && pip install . && cd ../../ \
&& cd csrc/xentropy && pip install . && cd ../../ \
&& cd csrc/layer_norm && pip install . && cd ../../ \
&& cd csrc/fused_dense_lib && pip install . && cd ../../ \
&& cd csrc/ft_attention && pip install . && cd ../../ \
&& cd .. && rm -rf flash-attention
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。