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

You are attempting to use Flash Attention 2.0 without specifying a torch dtype. This might lead to unexpected behaviour #1223

Open
AraratSaribekyan opened this issue Sep 12, 2024 · 0 comments

Comments

@AraratSaribekyan
Copy link

Hi everyone!
Trying to initialize Llava1.6-34b-hf with flash attention 2 but getting the following issue, after which it doesn't work properly and doesn't speed up inference.
The point is I explicitly pass torch_dtye=torch.float16. The question is how to handle this warning and does it affect the flash-attention work on inference.
Code is bellow
model = LlavaNextForConditionalGeneration.from_pretrained( "llava-hf/llava-v1.6-34b-hf", device_map="cuda", torch_dtype=torch.float16, attn_implementation="flash_attention_2" )

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