Skip to content

Langchain GPU #368

Closed Answered by giladgd
PeterTucker asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, Langchain only supports node-llama-cpp version 2, not version 3.
Version 3 introduced seamless GPU integration that doesn't require any configuration or manual actions to use all the available hardware, including GPUs.

On version 2, Metal is used by default on Apple Silicone devices, so there's no need to build anything to use it, but for all other OSs and architectures you have to manually build from source using the command you mentioned with relevant flags.
Version 2 is not supported anymore and won't receive any updates, thus it also won't be compatible with newer llama.cpp versions so new models cannot be used with it.
I plan to update the node-llama-cpp integration of Lan…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by giladgd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants