8000 Fix MQA V2 by laclouis5 · Pull Request #2388 · huggingface/pytorch-image-models · GitHub
[go: up one dir, main page]

Skip to content

Conversation

laclouis5
Copy link
Contributor

This PR fixes the MultiQueryAttentionV2 module with has several issues:

  • It does not scale q @ k,
  • The output transpose was missing,
  • the output reshape used the input dim in 8000 stead of the output_dim.

Copy link
@anukaal anukaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@rwightman rwightman merged commit d23facd into huggingface:main Jan 2, 2025
22 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.

4 participants

0