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

TE 1.4 fused attn caused a NaN when backward #1101

Open
Jack47 opened this issue Aug 13, 2024 · 1 comment
Open

TE 1.4 fused attn caused a NaN when backward #1101

Jack47 opened this issue Aug 13, 2024 · 1 comment

Comments

@Jack47
Copy link

Jack47 commented Aug 13, 2024

I met an nan using TE 1.4, after I use pytorch autograd.detect_anomaly, it captured the NaN traceback:

Error detected in FusedAttnFuncBackward.
...
[rank5]: RuntimeError: Function 'FusedAttnFuncBackward' returned nan values in its 2th output.

When I install TE 1.7, the nan disappeared.

@ksivaman
Copy link
Member

@cyanguwa Was there any bug fix in fused attention backend's backward between these 2 releases that could explain this?

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

2 participants