Model comparison
granite-20b-code-base-8k vs gemma-4-E4B-it
At Q4_K_M, gemma-4-E4B-it is the smaller download — 4,977,171,584 bytes against 12,820,207,360.
From the file· summed bytes, KV per layer
Side by side
| granite-20b-code-base-8k | gemma-4-E4B-it | |
|---|---|---|
| Parameters | 20.1B | 8.0B |
| Architecture | starcoder | gemma4 |
| Layers | 52 | 42 |
| Native context | — | 131,072 |
| Mixture of experts | no | no |
| Quantizations published | 36 | 36 |
| Smallest quantization | 4.21 GiB | 3.30 GiB |
| Q4_K_M | 11.94 GiB | 4.64 GiB |
| Licence | apache-2.0 | apache-2.0 |
KV cache by context
the term that decides long-context viability
| Context | granite-20b-code-base-8k | gemma-4-E4B-it | Ratio |
|---|---|---|---|
| 4,096 | — | 0.12 GiB | — |
| 8,192 | — | 0.18 GiB | — |
| 16,384 | — | 0.29 GiB | — |
| 32,768 | — | 0.51 GiB | — |
| 65,536 | — | 0.94 GiB | — |
| 131,072 | — | 1.82 GiB | — |