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

flash-attention gradient calculation fail due to numerical error #4174

Open
hgl71964 opened this issue Jun 20, 2024 · 1 comment
Open

flash-attention gradient calculation fail due to numerical error #4174

hgl71964 opened this issue Jun 20, 2024 · 1 comment

Comments

@hgl71964
Copy link
Contributor

adding causal=False to the pytest case in python/tutorial/06-fused-attention.py causes numerical error when computing backward gradient

RTX4090, CUDA 12.4, triton 3.0.0 (107fed4), llvm (765206e050453018e861637a08a4520f29238074)

@hgl71964
Copy link
Contributor Author

or is it because no one would actually back-prop when causal=False?

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

No branches or pull requests

1 participant