Model comparison

Phi-3-mini-4k-instruct vs gemma-4-E4B-it

At Q4_K_M, gemma-4-E4B-it is the smaller download — 4,977,171,584 bytes against 8,404,011,936.

From the file· summed bytes, KV per layer

Side by side

Phi-3-mini-4k-instructgemma-4-E4B-it
Parameters3.8B8.0B
Architecturellamagemma4
Layers3242
Native context4,096131,072
Mixture of expertsnono
Quantizations published3636
Smallest quantization3.91 GiB3.30 GiB
Q4_K_M7.83 GiB4.64 GiB
Licencemitapache-2.0

KV cache by context

the term that decides long-context viability
ContextPhi-3-mini-4k-instructgemma-4-E4B-itRatio
4,0960.12 GiB
8,1920.18 GiB
16,3840.29 GiB
32,7680.51 GiB
65,5360.94 GiB
131,0721.82 GiB