遇到import flash_attn_2_cuda as flash_attn_cuda 时出现的 ImportError: libcudart.so.11.0 错误通常表明Python环境在尝试加载CUDA运行时库时遇到了问题。以下是一些解决步骤,可以帮助你解决这个问题: 检查CUDA版本是否匹配: 确保你安装的CUDA Toolkit版本与你尝试导入的flash_attn_2_cuda库所需的版本相匹配。你可...
import flash_attn_2_cuda as flash_attn_cuda ImportError: /usr/local/lib/python3.10/dist-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTypeEEENS6_INS2_6LayoutEEENS6_INS2_6Devic...
Hello, It's ok to import flash_attn but wrong when importing flash_attn_cuda. I install flash_attn from pip. I have tried to re-install torch and flash_attn and it still not works. Details: The versions of nvcc -V and torch.version.cuda are both 11.7 and compatible. Please help me...
I found I was unable to import flash_attn_cuda after running python setup.py install. --- details --- I run python setup.py install with a prefix pointing to the root dir of flash-attention. I set PYTHONPATH=$PWD also with the absolute path of the root dir of flash-attention. Any...
Thanks for sharing your amazing work, i was excited to give it a try. I tried to follow the steps and after building kernal package in /models/csrc/, after running the code i am getting the error as if there is no package, i am not sure if i am missing anything in between. Should...