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 3 months ago
0
Follow
Gpu
Gpu
Inactive
0
Follow
t
thoraxe
11 months ago
Β·
it looks like it's been asked previously but no clear answer and the docs aren't super clear either -- how do I make the
embedding
/indexing
use GPU? or, how do I know if it used/might use GPU?
L
t
6 comments
Share
Open in Discord
L
Logan M
11 months ago
You can set
device="cuda"
in the constructor, but it should automatically use the gpu if cuda is available
You can check
nvidia-smi
in your terminal to view if a python process is using gpu memory
t
thoraxe
11 months ago
i thought that was the case
t
thoraxe
11 months ago
waiting for this environment to restart. i was getting oomkilled because it hink it wasn't picking up the gpu
L
Logan M
11 months ago
Hmm interesting
I know you linked a page on onnx/Optimum embeddings earlier. Using GPU for those is a little more tricky (tbh I never got it to work)
t
thoraxe
11 months ago
yeah no not doing the optimum stuff
t
thoraxe
11 months ago
just the regular stuff
Add a reply
Sign up and join the conversation on Discord
Join on Discord