Skip to content

eugenehp/bitnet-cpp-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitNet.cpp for Rust

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

Development

Add bitnet submodule:

cd bitnet-cpp-sys
git submodule add --name bitnet --depth 10 -- https://github.com/microsoft/BitNet.git bitnet 

Pull recursive updates:

cd bitnet-cpp-sys/bitnet
git submodule update --init --recursive

Configure using python:

cd bitnet-cpp-sys/bitnet
pip install -r requirements.txt
python setup_env.py --hf-repo HF1BitLLM/Llama3-8B-1.58-100B-tokens -q i2_s # only needs gen_code() 

Roadmap

  • minimize crate size
  • rewrite sampler PR 9294
  • look into Metal implementation of MatMul kernerls for BitNet
  • add more examples
  • replace all remaining python from BitNet repo
  • add better division between arm64 and x86_64

Thanks

Heavily inspired by llama-cpp-rs

License

MIT

Copyright

© 2024, Eugene Hauptmann

About

Rust bindings for bitnet.cpp based on llama-cpp-4

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published