Go bindings for llama.cpp
Top 45.1% on sourcepulse
This Go library provides high-level bindings for llama.cpp
, enabling Go developers to integrate large language models into their applications. It targets Go developers seeking efficient LLM inference without the complexity of direct C++ interaction, leveraging llama.cpp
's performance optimizations.
How It Works
The project maintains a low-level C/C++ interface within the Go bindings to minimize overhead and maximize performance. This approach keeps most of the heavy lifting in the native llama.cpp
code, simplifying the Go API. It utilizes git submodules to manage the llama.cpp
dependency.
Quick Start & Requirements
git clone --recurse-submodules https://github.com/go-skynet/go-llama.cpp
make libbinding.a
LIBRARY_PATH=$PWD C_INCLUDE_PATH=$PWD go run ./examples -m "/model/path/here" -t 14
Highlighted Details
-ngl
flag.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
5 days ago
1 week