Hcompany · text

Holo-3.1-4B

Hcompany/Holo-3.1-4B

Holo-3.1-4B at Q4_K_M is exactly 3,066,386,016 bytes (2.86 GiB / 3.07 GB) — an effective 4.740 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S1.46 GiB1,567,824,1282.424mradermacher
I1-IQ1_M1.52 GiB1,635,008,7682.528mradermacher
I1-IQ2_XXS1.63 GiB1,746,983,1682.701mradermacher
I1-IQ2_XS1.71 GiB1,839,184,1282.843mradermacher
I1-IQ2_S1.79 GiB1,925,128,4482.976mradermacher
I1-IQ2_M1.88 GiB2,014,707,9683.115mradermacher
I1-Q2_K_S1.92 GiB2,060,982,5283.186mradermacher
Q2_K1.98 GiB2,124,060,2563.284prithivMLmods
Q2_K1.98 GiB2,124,060,7043.284mradermacher
I1-Q2_K1.98 GiB2,124,060,9283.284mradermacher
I1-IQ3_XXS2.03 GiB2,177,646,8483.366mradermacher
Q3_K_S2.18 GiB2,343,032,4163.622prithivMLmods
Q3_K_S2.18 GiB2,343,032,8643.622mradermacher
I1-Q3_K_S2.18 GiB2,343,033,0883.622mradermacher
I1-IQ3_XS2.19 GiB2,350,733,5683.634mradermacher
I1-IQ3_S2.25 GiB2,412,665,0883.730mradermacher
I1-IQ3_M2.27 GiB2,436,339,9683.766mradermacher
Q3_K_M2.36 GiB2,535,216,7363.919prithivMLmods
Q3_K_M2.36 GiB2,535,217,1843.919mradermacher
I1-Q3_K_M2.36 GiB2,535,217,4083.919mradermacher
Q3_K_L2.51 GiB2,694,469,2164.165prithivMLmods
Q3_K_L2.51 GiB2,694,469,6644.165mradermacher
I1-Q3_K_L2.51 GiB2,694,469,8884.165mradermacher
I1-IQ4_XS2.66 GiB2,852,002,0484.409mradermacher
IQ4_XS2.67 GiB2,866,747,4244.432mradermacher
Q4_02.70 GiB2,901,481,0564.485prithivMLmods
I1-Q4_02.71 GiB2,907,379,9684.495mradermacher
Q4_K_S2.72 GiB2,921,469,5364.516prithivMLmods
Q4_K_S2.72 GiB2,921,469,9844.516mradermacher
I1-Q4_K_S2.72 GiB2,921,470,2084.516mradermacher
I1-IQ4_NL2.76 GiB2,967,017,7284.587mradermacher
Q4_K_M2.86 GiB3,066,386,0164.740prithivMLmods
Q4_K_M2.86 GiB3,066,386,4644.740mradermacher
I1-Q4_K_M2.86 GiB3,066,386,6884.740mradermacher
I1-Q4_12.95 GiB3,164,281,0884.892mradermacher
Q5_03.19 GiB3,427,079,7765.298prithivMLmods
Q5_K_S3.19 GiB3,427,079,7765.298prithivMLmods
Q5_K_S3.19 GiB3,427,080,2245.298mradermacher
I1-Q5_K_S3.19 GiB3,427,080,4485.298mradermacher
Q5_K_M3.27 GiB3,512,030,8165.429prithivMLmods

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.50 GiB4.00×8 / 0 / 24
8,1920.25 GiB1.00 GiB4.00×8 / 0 / 24
16,3840.50 GiB2.00 GiB4.00×8 / 0 / 24
32,7681.00 GiB4.00 GiB4.00×8 / 0 / 24
65,5362.00 GiB8.00 GiB4.00×8 / 0 / 24
131,0724.00 GiB16.00 GiB4.00×8 / 0 / 24

24 of 32 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 4.0× at long context.

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.71 GiB. The real file is 2.86 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
16
KV heads
4
Head dim
256
Hidden size
2560
Vocab
248,320
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Holo-3.1-4B need?
Q4_K_M is exactly 3,066,386,016 bytes (2.86 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Holo-3.1-4B's KV cache?
1.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 Holo-3.1-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.