5 releases

0.0.5 Aug 8, 2025
0.0.4 Jun 4, 2025
0.0.3 May 16, 2025
0.0.2 May 15, 2025
0.0.1 Mar 28, 2025

#1636 in Machine learning

Download history

487 downloads per month

MIT license

8.5MB
156K SLoC

C++ 89K SLoC // 0.1% comments C 27K SLoC // 0.0% comments CUDA 12K SLoC // 0.0% comments GLSL 10K SLoC // 0.0% comments Python 6.5K SLoC // 0.1% comments Metal Shading Language 6K SLoC // 0.0% comments Objective-C 5.5K SLoC // 0.0% 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