Nanbeige · text

Nanbeige4.1-3B

Nanbeige/Nanbeige4.1-3B

Nanbeige4.1-3B at Q4_K_M is exactly 2,443,112,576 bytes (2.28 GiB / 2.44 GB) — an effective 4.969 bits per weight, not the nominal 4. Its KV cache at 32K is 2.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.9B
Architecture
llama
32 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.51 GiB1,623,104,0643.301mradermacher
Q3_K_S1.73 GiB1,860,943,4243.785mradermacher
Q3_K_M1.88 GiB2,015,608,3844.099mradermacher
Q3_K_L2.00 GiB2,147,499,5844.367mradermacher
IQ4_XS2.09 GiB2,240,586,3044.557mradermacher
Q4_K_S2.18 GiB2,340,958,7844.761mradermacher
Q4_K_M2.28 GiB2,443,112,5764.969Edge-Quant
Q4_K_M2.28 GiB2,443,113,0244.969mradermacher
Q5_K_S2.58 GiB2,765,386,3045.624mradermacher
Q5_K_M2.63 GiB2,825,269,8245.746mradermacher
Q6_K3.01 GiB3,231,311,4246.572mradermacher
Q8_03.90 GiB4,183,948,4168.509Edge-Quant
Q8_03.90 GiB4,183,948,8648.509mradermacher
F167.33 GiB7,871,577,66416.009mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.25 GiB0.25 GiB32 / 0 / 0
8,1920.50 GiB0.50 GiB32 / 0 / 0
16,3841.00 GiB1.00 GiB32 / 0 / 0
32,7682.00 GiB2.00 GiB32 / 0 / 0
65,5364.00 GiB4.00 GiB32 / 0 / 0
131,0728.00 GiB8.00 GiB32 / 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 Q4_K_M at roughly 2.06 GiB. The real file is 2.28 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does Nanbeige4.1-3B need?
Q4_K_M is exactly 2,443,112,576 bytes (2.28 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Nanbeige4.1-3B's KV cache?
2.00 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 Nanbeige4.1-3B 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.