anthracite-org · text

magnum-v2-4b

anthracite-org/magnum-v2-4b

magnum-v2-4b at Q4_K_M is exactly 2,778,283,488 bytes (2.59 GiB / 2.78 GB) — an effective 4.925 bits per weight, not the nominal 4. Its KV cache at 32K is 4.00 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S1.13 GiB1,213,413,2482.151mradermacher
I1-IQ1_M1.20 GiB1,286,256,5122.280mradermacher
I1-IQ2_XXS1.31 GiB1,407,661,9522.495mradermacher
I1-IQ2_XS1.41 GiB1,517,369,2162.690mradermacher
I1-IQ2_S1.51 GiB1,625,509,7602.882mradermacher
IQ2_M1.60 GiB1,722,633,6963.054bartowski
I1-IQ2_M1.60 GiB1,722,634,1123.054mradermacher
Q2_K1.71 GiB1,839,738,3363.261bartowski
I1-Q2_K1.71 GiB1,839,738,7523.261mradermacher
I1-IQ3_XXS1.75 GiB1,880,117,1203.333mradermacher
IQ3_XS1.89 GiB2,027,603,4243.594bartowski
I1-IQ3_XS1.89 GiB2,027,603,8403.594mradermacher
Q3_K_S1.96 GiB2,101,528,0323.725bartowski
I1-Q3_K_S1.96 GiB2,101,528,4483.725mradermacher
I1-IQ3_S1.97 GiB2,114,897,7923.749mradermacher
IQ3_M2.03 GiB2,183,415,2643.871bartowski
I1-IQ3_M2.03 GiB2,183,415,6803.871mradermacher
Q2_K_L2.07 GiB2,224,506,3363.943bartowski
Q3_K_M2.14 GiB2,296,563,1684.071bartowski
I1-Q3_K_M2.14 GiB2,296,563,5844.071mradermacher
Q3_K_L2.30 GiB2,464,859,6164.370bartowski
I1-Q3_K_L2.30 GiB2,464,860,0324.370mradermacher
IQ4_XS2.36 GiB2,535,546,3364.495bartowski
I1-IQ4_XS2.36 GiB2,535,546,7524.495mradermacher
Q4_02.47 GiB2,655,600,0964.708bartowski
I1-Q4_02.47 GiB2,655,600,5124.708mradermacher
Q4_K_S2.48 GiB2,664,250,8484.723bartowski
I1-Q4_K_S2.48 GiB2,664,251,2644.723mradermacher
Q4_K_M2.59 GiB2,778,283,4884.925bartowski
I1-Q4_K_M2.59 GiB2,778,283,9044.925mradermacher
Q4_K_L2.86 GiB3,070,707,1685.444bartowski
Q5_K_S2.95 GiB3,163,340,2565.608bartowski
I1-Q5_K_S2.95 GiB3,163,340,6725.608mradermacher
Q5_K_M3.01 GiB3,230,186,9765.726bartowski
I1-Q5_K_M3.01 GiB3,230,187,3925.726mradermacher
Q5_K_L3.23 GiB3,473,360,3526.157bartowski
Q6_K3.46 GiB3,710,334,4326.577bartowski
I1-Q6_K3.46 GiB3,710,334,8486.577mradermacher
Q6_K_L3.63 GiB3,901,179,3606.916bartowski
Q8_04.47 GiB4,803,216,8648.515bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.50 GiB0.50 GiB32 / 0 / 0
8,1921.00 GiB1.00 GiB32 / 0 / 0
16,3842.00 GiB2.00 GiB32 / 0 / 0
32,7684.00 GiB4.00 GiB32 / 0 / 0
65,5368.00 GiB8.00 GiB32 / 0 / 0
131,07216.00 GiB16.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.36 GiB. The real file is 2.59 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
32
KV heads
8
Head dim
128
Hidden size
3072
Vocab
128,256
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does magnum-v2-4b need?
Q4_K_M is exactly 2,778,283,488 bytes (2.59 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is magnum-v2-4b's KV cache?
4.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 magnum-v2-4b 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.