Model reference · open weights
bitnet-b1.58-4T is an open-weight language model from microsoft. bitnet-b1.58-2B-4T (INT4) weighs 1.2 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the microsoft/bitnet-b1.58-2B-4T model card, 2026-10-01
What it is
| Released by | microsoft |
|---|---|
| Released | 2025-04-15 |
| Parameters | 850M |
| VRAM | 1.2 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 4K each | |||
| RTX 3060 12 GB | 31 | all 4K | 11.6 GB |
| RTX 4060 Ti 16 GB | 43 | all 4K | 15.4 GB |
| RTX 3090 24 GB | 68 | all 4K | 23.4 GB |
| RTX 4090 24 GB | 68 | all 4K | 23.4 GB |
| RTX 5090 32 GB | 92 | all 4K | 31.0 GB |
| L40S 48 GB | 133 | all 4K | 44.0 GB |
| A100 80 GB | 242 | all 4K | 78.2 GB |
| H100 80 GB | 230 | all 4K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 280 | all 4K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 323 | all 4K | 107 GB |
| H200 141 GB | 420 | all 4K | 138 GB |
| B200 180 GB | 540 | all 4K | 176 GB |
| Requests at once | 4K tokens each |
|---|---|
| 1 | 2.2 GB |
| 5 | 3.4 GB |
| 8 | 4.4 GB |
| 16 | 6.9 GB |
| 32 | 11.9 GB |
| 64 | 22.0 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| bitnet-b1.58-2B-4T (above) ↗ | 850M | INT4 | 1.2 GB | RTX 3060 12 GB |
| bitnet-b1.58-2B-4T-gguf ↗ | GGUF | 1.2 GB | RTX 3060 12 GB |
From the model card
This repository contains the weights for BitNet b1.58 2B4T, the first open-source, native 1-bit Large Language Model (LLM) at the 2-billion parameter scale, developed by Microsoft Research.
Trained on a corpus of 4 trillion tokens, this model demonstrates that native 1-bit LLMs can achieve performance comparable to leading open-weight, full-precision models of similar size, while offering substantial advantages in computational efficiency (memory, energy, latency).
➡️ Technical Report: BitNet b1.58 2B4T Technical Report
➡️ Official Inference Code: microsoft/BitNet (bitnet.cpp)
Several versions of the model weights are available on Hugging Face:
microsoft/bitnet-b1.58-2B-4T (This repository): Contains the packed 1.58-bit weights optimized for efficient inference. Use this for deployment.
microsoft/bitnet-b1.58-2B-4T-bf16: Contains the master weights in BF16 format. Use this only for training or fine-tuning purposes.
microsoft/bitnet-b1.58-2B-4T-gguf: Contains the model weights in GGUF format, compatible with the bitnet.cpp library for CPU inference.
BitLinear layers (BitNet framework).
subln normalization.transformers)VERY IMPORTANT NOTE ON EFFICIENCY
Please do NOT expect performance efficiency gains (in terms of speed, latency, or energy consumption) when using this model with the standard transformers library, even with the required fork.
The current execution paths within transformers do not contain the specialized, highly optimized computational kernels required to leverage the advantages of the BitNet architecture. Running the model via transformers will likely result in inference speeds and energy usage comparable to, or potentially worse than, standard full-precision models within this framework on both CPU and GPU.
While you might observe reduced memory usage due to the quantized weights, the primary computational efficiency benefits are not accessible through this standard transformers usage path.
For achieving the efficiency benefits demonstrated in the technical paper, you MUST use the dedicated C++ implementation: bitnet.cpp.
pip install git+https://github.com/huggingface/transformers.git@096f25ae1f501a084d8ff2dcaf25fbc2bd60eba4
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "microsoft/bitnet-b1.58-2B-4T"
# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16
)
# Apply the chat template
messages = [
{"role": "system", "content": "You are a helpful AI assistant."},
{"role": "user", "content": "How are you?"},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
chat_input = tokenizer(prompt, return_tensors="pt").to(model.device)
# Generate response
chat_outputs = model.generate(**chat_input, max_new_tokens=50)
response = tokenizer.decode(chat_outputs[0][chat_input['input_ids'].shape[-1]:], skip_special_tokens=True) # Decode only the response part
print("\nAssistant Response:", response)
bitnet.cpp)Please refer to the bitnet.cpp GitHub repository for detailed compilation steps, usage examples, and command-line options.
BitNet b1.58 2B4T was evaluated against leading open-weight full-precision LLMs of similar size. Below are the key results (all models are instruction-tuned versions):
| 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.2 |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.