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

Fix bug for previous removal of repeat_kv (when key_value_heads > 1 and < attention_heads) #52

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

guoqingbao
Copy link
Collaborator

This PR fixed the bug that introduced by previous removal of repeat_kv (#49 ). In the prefiling stage, it works like repeat_kv, while, in the decoding stage, repeat_kv strategy is not required and thus kvcache can be significantly reduced when key_value_heads is small. #51

@guoqingbao guoqingbao mentioned this pull request Jul 9, 2024
@guoqingbao guoqingbao merged commit 8552167 into master Jul 9, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant