Bitnet.cpp: Efficient Edge Inference for Ternary LLMs
Paper · https://arxiv.org/abs/2502.11880
The advent of 1-bit large language models (LLMs), led by BitNet b1.58, has spurred interest in ternary LLMs. Despite this, research and practical applications focusing on efficient edge inference for ternary LLMs remain scarce. To bridge this gap, we introduce Bitnet.cpp, an inference system optimized for BitNet b1.58 and ternary LLMs. Given that mixed-precision matrix multiplication (mpGEMM) constitutes the bulk of inference time in ternary LLMs, Bitnet.cpp incorporates a novel mpGEMM library to facilitate sub-2-bits-per-weight, efficient and lossless inference. The library features two core solutions: Ternary Lookup Table (TL), which addresses spatial inefficiencies of previous bit-wise methods, and Int2 with a Scale (I2_S), which ensures lossless edge inference, both enabling high-speed inference. Our experiments show that Bitnet.cpp achieves up to a 6.25x increase in speed over full-precision baselines and up to 2.32x over low-bit baselines, setting new benchmarks in the field. Additionally, we expand TL to element-wise lookup table (ELUT) for low-bit LLMs in the appendix, presenting both theoretical and empirical evidence of its considerable potential. Bitnet.cpp is publicly available at https://github.com/microsoft/BitNet/tree/paper , offering a sophisticated solution for the efficient and practical deployment of edge LLMs.
First seen by Oriel on .
AI summary
Bitnet.cpp is an inference system for BitNet b1.58 and other ternary LLMs that targets efficient, lossless deployment on edge devices.
- Its mixed-precision matrix multiplication library provides Ternary Lookup Table (TL) and Int2 with a Scale (I2_S) methods.
- TL addresses spatial inefficiencies in earlier bit-wise methods, while I2_S supports lossless edge inference.
- Experiments report up to 6.25x speedup over full-precision baselines and 2.32x over low-bit baselines.
- The paper also extends TL to element-wise lookup table (ELUT) for low-bit LLMs and presents theoretical and empirical evidence of its potential.
#ternary llms #edge inference #matrix multiplication #quantization
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hugging Face Papers: 22, latest observation ; +4 over observed period since
Comments
Comment count reported by the source.
- Hugging Face Papers: 0, latest observation ; 0 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hugging Face Papers | 2502.11880 | https://arxiv.org/abs/2502.11880 Read discussion |