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

ModuleNotFoundError: No module named 'flash_attn.flash_attention' #1

Open
lineshen199466 opened this issue Jan 9, 2024 · 1 comment

Comments

@lineshen199466
Copy link

[root@pytorch-339829066-master-0 QA-CLIP-main]# python3
Python 3.11.4 (main, Nov 1 2023, 16:06:27) [GCC 8.5.0 20210514 (TencentOS 8.5.0-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import clip as clip
Traceback (most recent call last):
File "", line 1, in
File "/dockerdata/adams_workspace/QA-CLIP-main/clip/init.py", line 4, in
from .model import convert_state_dict
File "/dockerdata/adams_workspace/QA-CLIP-main/clip/model.py", line 16, in
FlashMHA = importlib.import_module('flash_attn.flash_attention').FlashMHA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'flash_attn.flash_attention'

@xiaotaozi121096
Copy link

Hello, I'm also experiencing this issue. Has it been resolved yet?

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