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

Load Model To CPU and Then GPU #809

Open
twicer-is-coder opened this issue May 22, 2024 · 1 comment
Open

Load Model To CPU and Then GPU #809

twicer-is-coder opened this issue May 22, 2024 · 1 comment

Comments

@twicer-is-coder
Copy link

twicer-is-coder commented May 22, 2024

Anyway to load the model in CPU first and then move to GPU?

@tophee
Copy link

tophee commented May 22, 2024

To use CPU, set device = "cpu". Once you want to switch to GPU, set device = "cuda"

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

No branches or pull requests

2 participants