Model comparison
medgemma-4b-it vs gemma-4-E2B-it
At Q4_K_M, medgemma-4b-it is the smaller download — 2,489,893,664 bytes against 3,106,738,272. At long context the gap widens: gemma-4-E2B-it's KV cache at 32K is 3.2× smaller, which usually matters more than the difference in weights.
From the file· summed bytes, KV per layer
Side by side
| medgemma-4b-it | gemma-4-E2B-it | |
|---|---|---|
| Parameters | 4.3B | 5.1B |
| Architecture | gemma3 | gemma4 |
| Layers | 34 | 35 |
| Native context | 131,072 | 131,072 |
| Mixture of experts | no | no |
| Quantizations published | 46 | 54 |
| Smallest quantization | 1.10 GiB | 2.13 GiB |
| Q4_K_M | 2.32 GiB | 2.89 GiB |
| Licence | other | apache-2.0 |
KV cache by context
the term that decides long-context viability
| Context | medgemma-4b-it | gemma-4-E2B-it | Ratio |
|---|---|---|---|
| 4,096 | 0.25 GiB | 0.05 GiB | 4.54× |
| 8,192 | 0.33 GiB | 0.08 GiB | 3.98× |
| 16,384 | 0.48 GiB | 0.14 GiB | 3.53× |
| 32,768 | 0.79 GiB | 0.25 GiB | 3.23× |
| 65,536 | 1.42 GiB | 0.46 GiB | 3.05× |
| 131,072 | 2.67 GiB | 0.90 GiB | 2.96× |