Model comparison

LFM2-24B-A2B vs gemma-4-12B-it-qat-q4_0-unquantized

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: LFM2-24B-A2B's KV cache at 32K is 3.9× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

LFM2-24B-A2Bgemma-4-12B-it-qat-q4_0-unquantized
Parameters23.8B12.0B
Architecturelfm2moegemma4
Layers4048
Native context128,000262,144
Mixture of expertsyes, 64 expertsno
Quantizations published332
Smallest quantization5.35 GiB6.50 GiB
Q4_K_M13.43 GiB
Licenceotherapache-2.0

KV cache by context

the term that decides long-context viability
ContextLFM2-24B-A2Bgemma-4-12B-it-qat-q4_0-unquantizedRatio
4,0960.08 GiB0.72 GiB9.19×
8,1920.16 GiB0.97 GiB6.20×
16,3840.31 GiB1.47 GiB4.70×
32,7680.63 GiB2.47 GiB3.95×
65,5361.25 GiB4.47 GiB3.57×
131,0722.50 GiB8.47 GiB3.39×