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

[Feature Request] Support grouped-query attention #39

Closed
abhinavkulkarni opened this issue Jul 19, 2023 · 2 comments
Closed

[Feature Request] Support grouped-query attention #39

abhinavkulkarni opened this issue Jul 19, 2023 · 2 comments

Comments

@abhinavkulkarni
Copy link

abhinavkulkarni commented Jul 19, 2023

Hi,

The recent release of LLaMA 2 from Meta AI uses grouped-query attention (GQA) as opposed to multi-head attention (MHA) for the 70B model and the current AWQ search fails. Considering it is the best open-source model, please support GQA.

Thanks!

@abhinavkulkarni abhinavkulkarni changed the title [Feature request] Support grouped-query attention [Feature Request] Support grouped-query attention Jul 19, 2023
@casper-hansen
Copy link
Contributor

Did you try with newest transformers 4.31.0? They only just added LLaMa 2 support in this PR:
huggingface/transformers#24891

Guide says the following: num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used

Also, see https://github.com/huggingface/transformers/pull/24891/files#diff-110a445233a8b15a0875998eeaf75cb8607b38a5daa736291dd058766879bbddR104

@abhinavkulkarni
Copy link
Author

Closing this as this is in the works: #53

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