Skip to content

fix: return the out tensor rather then the functions return value #2361

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

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Aug 5, 2024

This PR fixes a bug with the output value from flash attention. Currently when using flash attention v1 the output of the attention function is the [0] indexed value returned from flash_attn_cuda.fwd. This tensor is not the correct shape or value and the correct return value is the out tensor.

@Narsil Narsil merged commit 29b8d19 into main Aug 6, 2024
9 checks passed
@Narsil Narsil deleted the hotfix-adjust-flash-attn-out branch August 6, 2024 11:49
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.

3 participants