Model comparison
medgemma-27b-text-it vs gemma-4-26B-A4B-it
At Q4_K_M, medgemma-27b-text-it is the smaller download — 16,546,404,416 bytes against 16,796,017,248. At long context the gap widens: gemma-4-26B-A4B-it's KV cache at 32K is 2.0× smaller, which usually matters more than the difference in weights.
From the file· summed bytes, KV per layer
Side by side
| medgemma-27b-text-it | gemma-4-26B-A4B-it | |
|---|---|---|
| Parameters | 27.0B | 26.5B |
| Architecture | gemma3 | gemma4 |
| Layers | 62 | 30 |
| Native context | 131,072 | 262,144 |
| Mixture of experts | no | yes, 128 experts |
| Quantizations published | 24 | 46 |
| Smallest quantization | 6.06 GiB | 8.99 GiB |
| Q4_K_M | 15.41 GiB | 15.64 GiB |
| Licence | other | apache-2.0 |
KV cache by context
the term that decides long-context viability
| Context | medgemma-27b-text-it | gemma-4-26B-A4B-it | Ratio |
|---|---|---|---|
| 4,096 | 0.92 GiB | 0.45 GiB | 2.05× |
| 8,192 | 1.23 GiB | 0.61 GiB | 2.04× |
| 16,384 | 1.86 GiB | 0.92 GiB | 2.03× |
| 32,768 | 3.11 GiB | 1.54 GiB | 2.02× |
| 65,536 | 5.61 GiB | 2.79 GiB | 2.01× |
| 131,072 | 10.61 GiB | 5.29 GiB | 2.00× |