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

Add set_false_math to false to solve accuracy issue for gelu test. #25

Merged
merged 5 commits into from
Nov 29, 2023

Conversation

TedThemistokleous
Copy link

Description

Fix for Navi3x cards as there's an issue we're seeing with fp16 fast math through MIGraphX.

Turning off the fast math via the compiler options solves this through the EP side. Will disable fast math by default and enable for MI- Cards as part of DLM.

TODO: Wrap this in a env variable

Motivation and Context

Fixes accuracy issue seen when testing with our parity gelu parity tests in DLM.

@TedThemistokleous TedThemistokleous added the bug Something isn't working label Nov 29, 2023
@TedThemistokleous TedThemistokleous self-assigned this Nov 29, 2023
@TedThemistokleous
Copy link
Author

Will flip out of draft once DLM run passes. Then port to upstream once this review is complete

@TedThemistokleous TedThemistokleous marked this pull request as ready for review November 29, 2023 04:23
Allow users to set the fast math option for MIGraphX compilation for quantized data types (fp16)
This allows us to toggle whether we can use faster math with the tradeoff of accuracy.
@TedThemistokleous
Copy link
Author

Waiting for a clean test run with latest changes. I'll merge this in morning if this works, or worst case for the sake of time back the most recent env variable changes out and add the flags later.

@TedThemistokleous
Copy link
Author

Just disabling everything for fast math by default for now.

@TedThemistokleous TedThemistokleous merged commit d876d37 into rocm6.0_internal_testing Nov 29, 2023
10 of 12 checks passed
@TedThemistokleous TedThemistokleous deleted the disable_fast_math_migx_ep branch December 1, 2023 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants