Model comparison

LFM2-2.6B vs Llama-3.1-8B-Instruct

At Q4_K_M, LFM2-2.6B is the smaller download — 1,563,668,704 bytes against 4,920,739,168. At long context the gap widens: LFM2-2.6B's KV cache at 32K is 8.0× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

LFM2-2.6BLlama-3.1-8B-Instruct
Parameters2.6B8.0B
Architecturelfm2llama
Layers3032
Native context128,000131,072
Mixture of expertsnono
Quantizations published3045
Smallest quantization1.05 GiB2.02 GiB
Q4_K_M1.46 GiB4.58 GiB
Licenceotherllama3.1

KV cache by context

the term that decides long-context viability
ContextLFM2-2.6BLlama-3.1-8B-InstructRatio
4,0960.06 GiB0.50 GiB7.99×
8,1920.13 GiB1.00 GiB8.00×
16,3840.25 GiB2.00 GiB8.00×
32,7680.50 GiB4.00 GiB8.00×
65,5361.00 GiB8.00 GiB8.00×
131,0722.00 GiB16.00 GiB8.00×