2 releases

0.0.2 Oct 27, 2024
0.0.1 Oct 25, 2024

#255 in Machine learning

Download history 107/week @ 2024-10-21 137/week @ 2024-10-28

244 downloads per month

MIT license

7.5MB
148K SLoC

C++ 73K SLoC // 0.1% comments C 35K SLoC // 0.1% comments Python 13K SLoC // 0.1% comments CUDA 8K SLoC // 0.0% 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 JavaScript 2.5K SLoC // 0.2% comments Swift 1K SLoC // 0.0% comments Gherkin (Cucumber) 706 SLoC // 0.1% comments Kotlin 700 SLoC // 0.1% comments Shell 625 SLoC // 0.2% comments INI 143 SLoC Batch 64 SLoC // 0.2% comments Prolog 35 SLoC Vim Script 21 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