Model comparison

LFM2-350M vs SmolLM2-135M-Instruct

At Q4_K_M, SmolLM2-135M-Instruct is the smaller download — 105,454,144 bytes against 229,309,152. At long context the gap widens: SmolLM2-135M-Instruct's KV cache at 32K is 1.4× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

LFM2-350MSmolLM2-135M-Instruct
Parameters354M135M
Architecturelfm2llama
Layers1630
Native context128,0008,192
Mixture of expertsnono
Quantizations published1941
Smallest quantization0.15 GiB0.08 GiB
Q4_K_M0.21 GiB0.10 GiB
Licenceotherapache-2.0

KV cache by context

the term that decides long-context viability
ContextLFM2-350MSmolLM2-135M-InstructRatio
4,0960.13 GiB0.09 GiB1.42×
8,1920.25 GiB0.18 GiB1.42×
16,3840.50 GiB0.35 GiB1.42×
32,7681.00 GiB0.70 GiB1.42×
65,5362.00 GiB1.41 GiB1.42×
131,0724.00 GiB2.81 GiB1.42×