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

[benchmarks] Fix execution with AMP precision. #6512

Merged
merged 6 commits into from
Feb 12, 2024
Merged

Conversation

ysiraichi
Copy link
Collaborator

This PR moves AMP to be only activated in the forward execution.

cc @miladm

@zpcore
Copy link
Collaborator

zpcore commented Feb 9, 2024

Hi @ysiraichi , did you see any issue recently that GPU xla backend also failed to run? I am not sure if this is related to the data format changes.

@ysiraichi
Copy link
Collaborator Author

Not really...

@vanbasten23
Copy link
Collaborator

Overall, LGTM.
One quick question, why do we want to moves AMP to be only activated in the forward execution? If we dont do it, what error do you see?

@ysiraichi
Copy link
Collaborator Author

It's not exactly an error. But this is how AMP is supposed to be used. This is also how PyTorch's benchmarking script uses it (if we want to have comparable numbers).

@ysiraichi ysiraichi merged commit 408b376 into master Feb 12, 2024
18 checks passed
amithrm pushed a commit to amithrm/xla that referenced this pull request Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants