Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Manidos
· 3y ago · 0 comments
One way to connect llama-2 (cpp) to a node.js app is by using this helper class (stdin)
https://gist.github.com/HackyDev/814c6d1c96f259a13dbf5b2dabf...
Comments
[–]
lgrammel
3y ago
You can also spin up the llama.cpp server (
https://github.com/ggerganov/llama.cpp/tree/master/examples/...
) and e.g. use ModelFusion to generate text, stream text, tokenize, etc. :
https://modelfusion.dev/integration/model-provider/llamacpp