-
Notifications
You must be signed in to change notification settings - Fork 23
FA 2.8.3 support #443
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
base: dev
Are you sure you want to change the base?
FA 2.8.3 support #443
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -375,6 +375,12 @@ def get_tols(config, module, backend, dtype): | |
| torch.half: (5e-3, 5e-3), | ||
| torch.bfloat16: (3.5e-2, 3.5e-2), | ||
| } | ||
| # With FA on ROCm it may not fit default tolerance | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this relax of tolerance due to upgrading to 2.8.3?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, even though I did see some numerical errors on ROCm 7.2 image with FA 2.8.0 too, 2.8.3 showed higher delta. It should be dues to new CK I suppose, didn't try Triton backend |
||
| if IS_HIP_EXTENSION and backend == "FlashAttention": | ||
| tols = { | ||
| torch.half: (5e-3, 5e-3), | ||
| torch.bfloat16: (4e-2, 4e-2), | ||
| } | ||
| else: | ||
| if backend == "UnfusedAttention": | ||
| tols = { | ||
|
|
@@ -389,7 +395,7 @@ def get_tols(config, module, backend, dtype): | |
| # With FA on ROCm it may not fit default tolerance | ||
| if IS_HIP_EXTENSION and backend == "FlashAttention": | ||
| tols = { | ||
| torch.half: (1e-2, 1e-2), | ||
| torch.half: (1.2e-2, 1.2e-2), | ||
| torch.bfloat16: (1e-1, 1e-1), | ||
| } | ||
| if module == "DotProductAttention": | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to modify this file as it was for NV upstream QA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really need it but it is part of cherry-picked commit