2 releases
0.0.2 | Oct 27, 2024 |
---|---|
0.0.1 | Oct 25, 2024 |
#255 in Machine learning
244 downloads per month
7.5MB
148K
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.