3 releases

new 0.0.3 May 16, 2025
0.0.2 May 15, 2025
0.0.1 Mar 28, 2025

#1875 in Filesystem

Download history 117/week @ 2025-03-26 19/week @ 2025-04-02 7/week @ 2025-04-09 8/week @ 2025-04-16 3/week @ 2025-04-30 13/week @ 2025-05-07 297/week @ 2025-05-14

314 downloads per month

MIT license

7MB
134K SLoC

C++ 76K SLoC // 0.1% comments C 23K SLoC // 0.0% comments CUDA 10K SLoC // 0.0% comments GLSL 9K SLoC // 0.0% comments Metal Shading Language 5.5K SLoC // 0.0% comments Objective-C 5K SLoC // 0.0% comments Python 4.5K SLoC // 0.1% comments Rust 242 SLoC // 0.1% comments

llama-rs

LLama-rs uses rust-bindgen to generate bindings for llama.cpp.

Currently, only the system bindings are generated. Higher level bindings can use the system bindings to implement a friendly, safe wrapper around LLama.cpp.

Build Targets

LLama-rs takes advantage of LLama.cpp's cmake build files and focuses laregly on passing the correct flags to llama.cpp.

MacOS

Mac os is the only existing build target for llama-rs. Other targets can be added by including them through the build.rs within the system bindings crate.

No runtime deps