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

[ROCM] adjust test_flash_attn_rocm test tolerance #21379

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

tianleiwu
Copy link
Contributor

@tianleiwu tianleiwu commented Jul 16, 2024

Description

The test_flash_attn_rocm.py from #21032 failed frequently. For example, I saw two failed jobs today:

https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1433040&view=logs&j=7b1aee87-96d6-5250-4d5a-ebd31f36823c&t=0a027a84-13d7-51f7-8b84-dc245dd18394&l=1868
E Max absolute difference: 0.002167

https://dev.azure.com/onnxruntime/onnxruntime/_build/results?buildId=1433428&view=logs&j=7b1aee87-96d6-5250-4d5a-ebd31f36823c&t=0a027a84-13d7-51f7-8b84-dc245dd18394&l=1869
E Max absolute difference: 0.002686

Adjust the abs threshold from 0.002 to 0.005, and use default relative tolerance rtol=0.001.

Motivation and Context

@tianleiwu tianleiwu requested a review from cloudhan July 16, 2024 21:57
@tianleiwu tianleiwu merged commit 0f4c39e into main Jul 17, 2024
99 checks passed
@tianleiwu tianleiwu deleted the tlwu/flash_attn_rocm_tolerance branch July 17, 2024 14:35
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.

2 participants