LiquidAI · text

LFM2-1.2B-Extract

LiquidAI/LFM2-1.2B-Extract

LFM2-1.2B-Extract at Q4_K_M is exactly 730,894,048 bytes (0.68 GiB / 0.73 GB) — an effective 4.996 bits per weight, not the nominal 4. Its KV cache at 32K is 0.38 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M0.40 GiB434,131,5202.968bartowski
Q2_K0.45 GiB483,398,2083.304bartowski
IQ3_XXS0.46 GiB490,984,0003.356bartowski
Q2_K_L0.48 GiB515,904,0643.526bartowski
IQ3_XS0.50 GiB537,809,4723.676bartowski
Q3_K_S0.52 GiB558,158,4003.815bartowski
IQ3_M0.53 GiB566,792,7683.874bartowski
Q3_K_M0.56 GiB600,347,2004.104bartowski
Q3_K_L0.59 GiB635,474,4964.344bartowski
IQ4_XS0.62 GiB663,376,4484.535bartowski
Q4_00.65 GiB695,750,3684.756LiquidAI
IQ4_NL0.65 GiB695,751,2324.756bartowski
Q4_00.65 GiB697,848,3844.770bartowski
Q4_K_S0.65 GiB700,469,8244.788bartowski
Q4_K_M0.68 GiB730,894,0484.996LiquidAI
Q4_K_M0.68 GiB730,894,9124.996bartowski
Q4_10.71 GiB760,500,8005.199bartowski
Q4_K_L0.71 GiB763,400,7685.218bartowski
Q5_K_S0.77 GiB825,250,3685.641bartowski
Q5_K_M0.79 GiB843,353,8245.765LiquidAI
Q5_K_M0.79 GiB843,354,6885.765bartowski
Q5_K_L0.82 GiB875,860,5445.987bartowski
Q6_K0.90 GiB962,842,3366.582LiquidAI
Q6_K0.90 GiB962,843,2006.582bartowski
Q6_K_L0.93 GiB995,349,0566.804bartowski
Q8_01.16 GiB1,246,252,7688.519LiquidAI
Q8_01.16 GiB1,246,253,6328.519bartowski
F162.18 GiB2,343,325,40816.018LiquidAI
BF162.18 GiB2,343,325,98416.018bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.05 GiB0.13 GiB2.67×6 / 0 / 10
8,1920.09 GiB0.25 GiB2.67×6 / 0 / 10
16,3840.19 GiB0.50 GiB2.67×6 / 0 / 10
32,7680.38 GiB1.00 GiB2.67×6 / 0 / 10
65,5360.75 GiB2.00 GiB2.67×6 / 0 / 10
131,0721.50 GiB4.00 GiB2.67×6 / 0 / 10

10 of 16 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 2.7× 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 0.61 GiB. The real file is 0.68 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
16
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-1.2B-Extract need?
Q4_K_M is exactly 730,894,048 bytes (0.68 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-1.2B-Extract's KV cache?
0.38 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-1.2B-Extract 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.