microsoft · text

bitnet-b1.58-2B-4T

microsoft/bitnet-b1.58-2B-4T

bitnet-b1.58-2B-4T at F16 is exactly 109,142,848 bytes (0.10 GiB / 0.11 GB) — an effective 1.028 bits per weight, not the nominal 1. Its KV cache at 32K is 2.34 GiB.

From the file· summed from 2 file(s)From the file· KV per layer
Parameters
850M
Architecture
30 layers
Context
4,096
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
F162 shards0.10 GiB109,142,8481.028UlukaDev
TQ1_01.03 GiB1,105,874,01610.411UlukaDev

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.29 GiB0.29 GiB30 / 0 / 0
8,1920.59 GiB0.59 GiB30 / 0 / 0
16,3841.17 GiB1.17 GiB30 / 0 / 0
32,7682.34 GiB2.34 GiB30 / 0 / 0
65,5364.69 GiB4.69 GiB30 / 0 / 0
131,0729.38 GiB9.38 GiB30 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts F16 at roughly 0.45 GiB. The real file is 0.10 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
30
Attention heads
20
KV heads
5
Head dim
128
Hidden size
2560
Vocab
128,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does bitnet-b1.58-2B-4T need?
F16 is exactly 109,142,848 bytes (0.10 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is bitnet-b1.58-2B-4T's KV cache?
2.34 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of bitnet-b1.58-2B-4T should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.