Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue about flash-atten #12

Open
mamba824824 opened this issue Feb 28, 2024 · 3 comments
Open

Issue about flash-atten #12

mamba824824 opened this issue Feb 28, 2024 · 3 comments

Comments

@mamba824824
Copy link

ImportError: lib/python3.10/site-packages/flash_attn/flash_attn_interface.py", line 10, in
import flash_attn_2_cuda as flash_attn_cuda
ImportError: /lib/python3.10/site-packages/flash_attn_2_cuda.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi

I have tried to change the version of flash-atten, the ImportError still could not be solved. How to solve that.
@ayulockin

@ayulockin
Copy link
Owner

Can you try this?

pip uninstall flash-attn
FLASH_ATTENTION_FORCE_BUILD=TRUE pip install flash-attn

@ayulockin
Copy link
Owner

I think this issue thread will come in handy: oobabooga/text-generation-webui#4182

@mamba824824

@mamba824824
Copy link
Author

mamba824824 commented Mar 4, 2024

I think this issue thread will come in handy: oobabooga/text-generation-webui#4182

@mamba824824

It works. Thanks.
@ayulockin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants