#llama #cpp #sampler #bindings #low #api #cuda

sys llama-cpp-sys-4

Low Level Bindings to llama.cpp

7 releases

new 0.1.89 Dec 20, 2024
0.1.88 Dec 8, 2024
0.1.87 Nov 26, 2024
0.1.83 Oct 27, 2024

#13 in #sampler

Download history 116/week @ 2024-10-24 126/week @ 2024-10-31 159/week @ 2024-11-07 7/week @ 2024-11-14 243/week @ 2024-11-21 31/week @ 2024-11-28 156/week @ 2024-12-05 52/week @ 2024-12-12

483 downloads per month
Used in llama-cpp-4

MIT/Apache

6.5MB
129K SLoC

C++ 77K SLoC // 0.1% comments C 30K SLoC // 0.1% comments CUDA 8K SLoC // 0.0% comments Metal Shading Language 5K SLoC // 0.0% comments Objective-C 4K SLoC // 0.0% comments Python 3.5K SLoC // 0.1% comments Rust 488 SLoC // 0.3% comments

llama-cpp-sys

Raw bindings to llama.cpp with cuda support, including new Sampler API from llama-cpp.

See llama-cpp-4 for a safe API.

OpenMPI support

brew install open-mpi
cargo build -F mpi

lib.rs:

See llama-cpp-4 for a documented and safe API.

Dependencies