LiquidAI · text

LFM2-350M

LiquidAI/LFM2-350M

LFM2-350M at Q4_K_M is exactly 229,309,152 bytes (0.21 GiB / 0.23 GB) — an effective 5.175 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 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
Q2_K_L0.15 GiB160,594,6563.624unsloth
Q2_K0.15 GiB160,594,6563.624unsloth
Q3_K_S0.17 GiB181,148,3844.088unsloth
Q3_K_M0.18 GiB193,149,6644.359unsloth
Q4_00.20 GiB219,306,7204.949unsloth
Q4_00.20 GiB219,306,9444.949LiquidAI
Q4_K_S0.21 GiB220,748,5124.982unsloth
Q4_K_M0.21 GiB229,309,1525.175unsloth
Q4_K_M0.21 GiB229,309,3765.175LiquidAI
Q4_10.22 GiB237,263,5845.355unsloth
Q5_K_S0.24 GiB255,220,4485.760unsloth
Q5_K_M0.24 GiB260,373,2165.876unsloth
Q5_K_M0.24 GiB260,373,4405.876LiquidAI
Q6_K0.27 GiB293,378,7846.621unsloth
Q6_K0.27 GiB293,379,0086.621LiquidAI
Q8_00.35 GiB379,214,5608.558unsloth
Q8_00.35 GiB379,214,7848.558LiquidAI
F160.66 GiB711,482,08016.057unsloth
F160.66 GiB711,482,30416.057LiquidAI

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.13 GiB16 / 0 / 0
8,1920.25 GiB0.25 GiB16 / 0 / 0
16,3840.50 GiB0.50 GiB16 / 0 / 0
32,7681.00 GiB1.00 GiB16 / 0 / 0
65,5362.00 GiB2.00 GiB16 / 0 / 0
131,0724.00 GiB4.00 GiB16 / 0 / 0

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 need?
Q4_K_M is exactly 229,309,152 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's KV cache?
1.00 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 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.