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 2.0 only supports torch.float16 and torch.bfloat16 dtypes, but the current dype in Qwen2ForCausalLM is torch.float32. #252

Open
OKC13 opened this issue Feb 12, 2025 · 3 comments

Comments

@OKC13
Copy link

OKC13 commented Feb 12, 2025

Image

@thomZ1
Copy link

thomZ1 commented Feb 13, 2025

Image
same problem I guess you cloud add model_dtype in config to solve it

@OKC13
Copy link
Author

OKC13 commented Feb 13, 2025

Image same problem I guess you cloud add model_dtype in config to solve it

Image

@OKC13
Copy link
Author

OKC13 commented Feb 13, 2025

Image same problem I guess you cloud add model_dtype in config to solve it

Yeah,fixed , just fix the actor module

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