3 releases
0.0.4 | Nov 17, 2024 |
---|---|
0.0.2 | Oct 27, 2024 |
0.0.1 | Oct 25, 2024 |
#300 in FFI
143 downloads per month
6MB
119K
SLoC
bitnet-cpp
Almost safe wrapper for BitNet-cpp based on llama-cpp
Thanks
Heavily inspired by llama-cpp-rs
License
Copyright
© 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
cuda
enables CUDA gpu support.sampler
adds thecontext::sample::sampler
struct for a more rusty way of sampling.
Dependencies
~0.6–3.5MB
~70K SLoC