Add new kwarg to load model on CPU or GPU #995
odulcy-mindee
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hi @odulcy-mindee 👋 Yes it's indeed something that has been bothering me as well!
What do you think? :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, I don't think there is a way to load models on CPU or GPU exclusively. One way is to set
os.environ['CUDA_VISIBLE_DEVICES']
. It would be nice have a parameterdevice
to control explicitly this behavior.Example:
What do you think ?
Beta Was this translation helpful? Give feedback.
All reactions