stuarch · text

granite-4.1-30b-heretic

stuarch/granite-4.1-30b-heretic

granite-4.1-30b-heretic at Q4_K_M is exactly 17,490,241,536 bytes (16.29 GiB / 17.49 GB) — an effective 4.847 bits per weight, not the nominal 4. Its KV cache at 32K is 8.00 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S5.73 GiB6,154,021,1521.706mradermacher
I1-IQ1_M6.30 GiB6,764,292,3841.875mradermacher
I1-IQ2_XXS7.25 GiB7,781,411,1042.157mradermacher
I1-IQ2_XS8.04 GiB8,628,660,5122.391mradermacher
I1-IQ2_S8.28 GiB8,888,707,3602.463mradermacher
I1-IQ2_M9.04 GiB9,702,402,3362.689mradermacher
I1-Q2_K_S9.31 GiB9,993,972,0002.770mradermacher
Q2_K9.99 GiB10,723,780,6082.972mradermacher
I1-Q2_K9.99 GiB10,723,780,8962.972mradermacher
I1-IQ3_XXS10.43 GiB11,195,574,5603.103mradermacher
I1-IQ3_XS11.12 GiB11,938,031,9043.309mradermacher
Q3_K_S11.71 GiB12,569,274,3683.483mradermacher
I1-Q3_K_S11.71 GiB12,569,274,6563.483mradermacher
I1-IQ3_S11.74 GiB12,604,926,2403.493mradermacher
I1-IQ3_M12.00 GiB12,890,138,9123.572mradermacher
Q3_K_M13.00 GiB13,956,540,4163.868mradermacher
I1-Q3_K_M13.00 GiB13,956,540,7043.868mradermacher
Q3_K_L14.09 GiB15,129,896,9604.193mradermacher
I1-Q3_K_L14.09 GiB15,129,897,2484.193mradermacher
I1-IQ4_XS14.44 GiB15,501,093,1524.296mradermacher
IQ4_XS14.59 GiB15,668,865,0244.343mradermacher
I1-Q4_015.29 GiB16,415,451,4244.550mradermacher
Q4_K_S15.35 GiB16,484,657,1524.569mradermacher
I1-Q4_K_S15.35 GiB16,484,657,4404.569mradermacher
Q4_K_M16.29 GiB17,490,241,5364.847mradermacher
I1-Q4_K_M16.29 GiB17,490,241,8244.847mradermacher
I1-Q4_116.88 GiB18,126,727,4565.024mradermacher
Q5_K_S18.54 GiB19,905,112,0645.517mradermacher
I1-Q5_K_S18.54 GiB19,905,112,3525.517mradermacher
Q5_K_M19.09 GiB20,493,363,2005.680mradermacher
I1-Q5_K_M19.09 GiB20,493,363,4885.680mradermacher
Q6_K22.06 GiB23,684,179,9686.564mradermacher
I1-Q6_K22.06 GiB23,684,180,2566.564mradermacher
Q8_028.57 GiB30,674,970,6248.501mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.00 GiB1.00 GiB64 / 0 / 0
8,1922.00 GiB2.00 GiB64 / 0 / 0
16,3844.00 GiB4.00 GiB64 / 0 / 0
32,7688.00 GiB8.00 GiB64 / 0 / 0
65,53616.00 GiB16.00 GiB64 / 0 / 0
131,07232.00 GiB32.00 GiB64 / 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 15.12 GiB. The real file is 16.29 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does granite-4.1-30b-heretic need?
Q4_K_M is exactly 17,490,241,536 bytes (16.29 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is granite-4.1-30b-heretic's KV cache?
8.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 granite-4.1-30b-heretic 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.