SpatialLM icon indicating copy to clipboard operation
SpatialLM copied to clipboard

flash_attn issue

Open 3i-cao opened this issue 1 year ago • 2 comments

Hello flash_attn is support for cuda 12.1 and no support for cuda 12.4 If install by pip, it cause the error in inference RuntimeError: Failed to import transformers.models.llama.modeling_llama because of the following error (look up to see its traceback): /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found

So how did you use the flash_attn in your case?

3i-cao avatar Jun 20 '25 09:06 3i-cao

Hi, I think the flash_att is supported for cuda 12.4 as well, FlashAttention Cuda Support.

I followed the provided installation doc as well, and it works for me. If you have more questions related to flash_attn, you can check out the FlashAttention Repo or raise your question there.

SamMaoYS avatar Jun 21 '25 03:06 SamMaoYS

I solved it by pip install flash-attn==2.7.4.post1 --no-build-isolation thanks

3i-cao avatar Jun 23 '25 00:06 3i-cao