bitnet-b1.58-2B-4T

Microsoft (United States) · Language (text)

🧠 850M📄 4K context🔓 Open weights (downloadable)⚖️ mit

Which way is for me?

💻 On my own computer

  1. Download and install LM Studio (free): lmstudio.ai
  2. In LM Studio open Search (the magnifier) and type exactly:
    microsoft/bitnet-b1.58-2B-4T-gguf
  3. From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
  4. 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-4T

Transformers (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-gguf
Words 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)

BenchmarkLLaMA 3.2 1BGemma-3 1BQwen2.5 1.5BSmolLM2 1.7BMiniCPM 2BBitNet b1.58 2B
Memory (Non-emb)2GB1.4GB2.6GB3.2GB4.8GB0.4GB
Latency (CPU Decoding)48ms41ms65ms67ms124ms29ms
Energy (Estimated)0.258J0.186J0.347J0.425J0.649J0.028J
Training Tokens (Pre-train)9T2T18T11T1.1T4T
ARC-Challenge37.8038.4046.6743.5244.8049.91
ARC-Easy63.1763.1376.0162.9272.1474.79
OpenbookQA34.8038.8040.8046.0040.2041.60
BoolQ64.6574.2278.0475.7880.6780.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 GBGreatFP16 · ≈ 59–98 tokens/s
RTX 4090 · 24 GBGreatFP16 · ≈ 220–360 tokens/s
RTX 5090 · 32 GBGreatFP16 · ≈ 390–650 tokens/s
Mac M4 Max · 128 GBGreatFP16 · ≈ 120–200 tokens/s
H100 · 80 GBGreatFP16 · ≈ 720–1,210 tokens/s
8× H100 · 640 GBGreatFP16 · ≈ 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: