Model comparison

medgemma-27b-it vs gemma-4-12B-it

At Q4_K_M, gemma-4-12B-it is the smaller download — 7,121,861,440 bytes against 16,546,689,536. At long context the gap widens: gemma-4-12B-it's KV cache at 32K is 1.3× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

medgemma-27b-itgemma-4-12B-it
Parameters28.8B12.0B
Architecturegemma3gemma4
Layers6248
Native context131,072262,144
Mixture of expertsnono
Quantizations published6859
Smallest quantization5.83 GiB3.92 GiB
Q4_K_M15.41 GiB6.63 GiB
Licenceotherapache-2.0

KV cache by context

the term that decides long-context viability
Contextmedgemma-27b-itgemma-4-12B-itRatio
4,0960.92 GiB0.72 GiB1.28×
8,1921.23 GiB0.97 GiB1.27×
16,3841.86 GiB1.47 GiB1.27×
32,7683.11 GiB2.47 GiB1.26×
65,5365.61 GiB4.47 GiB1.26×
131,07210.61 GiB8.47 GiB1.25×
medgemma-27b-it vs gemma-4-12B-it — size, memory and hardware fit — ossmodeldb