Ilya626 · text

gemma-4-31B-it-SDFT-Heretic-RP

Ilya626/gemma-4-31B-it-SDFT-Heretic-RP

gemma-4-31B-it-SDFT-Heretic-RP at Q4_K_M is exactly 19,598,483,616 bytes (18.25 GiB / 19.60 GB) — an effective 5.107 bits per weight, not the nominal 4. Its KV cache at 32K is 6.17 GiB, not the 30.00 GiB a flat formula predicts.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XXS10.09 GiB10,830,184,6082.822bartowski
IQ2_XS10.71 GiB11,500,937,3762.997bartowski
IQ2_S11.25 GiB12,075,352,2243.147bartowski
Q2_K11.76 GiB12,631,617,6963.292bartowski
IQ2_M11.78 GiB12,649,767,0723.297bartowski
Q2_K_L12.08 GiB12,972,929,1843.381bartowski
IQ3_XXS12.09 GiB12,981,702,8163.383bartowski
IQ3_XS12.89 GiB13,841,346,7203.607bartowski
Q3_K_S13.34 GiB14,329,057,4403.734bartowski
IQ3_M14.09 GiB15,129,823,3923.943bartowski
Q3_K_M14.82 GiB15,918,117,0244.148bartowski
Q3_K_L15.66 GiB16,810,619,0404.381bartowski
IQ4_XS15.98 GiB17,155,887,2644.471bartowski
IQ4_NL16.79 GiB18,025,681,0564.698bartowski
Q4_016.83 GiB18,076,258,4644.711bartowski
Q4_K_S16.95 GiB18,195,648,6724.742bartowski
Q4_K_M18.25 GiB19,598,483,6165.107bartowski
Q4_118.41 GiB19,765,268,6405.151bartowski
Q4_K_L18.57 GiB19,939,795,1045.197bartowski
Q5_K_S20.03 GiB21,504,856,2245.604bartowski
Q5_K_M21.06 GiB22,608,871,5845.892bartowski
Q5_K_L21.37 GiB22,950,183,0725.981bartowski
Q6_K24.89 GiB26,726,715,5526.965bartowski
Q6_K_L25.21 GiB27,068,027,0407.054bartowski
Q8_030.39 GiB32,635,670,6888.505bartowski
BF162 shards57.20 GiB61,413,183,55216.005bartowski

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.80 GiB3.75 GiB2.09×10 / 50 / 0
8,1922.42 GiB7.50 GiB3.10×10 / 50 / 0
16,3843.67 GiB15.00 GiB4.09×10 / 50 / 0
32,7686.17 GiB30.00 GiB4.86×10 / 50 / 0
65,53611.17 GiB60.00 GiB5.37×10 / 50 / 0
131,07221.17 GiB120.00 GiB5.67×10 / 50 / 0

50 of 60 layers cache only a 1,024-token window rather than the full context, on a period of . Figures assume the default configuration; --swa-full disables the saving entirely.

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 16.08 GiB. The real file is 18.25 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 30.00 GiB at 32K context where the real figure is 6.17 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
60
Attention heads
32
KV heads
16
Head dim
256
Hidden size
5376
Vocab
262,144
Sliding window
1024
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-4-31B-it-SDFT-Heretic-RP need?
Q4_K_M is exactly 19,598,483,616 bytes (18.25 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is gemma-4-31B-it-SDFT-Heretic-RP's KV cache?
6.17 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 gemma-4-31B-it-SDFT-Heretic-RP 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.