nbeerbower · vision language

Gemma4-Gutenberg-31B

nbeerbower/Gemma4-Gutenberg-31B

Gemma4-Gutenberg-31B at Q4_K_M is exactly 18,687,065,120 bytes (17.40 GiB / 18.69 GB) — an effective 4.780 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
31.3B
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
I1-IQ1_S6.67 GiB7,156,491,5521.831mradermacher
I1-IQ1_M7.20 GiB7,725,874,4641.976mradermacher
I1-IQ2_XXS8.08 GiB8,674,845,9842.219mradermacher
I1-IQ2_XS8.88 GiB9,530,361,1202.438mradermacher
I1-IQ2_S9.46 GiB10,157,890,8482.599mradermacher
IQ2_XXS10.09 GiB10,830,191,4882.771bartowski
I1-IQ2_M10.17 GiB10,917,068,0642.793mradermacher
I1-Q2_K_S10.22 GiB10,976,591,1362.808mradermacher
IQ2_XS10.71 GiB11,500,944,2562.942bartowski
Q2_K11.10 GiB11,916,315,6803.048mradermacher
I1-Q2_K11.10 GiB11,916,315,9363.048mradermacher
IQ2_S11.25 GiB12,075,359,1043.089bartowski
I1-IQ3_XXS11.25 GiB12,077,509,9203.090mradermacher
Q2_K11.76 GiB12,631,624,5763.231bartowski
IQ2_M11.78 GiB12,649,773,9523.236bartowski
Q2_K_L12.08 GiB12,972,936,0643.319bartowski
IQ3_XXS12.09 GiB12,981,709,6963.321bartowski
I1-IQ3_XS12.17 GiB13,072,370,9763.344mradermacher
Q3_K_S12.82 GiB13,761,358,8803.520mradermacher
I1-IQ3_S12.82 GiB13,761,359,1363.520mradermacher
I1-Q3_K_S12.82 GiB13,761,359,1363.520mradermacher
IQ3_XS12.89 GiB13,841,353,6003.541bartowski
Q3_K_S13.34 GiB14,329,064,3203.666bartowski
I1-IQ3_M13.43 GiB14,424,499,4883.690mradermacher
IQ3_M14.09 GiB15,129,830,2723.870bartowski
Q3_K_M14.24 GiB15,287,110,6883.911mradermacher
I1-Q3_K_M14.24 GiB15,287,110,9443.911mradermacher
Q3_K_M14.82 GiB15,918,123,9044.072bartowski
Q3_K_L15.49 GiB16,628,272,1604.254mradermacher
I1-Q3_K_L15.49 GiB16,628,272,4164.254mradermacher
I1-IQ4_XS15.59 GiB16,735,792,4164.281mradermacher
Q3_K_L15.66 GiB16,810,625,9204.300bartowski
IQ4_XS15.70 GiB16,862,235,6804.314mradermacher
IQ4_XS15.98 GiB17,155,894,1444.389bartowski
I1-Q4_016.49 GiB17,701,580,0644.528mradermacher
Q4_K_S16.54 GiB17,763,167,2644.544mradermacher
I1-Q4_K_S16.54 GiB17,763,167,5204.544mradermacher
IQ4_NL16.79 GiB18,025,687,9364.611bartowski
Q4_016.83 GiB18,076,265,3444.624bartowski
Q4_K_S16.95 GiB18,195,655,5524.655bartowski

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.38 GiB. The real file is 17.40 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 Gemma4-Gutenberg-31B need?
Q4_K_M is exactly 18,687,065,120 bytes (17.40 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Gemma4-Gutenberg-31B'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 Gemma4-Gutenberg-31B 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.