-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go bindings #351
Comments
Alright, a polished version using the new lib interfaces is here: https://github.com/go-skynet/go-llama.cpp/tree/master @ggerganov @gjmulder I'd be more than happy to have it here instead - would make it sense to wrap it up in a PR? |
@mudler |
I'm happy either way to be honest, I think mostly depends if you plan to have the language bindings sitting nearby the llama.cpp codebase. I was planning in any case to add documentation to the bindings. I think it would best for the bindings to sit next to the project for maintainability, however maybe its worth meanwhile I work on a PR we can add it to the README, what do you think? I'm checking whisper.cpp and I see it does tests also with the model, which I think we can't do here with llama.cpp as most of weights/models I can find are bind to the LLaMA license, which is not permissive - it prohibits redistribution and modifications (so any variant would be against their license, potentially we could violate DCMA just by referencing links to the model). What do you suggest here? A simple test that compiles the binding and exercise the lib minimally would be ok? |
I was looking for Go bindings today, but in the go-skynet version, the |
good food for thoughts, I was thinking too to expose a lower level API for granular control in go as well aside a higher level one, maybe we can join forces and do it together, WDYT? |
Very high level, but I thought I would leave this here anyway: https://github.com/matthewrennie/go-llama.cpp |
…bias-parameter Add support for `logit_bias` and `logit_bias_type` parameters
Hey 👋 , awesome project!
I'd like to help here, I've did the bindings for go to be used as a library. there are of course some adaptations that I had to run into to make it possible. I'm wondering, there are any plans for golang bindings? Generally speaking there seems to be genuine interest into running this as API too antimatter15#86 , which I worked on here: https://github.com/go-skynet/llama-cli .
I'm happy to contribute my work which currently is in https://github.com/go-skynet/llama, I'm playing with this sparely - I've been using this mainly with alpaca, and could manage to run also
13b
and30b
models. I'll update it later to the latest changes so it is on pair with master.The text was updated successfully, but these errors were encountered: