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

Revert "MHA refac: rope without complex operations + query only as input of the forward" #22

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

vince62s
Copy link
Contributor

@vince62s vince62s commented Jun 12, 2024

Reverts #20

there were two oversights:

  • cos/sin embeddings need to be [, head_dim//2] for flash2_with_kv_cache but [, head_dim] for the non interleaved calculation
  • making key/value optional (since = to query in case of self) added a test that make things slower.

will split PR for clarity.

@vince62s vince62s merged commit d4b8791 into main Jun 12, 2024
4 checks passed
@francoishernandez francoishernandez deleted the revert-20-mha branch July 1, 2024 13:46
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