on-internet
← Community

I cannot install flash-attention

Stack Overflow ·

I try to run my vector search code but I got this error: ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run `pip install flash_attn --no-build-isolation` as in the github repository. This error probably occured in this line: model = AutoModel.from_pretrained(model_dir, trust_remote_code= True).cuda().eval() There are two ways mentioned in the readme file inside the flash-attn repository. The first one is pip install flash-attn --no-build-isolation and the second one is after cloning the repository, navigating to the hooper f

Comments

Sign in or sign up to comment and upvote.

No comments yet.