google · vision language

medgemma-27b-it

google/medgemma-27b-it

medgemma-27b-it at Q4_K_M is exactly 16,546,689,536 bytes (15.41 GiB / 16.55 GB) — an effective 4.590 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/medgemma-27b-it)
Parameters
28.8B
Architecture
gemma3
62 layers
Context
131,072
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S5.83 GiB6,264,248,6081.738mradermacher
UD-IQ1_S6.06 GiB6,506,340,2881.805unsloth
I1-IQ1_M6.33 GiB6,797,246,7521.885mradermacher
UD-IQ1_M6.51 GiB6,986,739,6481.938unsloth
I1-IQ2_XXS7.16 GiB7,685,576,9922.132mradermacher
UD-IQ2_XXS7.31 GiB7,850,254,2722.177unsloth
IQ2_XS7.86 GiB8,438,904,7042.341bartowski
I1-IQ2_XS7.86 GiB8,438,905,1202.341mradermacher
IQ2_S8.18 GiB8,782,409,6002.436bartowski
I1-IQ2_S8.18 GiB8,782,410,0162.436mradermacher
IQ2_M8.84 GiB9,493,073,7922.633bartowski
I1-IQ2_M8.84 GiB9,493,074,2082.633mradermacher
UD-IQ2_M8.96 GiB9,624,506,3042.670unsloth
I1-Q2_K_S9.09 GiB9,757,447,0722.707mradermacher
Q2_K9.78 GiB10,503,721,4722.913bartowski
Q2_K_L9.78 GiB10,503,721,5362.913unsloth
Q2_K9.78 GiB10,503,721,5362.913unsloth
I1-Q2_K9.78 GiB10,503,721,8882.913mradermacher
IQ3_XXS9.98 GiB10,716,479,3602.973bartowski
I1-IQ3_XXS9.98 GiB10,716,479,7762.973mradermacher
UD-IQ3_XXS10.07 GiB10,810,021,8242.998unsloth
Q2_K_L10.10 GiB10,845,116,2883.008bartowski
IQ3_XS10.77 GiB11,562,234,3683.207bartowski
I1-IQ3_XS10.77 GiB11,562,234,7843.207mradermacher
Q3_K_S11.33 GiB12,167,614,9763.375bartowski
Q3_K_S11.33 GiB12,167,615,0403.375unsloth
I1-IQ3_S11.33 GiB12,167,615,3923.375mradermacher
I1-Q3_K_S11.33 GiB12,167,615,3923.375mradermacher
IQ3_M11.69 GiB12,547,074,5603.480bartowski
I1-IQ3_M11.69 GiB12,547,074,9763.480mradermacher
Q3_K_M12.51 GiB13,437,641,2163.727bartowski
Q3_K_M12.51 GiB13,437,641,2803.727unsloth
I1-Q3_K_M12.51 GiB13,437,641,6323.727mradermacher
Q3_K_L13.54 GiB14,543,462,9124.034bartowski
I1-Q3_K_L13.54 GiB14,543,463,3284.034mradermacher
IQ4_XS13.75 GiB14,767,448,5764.096bartowski
IQ4_XS13.75 GiB14,767,448,6404.096unsloth
I1-IQ4_XS13.75 GiB14,767,448,9924.096mradermacher
IQ4_NL14.50 GiB15,567,397,3764.318bartowski
IQ4_NL14.50 GiB15,567,397,4404.318unsloth

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 15.11 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/medgemma-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 medgemma-27b-it need?
Q4_K_M is exactly 16,546,689,536 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 medgemma-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 medgemma-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.