bitnet.cpp
FreeOfficial inference framework for 1-bit LLMs, by Microsoft. [#opensource](https://github.com/microsoft/BitNet)
About bitnet.cpp
bitnet.cpp is Microsoft's official inference framework for 1-bit Large Language Models (LLMs), such as BitNet b1.58. It provides optimized kernels for fast, lossless inference on both CPU and GPU, with NPU support planned. The framework achieves significant speedups: 1.37x to 5.07x on ARM CPUs and 2.37x to 6.17x on x86 CPUs, while reducing energy consumption by 55.4% to 82.2%. A 100B BitNet b1.58 model can run inference on a single CPU at speeds comparable to human reading (5-7 tokens per second), enabling efficient local deployment. Key releases include GPU inference kernels, a 2B parameter model on Hugging Face, and embedding models with I2_S conversion.
Key Features
Pros & Cons
- Highly optimized for speed and energy efficiency on CPUs
- Lossless inference preserves model accuracy at ultra-low precision
- Can run very large models (100B) on a single CPU
- Open-source and backed by Microsoft research
- Supports both CPU and GPU inference
- Limited to 1-bit (ternary) models like BitNet b1.58, not general LLMs
- Still in active research and development; may not be production-ready for all use cases
- Requires conversion of models to specific I2_S or 1.58-bit format