Skip to content

Disable AMP by default on CPU #9218

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Disable AMP by default on CPU #9218

wants to merge 1 commit into from

Conversation

haifeng-jin
Copy link
Collaborator

@haifeng-jin haifeng-jin commented May 20, 2025

Resolves #9119.

The benchmarks in pytorch/xla does not work on CPU because of it is set to use AMP by default, which supports cuda and tpu only, but not cpus.

This PR fixes this issue by disable AMP by default when the accelerator is set to cpu.

@haifeng-jin haifeng-jin self-assigned this May 20, 2025
@haifeng-jin
Copy link
Collaborator Author

Merging the PR. The failed tests is irrelevant to the change in this PR.
The tests failure is being investigated and appeared on other PRs as well.
So, merging.

@haifeng-jin haifeng-jin requested a review from ysiraichi May 21, 2025 17:38
@haifeng-jin
Copy link
Collaborator Author

Maybe wait for @ysiraichi 's comment before merging. : )

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.

The benchmarks does not work on CPU because of AMP
2 participants