LiquidAI · text

LFM2-2.6B

LiquidAI/LFM2-2.6B

LFM2-2.6B at Q4_K_M is exactly 1,563,668,704 bytes (1.46 GiB / 1.56 GB) — an effective 4.869 bits per weight, not the nominal 4. Its KV cache at 32K is 0.50 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
2.6B
Architecture
lfm2
30 layers
Context
128,000
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ3_XXS1.05 GiB1,127,085,2163.509Mungert
IQ3_XS1.10 GiB1,178,236,0643.669Mungert
IQ3_S1.13 GiB1,218,245,7923.793Mungert
IQ3_M1.13 GiB1,218,245,7923.793Mungert
Q3_K_S1.25 GiB1,337,717,9204.165Mungert
Q3_K_M1.26 GiB1,355,543,7124.221Mungert
Q3_K_L1.29 GiB1,388,049,5684.322Mungert
IQ4_XS1.31 GiB1,407,022,2404.381Mungert
Q4_01.35 GiB1,448,506,5284.510Mungert
Q4_01.38 GiB1,483,108,5764.618LiquidAI
IQ4_NL1.38 GiB1,483,109,5364.618Mungert
Q4_K_S1.43 GiB1,534,358,6884.778Mungert
Q4_K_M1.46 GiB1,563,668,7044.869LiquidAI
Q4_K_M1.47 GiB1,579,922,5924.919Mungert
Q4_11.50 GiB1,609,069,7285.010Mungert
Q4_K_L1.50 GiB1,612,428,4485.021Mungert
Q5_01.65 GiB1,769,632,9285.510Mungert
Q5_K_M1.70 GiB1,828,958,4325.695LiquidAI
Q5_K_S1.72 GiB1,841,493,1525.734Mungert
Q5_K_M1.74 GiB1,865,168,0325.808Mungert
Q5_K_L1.77 GiB1,897,673,8885.909Mungert
Q5_11.80 GiB1,930,196,1286.010Mungert
Q6_K1.97 GiB2,110,828,7686.572LiquidAI
Q6_K_M1.97 GiB2,110,829,7286.572Mungert
Q6_K_L2.00 GiB2,143,335,5846.674Mungert
Q8_02.55 GiB2,733,011,1688.510LiquidAI
Q8_02.55 GiB2,733,011,8088.510Mungert
F164.79 GiB5,141,459,16816.009LiquidAI
F164.79 GiB5,141,459,80816.009Mungert
BF164.79 GiB5,141,459,80816.009Mungert

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.06 GiB0.23 GiB3.75×8 / 0 / 22
8,1920.13 GiB0.47 GiB3.75×8 / 0 / 22
16,3840.25 GiB0.94 GiB3.75×8 / 0 / 22
32,7680.50 GiB1.88 GiB3.75×8 / 0 / 22
65,5361.00 GiB3.75 GiB3.75×8 / 0 / 22
131,0722.00 GiB7.50 GiB3.75×8 / 0 / 22

22 of 30 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 3.8× at long context.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 1.35 GiB. The real file is 1.46 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
30
Attention heads
32
KV heads
8
Head dim
64
Hidden size
2048
Vocab
65,536
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does LFM2-2.6B need?
Q4_K_M is exactly 1,563,668,704 bytes (1.46 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is LFM2-2.6B's KV cache?
0.50 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of LFM2-2.6B should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.