3 releases

0.0.4 Nov 17, 2024
0.0.2 Oct 27, 2024
0.0.1 Oct 25, 2024

#300 in FFI

Download history 107/week @ 2024-10-21 137/week @ 2024-10-28 28/week @ 2024-11-04 58/week @ 2024-11-11 73/week @ 2024-11-18 9/week @ 2024-11-25 3/week @ 2024-12-09

143 downloads per month

MIT license

6MB
119K SLoC

C++ 55K SLoC // 0.1% comments C 35K SLoC // 0.1% comments CUDA 8K SLoC // 0.0% comments Python 7.5K SLoC // 0.1% comments Metal Shading Language 5K SLoC // 0.0% comments Objective-C 3K SLoC // 0.1% comments Rust 2.5K SLoC // 0.1% comments GLSL 2.5K SLoC // 0.0% comments INI 119 SLoC Shell 27 SLoC // 0.1% comments

bitnet-cpp

Almost safe wrapper for BitNet-cpp based on llama-cpp

Thanks

Heavily inspired by llama-cpp-rs

License

MIT

© 2024, Eugene Hauptmann


lib.rs:

Bindings to the llama.cpp library.

As llama.cpp is a very fast moving target, this crate does not attempt to create a stable API with all the rust idioms. Instead it provided safe wrappers around nearly direct bindings to llama.cpp. This makes it easier to keep up with the changes in llama.cpp, but does mean that the API is not as nice as it could be.

Examples

Feature Flags

Dependencies

~0.6–3.5MB
~70K SLoC