8000 Add a flag to use CPU only in the config by sgugger · Pull Request #263 · huggingface/accelerate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add a flag to use CPU only in the config #263

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

Merged
merged 1 commit into from
Mar 1, 2022
Merged

Add a flag to use CPU only in the config #263

merged 1 commit into from
Mar 1, 2022

Conversation

sgugger
Copy link
Collaborator
@sgugger sgugger commented Mar 1, 2022

This PR adds a field in the config to only use CPU even if GPUs are available. It also simplifies the state initialization using that new flag.

Fixes #261

@sgugger sgugger requested review from muellerzr and LysandreJik March 1, 2022 18:32
Copy link
Member
@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

Copy link
Contributor
@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, very nice and clean!

@sgugger sgugger merged commit c7e9e10 into main Mar 1, 2022
@sgugger sgugger deleted the cpu_launch branch March 1, 2022 19:15
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.

How to force accelerate launch to use CPU instead of GPU?
3 participants
0