bitnet-b1.58-2B-4T
Microsoft (United States) · Language (text)
Which way is for me?
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
microsoft/bitnet-b1.58-2B-4T-gguf - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/microsoft/bitnet-b1.58-2B-4T-gguf🧑💻 For developers
vLLM
vllm serve microsoft/bitnet-b1.58-2B-4TTransformers (Python)
from transformers import pipeline
pipe = pipeline("text-generation", model="microsoft/bitnet-b1.58-2B-4T")llama.cpp
llama-server -hf microsoft/bitnet-b1.58-2B-4T-ggufWords used here
- GGUF
- The file format LM Studio, Ollama and llama.cpp use to run a model.
- Quantization (Q4, Q8)
- Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
- VRAM
- The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
- Context
- The most text the model can see at once in a conversation (questions, answers and files).
- Tokens per second
- How fast the answer is written; 20 is about reading speed, 5 is slow.
From the Hugging Face model card
Architecture: Transformer-based, modified with BitLinear layers (BitNet framework).; Uses Rotary Position Embeddings (RoPE).; Uses squared ReLU (ReLU²) activation in FFN layers.; Employs subln normalization.; No bias terms in linear or normalization layers.; Quantization: Native 1.58-bit weights and 8-bit activations (W1.58A8).; Weights are quantized to ternary values {-1, 0, +1} using absmean quantization during the forward pass.; Activations are quantized to 8-bit integers…
Limitations
The Bitnet model has an elevated defect rate when responding to election-critical queries, which may result in incorrect or unauthoritative election critical information being presented. We are working to improve the model's performance in this area.
Benchmarks (from the model card)
| Benchmark | LLaMA 3.2 1B | Gemma-3 1B | Qwen2.5 1.5B | SmolLM2 1.7B | MiniCPM 2B | BitNet b1.58 2B |
|---|---|---|---|---|---|---|
| Memory (Non-emb) | 2GB | 1.4GB | 2.6GB | 3.2GB | 4.8GB | 0.4GB |
| Latency (CPU Decoding) | 48ms | 41ms | 65ms | 67ms | 124ms | 29ms |
| Energy (Estimated) | 0.258J | 0.186J | 0.347J | 0.425J | 0.649J | 0.028J |
| Training Tokens (Pre-train) | 9T | 2T | 18T | 11T | 1.1T | 4T |
| ARC-Challenge | 37.80 | 38.40 | 46.67 | 43.52 | 44.80 | 49.91 |
| ARC-Easy | 63.17 | 63.13 | 76.01 | 62.92 | 72.14 | 74.79 |
| OpenbookQA | 34.80 | 38.80 | 40.80 | 46.00 | 40.20 | 41.60 |
| BoolQ | 64.65 | 74.22 | 78.04 | 75.78 | 80.67 | 80.18 |
Source: Hugging Face · microsoft/bitnet-b1.58-2B-4T · License: mit
Hardware and running it
Local Weights are published and it runs on your own hardware.
- Minimum Q4
- 0.6 GB
- Recommended Q8
- 1 GB
- Full quality FP16
- 2 GB
On common hardware
| RTX 4060 · 8 GB | Great | FP16 · ≈ 59–98 tokens/s |
|---|---|---|
| RTX 4090 · 24 GB | Great | FP16 · ≈ 220–360 tokens/s |
| RTX 5090 · 32 GB | Great | FP16 · ≈ 390–650 tokens/s |
| Mac M4 Max · 128 GB | Great | FP16 · ≈ 120–200 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 720–1,210 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 5,790–9,650 tokens/s |
Speeds are estimates. estimated speed for one user, from memory bandwidth
Links come from the vendor's official site and the model card the vendor published · Updated: