Skip to content

Allow layout on CPU even if valid cuda GPU exists#206

Open
Rushmore75 wants to merge 1 commit intozai-org:mainfrom
Rushmore75:main
Open

Allow layout on CPU even if valid cuda GPU exists#206
Rushmore75 wants to merge 1 commit intozai-org:mainfrom
Rushmore75:main

Conversation

@Rushmore75
Copy link
Copy Markdown

If there is a valid cuda gpu and you had set cuda_visible_devices, previously it would error out trying to put the model on cuda:cpu. This is now fixed where if you set cuda_visible_devices to cpu it correctly loads the model onto the cpu :)

…e still need to make sure the value isn't cpu
@JaredforReal
Copy link
Copy Markdown
Collaborator

can u add a relevant unit test for it? @Rushmore75

@Rushmore75
Copy link
Copy Markdown
Author

I'm not sure how I would make a test for it, since the test would have to run on a CI machine with cuda capabilities

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.

2 participants