Find answers from the community

Updated 3 months ago

When using `HuggingFaceEmbeddings` to

When using HuggingFaceEmbeddings to generate embeddings, how do I specify that I want the GPU to be used? Is there something like langchains model_kwargs?
L
G
3 comments
It uses GPU by default if cuda is available
Optionally you can specify the device device="cuda:0"
perfect, thanks!
Add a reply
Sign up and join the conversation on Discord