LiquidAI · text

LFM2-350M-Extract

LiquidAI/LFM2-350M-Extract

LFM2-350M-Extract at Q4_K_M is exactly 229,310,080 bytes (0.21 GiB / 0.23 GB) — an effective 5.175 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
354M
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.13 GiB142,877,2483.224bartowski
IQ3_XXS0.15 GiB158,474,8163.576bartowski
Q2_K0.15 GiB160,596,5443.624bartowski
IQ3_XS0.16 GiB175,399,4883.958bartowski
Q2_K_L0.16 GiB176,849,4723.991bartowski
Q3_K_S0.17 GiB181,150,2724.088bartowski
IQ3_M0.17 GiB183,657,0244.145bartowski
Q3_K_M0.18 GiB193,151,5524.359bartowski
Q3_K_L0.19 GiB203,047,4884.582bartowski
IQ4_XS0.20 GiB210,330,1764.747bartowski
Q4_00.20 GiB219,307,6484.949LiquidAI
IQ4_NL0.20 GiB219,308,6084.949bartowski
Q4_00.20 GiB219,898,4324.963bartowski
Q4_K_S0.21 GiB220,750,4004.982bartowski
Q4_K_M0.21 GiB229,310,0805.175LiquidAI
Q4_K_M0.21 GiB229,311,0405.175bartowski
Q4_10.22 GiB237,265,4725.355bartowski
Q4_K_L0.23 GiB245,563,9685.542bartowski
Q5_K_S0.24 GiB255,222,3365.760bartowski
Q5_K_M0.24 GiB260,374,1445.876LiquidAI
Q5_K_M0.24 GiB260,375,1045.876bartowski
Q5_K_L0.26 GiB276,628,0326.243bartowski
Q6_K0.27 GiB293,379,7126.621LiquidAI
Q6_K0.27 GiB293,380,6726.621bartowski
Q6_K_L0.29 GiB309,633,6006.988bartowski
Q8_00.35 GiB379,215,4888.558LiquidAI
Q8_00.35 GiB379,216,4488.558bartowski
F160.66 GiB711,483,00816.057LiquidAI
BF160.66 GiB711,483,68016.057bartowski

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.19 GiB. The real file is 0.21 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
16
Attention heads
16
KV heads
8
Head dim
64
Hidden size
1024
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-350M-Extract need?
Q4_K_M is exactly 229,310,080 bytes (0.21 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-350M-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-350M-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.