Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
๐
๐
๐
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
GPU/CPU Choice
GPU/CPU Choice
Inactive
0
Follow
V
Vaylonn
2 years ago
ยท
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
Share
Open in Discord
V
Vaylonn
2 years ago
ok maybe found the answer
V
Vaylonn
2 years ago
it's in the llm_predictor, then in his args there is device_map
V
Vaylonn
2 years ago
Attachment
V
Vaylonn
2 years ago
GPU/CPU Choice
V
Vaylonn
2 years ago
with this explanation:
Attachment
L
Logan M
2 years ago
Yup you got it!
V
Vaylonn
2 years ago
tried to do device_map = "cuda"
i get the error:
V
Vaylonn
2 years ago
which doesnt fit the doc ?
L
Logan M
2 years ago
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
L
Logan M
2 years ago
Rather than model_name
Add a reply
Sign up and join the conversation on Discord
Join on Discord