Key takeaways
- BitNet b1.58 is a Microsoft Research design in which every weight is -1, 0 or +1, about 1.58 bits, and the model is trained that way from scratch.
- In Microsoft's tests a 3B BitNet b1.58 model used 3.55 times less memory and ran 2.71 times faster than a 16-bit LLaMA-style model of the same size.
- PrismML's trending Ternary Bonsai 2.5 27B also uses ternary weights, but it is built on Qwen3.8 27B and its card does not describe it as a BitNet model.
BitNet is a way of building large language models in which every weight is stored as -1, 0 or +1 instead of a 16-bit number. Microsoft Research introduced it in a 2023 paper, and its 1.58-bit version, BitNet b1.58, is what people now call a ternary LLM: a model that needs a fraction of the memory of a normal one and runs fast on an ordinary CPU.
Ternary models are also on the Hugging Face trending list this week. PrismML's Ternary Bonsai 2.5 27B showed 382,546 downloads in the past month when we checked on November 28, 2026. That model uses the same three weight values, but it is not built the way BitNet is. The difference matters, and it is explained below.
What BitNet is
A language model is mostly big tables of numbers called weights. Each time the model writes a word, it multiplies its input by those tables. In a standard model each weight is a 16-bit floating-point number, so a 27-billion-parameter model takes about 54 GB.
The first BitNet paper, from October 17, 2023, replaced the model's standard linear layer with one it called BitLinear. BitLinear keeps weights at 1 bit, either -1 or +1, and the team trained models with it from scratch. The paper reports that these models stayed competitive with 16-bit ones while using much less memory and energy, and that they improved with size in the way normal models do.
In February 2024 the follow-up paper, "The Era of 1-bit LLMs", added a third value, zero. That is BitNet b1.58. The name comes from the math: a weight that can take three values holds log2(3), or about 1.58 bits of information.
How ternary weights work
During training the model keeps a full-precision copy of its weights. On each forward pass, BitNet b1.58 divides a weight table by the average absolute size of its values, then rounds every number to the nearest of -1, 0 or +1. The paper calls this absmean quantization. The activations, the numbers flowing between layers, are cut to 8 bits.
Two things follow.
- Multiplication mostly disappears. Multiplying by +1 or -1 is just adding or subtracting, and multiplying by 0 is skipping. The paper's energy model estimates 71.4 times less energy for the arithmetic of matrix multiplication on 7nm chips.
- Zero acts as a filter. Allowing zero lets the model switch off a connection entirely, which the authors say makes b1.58 a stronger model than the original version with only -1 and +1.
Trained from scratch, not squeezed afterwards
This is the main difference between BitNet and ordinary quantization.
Post-training quantization takes a finished 16-bit model and rounds its weights down to 8, 4 or fewer bits. It is quick, and it is how most local models are made, usually saved as GGUF files. The cost is accuracy, which drops faster the fewer bits are left.
BitNet trains the model with ternary weights from the first step, so the network learns to work within them. The BitNet b1.58 2B4T technical report tests this directly. Microsoft's 2-billion-parameter model, trained on 4 trillion tokens, averaged 55.01 on the report's tests with 0.4 GB of weights. Qwen2.5 1.5B rounded to 4 bits after training averaged 52.15 (GPTQ) and 51.17 (AWQ) with 0.7 GB. The full 16-bit Qwen2.5 1.5B averaged 55.72 with 2.6 GB.
What the papers measured
From "The Era of 1-bit LLMs", against LLaMA-style 16-bit models of the same size, each trained on the same 100 billion tokens:
| Model size | Memory | Speed | Perplexity (lower is better) |
|---|---|---|---|
| 700M | 2.60x less | 1.23x faster | 12.87 vs 12.33 |
| 1.3B | 2.93x less | 1.67x faster | 11.29 vs 11.25 |
| 3B | 3.55x less | 2.71x faster | 9.91 vs 10.04 |
At 70B the authors report 4.1 times faster decoding. On two 80 GB A100 GPUs, a 70B BitNet b1.58 handled batches 11 times larger and 8.9 times as many tokens per second: 2,977 against 333.
The 2B4T report compares Microsoft's released model with small open models on a CPU:
| Model | Weight memory | Time per token | Energy per token | Benchmark average |
|---|---|---|---|---|
| BitNet b1.58 2B4T | 0.4 GB | 29 ms | 0.028 J | 54.19 |
| Qwen2.5 1.5B | 2.6 GB | 65 ms | 0.347 J | 55.23 |
| Llama 3.2 1B | 2 GB | 48 ms | 0.258 J | 44.90 |
| Gemma 3 1B | 1.4 GB | 41 ms | 0.186 J | 43.74 |
Microsoft's bitnet.cpp repository says its CPU kernels run 1.37 to 5.07 times faster than full-precision models on ARM chips and 2.37 to 6.17 times faster on x86, with 55.4% to 82.2% less energy. It also says a 100B BitNet b1.58 model could run on one CPU at 5 to 7 tokens per second, about reading speed. Microsoft has not released a BitNet model that large.
Is Ternary Bonsai a BitNet model
Not in the strict sense. PrismML's model card says the weights are "exactly ternary", with one 16-bit scale for every 128 weights, and that each matrix is first rotated with a Hadamard transform. But the model keeps the architecture of an existing full-precision model, Qwen3.8 27B, rather than being trained from scratch with BitLinear layers. The card does not mention BitNet, does not say exactly how the conversion was done, and runs on llama.cpp and MLX rather than bitnet.cpp. Its file is 5.93 GB at 1.76 bits per weight, against 53.8 GB at 16 bits. Our Bonsai 2.5 article covers its scores.
So both share the idea of three-valued weights. BitNet is a training method; Bonsai is a ternary version of a model that was trained in full precision.
The limits
- Small models lag. At 700M and 1.3B parameters, BitNet b1.58 trailed the 16-bit models. It matched them from 3B up.
- Only small models are public. Microsoft's largest released BitNet model has 2 billion parameters. The 70B figures come from the paper's tests, not a downloadable model.
- Speed needs special software. The model card warns that running the model through the standard transformers library gives none of the speed or energy gains, only lower memory. Most GPUs are not built for ternary math either, which the report lists as future work.
- Short context, mostly English. The 2B model reads up to 4,096 tokens and was trained mostly on English text. It scored 38.40 on HumanEval+ coding against 50.60 for Qwen2.5 1.5B.
- Energy is estimated. The energy numbers come from a model of chip arithmetic, not a power meter.
How to run BitNet
Microsoft's BitNet b1.58 2B4T is free under the MIT license, but Microsoft recommends it for research rather than commercial use without more testing. The bitnet.cpp README asks for Python 3.10 or newer, CMake 3.22 or newer and Clang 18 or newer, and gives these steps:
git clone --recursive https://github.com/microsoft/BitNet.git
cd BitNet
conda create -n bitnet-cpp python=3.10
conda activate bitnet-cpp
pip install -r requirements.txt
huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "You are a helpful assistant" -cnv
The repository also lists community ternary models it can run, including Falcon3 and Falcon-E models from 1B to 10B parameters, and since July 2026 two 1-bit embedding models.
The open question is scale. The papers predict that BitNet gets relatively better as models grow, but until someone releases a large model trained this way, the 27B ternary models people are downloading this week are converted ones.
Frequently asked questions
What is the difference between BitNet and quantization?
Ordinary post-training quantization rounds the weights of a finished 16-bit model down to fewer bits. BitNet trains the model with ternary weights from the start. In Microsoft's 2B4T report, the BitNet model averaged 55.01 with 0.4 GB of weights, while 4-bit versions of Qwen2.5 1.5B averaged 51.17 to 52.15 with 0.7 GB.
What is a ternary LLM?
A ternary LLM is a language model whose weights each take one of three values: -1, 0 or +1, usually with a shared scale factor. Multiplying by those values is just adding, subtracting or skipping, which saves memory and energy.
Why is it called a 1-bit LLM if it uses 1.58 bits?
The original 2023 BitNet used true 1-bit weights, -1 or +1. BitNet b1.58 added zero, and a value with three options holds log2(3), about 1.58 bits. Microsoft kept the 1-bit name for the family.
What is bitnet.cpp?
bitnet.cpp is Microsoft's open-source inference software for 1-bit and ternary models. Its repository reports 1.37 to 5.07 times faster CPU inference on ARM and 2.37 to 6.17 times on x86 than full-precision models, with 55.4% to 82.2% less energy.
Sources
- The Era of 1-bit LLMs: All Large Language Models are in 1.58 BitsarXiv (Microsoft Research)
- BitNet: Scaling 1-bit Transformers for Large Language ModelsarXiv (Microsoft Research)
- BitNet b1.58 2B4T Technical ReportarXiv (Microsoft Research)
- bitnet.cpp: official inference framework for 1-bit LLMsMicrosoft
- microsoft/bitnet-b1.58-2B-4T model cardHugging Face
- Ternary-Bonsai-2.5-27B-GGUF model cardPrismML



