-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enable flash attention #5
Comments
@s-ryosky Hi, |
@AlmoonYsl However, I don't think that object-wise position embedding itself is incompatible with flash-attention. |
I think there may be a numerical overflow problem when calculating the position embedding and its gradient in fp16. |
Thank you for sharing your codes!
I am trying to apply flash attention to MHA as well as StreamPETR, but a loss becomes NaN during the training.
Have you ever encountered this phenomenon?
And do you know of a solution to this problem?
The text was updated successfully, but these errors were encountered: