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

flash attention import error is getting masked #9

Open
RobotSail opened this issue Aug 20, 2024 · 0 comments
Open

flash attention import error is getting masked #9

RobotSail opened this issue Aug 20, 2024 · 0 comments

Comments

@RobotSail
Copy link
Member

We still use the flash_attn_varlen_func even when we failed to import it so we get the following error:

[rank3]:     attn_output = flash_attn_varlen_func(
[rank3]:                   ^^^^^^^^^^^^^^^^^^^^^^
[rank3]: NameError: name 'flash_attn_varlen_func' is not defined

But this error usually arises as a fault of not being able to install flash attention for any reason. So when we cannot import flash attention, we should either avoid using this function or we should throw an error indicating why we can't import flash attention.

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

1 participant