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 wrong tensor assignment of the output of attention #265

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

biendltb
Copy link
Contributor

The output of the Attention should be assigned back to x. The attn_out is not used anywhere. So this is a bug in the code.

@lucidrains
Copy link
Owner

@biendltb oh yes, was introduced when adding the kv cache. thanks for catching this!

@lucidrains lucidrains merged commit d1232c5 into lucidrains:main Jan 27, 2024
@biendltb biendltb deleted the fix/wrong_tensor_assignment branch January 27, 2024 16:55
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.

2 participants