Find answers from the community

Updated 2 years ago

GPU/CPU Choice

Is there a part of the code we need to specify if we want to use gpu instead of cpu ? Or it depends directly of the llm we are using
V
L
10 comments
ok maybe found the answer
it's in the llm_predictor, then in his args there is device_map
GPU/CPU Choice
with this explanation:
Attachment
image.png
Yup you got it!
tried to do device_map = "cuda"

i get the error:
which doesnt fit the doc ?
Tbh I think I misunderstood what device map does when I wrote the doc lol

Try loading the model directly and moving it to cuda yourself? Then you can pass the model in directly
Rather than model_name
Add a reply
Sign up and join the conversation on Discord