google · text

gemma-3-27b-it

google/gemma-3-27b-it

gemma-3-27b-it at Q4_K_M is exactly 16,546,404,736 bytes (15.41 GiB / 16.55 GB) — an effective 4.825 bits per weight, not the nominal 4. Its KV cache at 32K is 3.11 GiB, not the 15.50 GiB a flat formula predicts.

From the file· summed from 1 file(s)From the file· KV from mirror (mirror:unsloth/gemma-3-27b-it)
Parameters
27.4B
Architecture
gemma3
62 layers
Context
131,072
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S6.06 GiB6,506,339,4241.897unsloth
UD-IQ1_M6.51 GiB6,986,738,7842.038unsloth
UD-IQ2_XXS7.31 GiB7,850,253,4082.289unsloth
IQ2_XS7.86 GiB8,438,665,8562.461bartowski
IQ2_S8.18 GiB8,782,170,7522.561bartowski
IQ2_M8.84 GiB9,492,834,9442.768bartowski
UD-IQ2_M8.96 GiB9,624,505,4402.807unsloth
Q2_K9.78 GiB10,503,436,9283.063bartowski
Q2_K_L9.78 GiB10,503,720,6723.063unsloth
Q2_K9.78 GiB10,503,720,6723.063unsloth
IQ3_XXS9.98 GiB10,716,240,5123.125bartowski
UD-IQ3_XXS10.07 GiB10,810,020,9603.152unsloth
Q2_K_L10.10 GiB10,844,748,4163.163bartowski
IQ3_XS10.77 GiB11,561,949,8243.372bartowski
Q3_K_S11.33 GiB12,167,330,4323.548bartowski
Q3_K_S11.33 GiB12,167,614,1763.548unsloth
IQ3_M11.69 GiB12,546,790,0163.659bartowski
Q3_K_M12.51 GiB13,437,356,6723.919808bartowski
Q3_K_M12.51 GiB13,437,640,4163.919unsloth
Q3_K_L13.54 GiB14,543,178,3684.241bartowski
IQ4_XS13.75 GiB14,767,164,0324.306808bartowski
IQ4_XS13.75 GiB14,767,447,7764.307808unsloth
IQ4_NL14.50 GiB15,567,112,8324.540bartowski
IQ4_NL14.50 GiB15,567,396,5764.540unsloth
Q4_014.55 GiB15,617,690,2404.554808bartowski
Q4_014.55 GiB15,617,973,9844.555808unsloth
Q4_K_S14.60 GiB15,673,772,6724.571bartowski
Q4_K_S14.60 GiB15,674,056,4164.571unsloth
Q4_K_M15.41 GiB16,546,404,7364.825808ggml-org
Q4_K_M15.41 GiB16,546,404,9924.825808bartowski
Q4_K_M15.41 GiB16,546,688,7364.825unsloth
Q4_K_L15.73 GiB16,887,716,4804.925bartowski
Q4_115.99 GiB17,167,010,4325.006bartowski
Q4_115.99 GiB17,167,294,1765.006unsloth
Q5_K_S17.48 GiB18,766,908,0325.473bartowski
Q5_K_S17.48 GiB18,767,191,7765.473unsloth
Q5_K_M17.95 GiB19,271,391,8725.620808bartowski
Q5_K_M17.95 GiB19,271,675,6165.620808unsloth
Q5_K_L18.27 GiB19,612,703,3605.720bartowski
Q6_K20.64 GiB22,166,690,4326.464808bartowski

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.92 GiB1.94 GiB2.10×10 / 52 / 0
8,1921.23 GiB3.88 GiB3.14×10 / 52 / 0
16,3841.86 GiB7.75 GiB4.17×10 / 52 / 0
32,7683.11 GiB15.50 GiB4.98×10 / 52 / 0
65,5365.61 GiB31.00 GiB5.53×10 / 52 / 0
131,07210.61 GiB62.00 GiB5.84×10 / 52 / 0

52 of 62 layers cache only a 1,024-token window rather than the full context, on a period of 6. 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 14.37 GiB. The real file is 15.41 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 15.50 GiB at 32K context where the real figure is 3.11 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from mirror:unsloth/gemma-3-27b-it
Layers
62
Attention heads
32
KV heads
16
Head dim
128
Hidden size
5376
Vocab
262,208
Sliding window
1024
SWA period
6
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does gemma-3-27b-it need?
Q4_K_M is exactly 16,546,404,736 bytes (15.41 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-3-27b-it's KV cache?
3.11 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-3-27b-it 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.