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 dk/dv autograd error on TPU flash attention #8685

Merged

Conversation

zmelumian972
Copy link
Contributor

grads not extracting on flash attention if autograd activated on dv

flash attention backward function on TPU will only return keys and values gradients if the key gradients is requested by torch.autograd

…ed on dv

flash attention backward function on TPU will only return keys and values gradients if the key gradients is requested by torch.autograd
Copy link
Collaborator

@lsy323 lsy323 left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@qihqi qihqi merged commit 0cd1fc2 into pytorch:master Feb 7, 2025
12 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.

3 participants