LiquidAI · text · mixture of experts

LFM2.5-8B-A1B

LiquidAI/LFM2.5-8B-A1B

LFM2.5-8B-A1B at Q4_K_M is exactly 5,155,564,768 bytes (4.80 GiB / 5.16 GB) — an effective 4.871 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
8.5B
total, not active
Architecture
lfm2moe
24 layers
Context
128,000
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_M2.40 GiB2,573,872,7362.432unsloth
UD-IQ2_XXS2.52 GiB2,701,274,7202.552unsloth
UD-IQ2_M2.57 GiB2,754,588,2562.602unsloth
UD-IQ3_XXS3.05 GiB3,272,339,0403.091unsloth
UD-IQ3_S3.33 GiB3,570,921,0563.374unsloth
UD-Q3_K_M3.67 GiB3,939,626,5923.722unsloth
UD-IQ4_XS3.97 GiB4,264,996,4484.029unsloth
UD-IQ4_NL4.06 GiB4,358,844,0004.118unsloth
Q4_04.51 GiB4,844,678,3684.577256LiquidAI
UD-Q4_K_S4.67 GiB5,013,941,8564.737unsloth
Q4_K_M4.80 GiB5,155,564,7684.871256LiquidAI
UD-Q4_K_M4.96 GiB5,322,223,2005.028unsloth
UD-Q5_K_S5.59 GiB6,005,894,7525.674unsloth
Q5_K_M5.62 GiB6,030,339,2965.697256LiquidAI
UD-Q5_K_M5.92 GiB6,361,886,3046.010unsloth
Q6_K6.48 GiB6,959,787,2326.575256LiquidAI
UD-Q6_K6.60 GiB7,088,287,3286.697unsloth
Q8_08.39 GiB9,010,195,6808.512256LiquidAI
Q8_08.39 GiB9,010,196,0648.512256unsloth
BF1615.78 GiB16,947,260,64016.011LiquidAI
F1615.78 GiB16,947,260,64016.011256LiquidAI
BF1615.78 GiB16,947,260,76816.011unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.05 GiB0.19 GiB4.00×6 / 0 / 18
8,1920.09 GiB0.38 GiB4.00×6 / 0 / 18
16,3840.19 GiB0.75 GiB4.00×6 / 0 / 18
32,7680.38 GiB1.50 GiB4.00×6 / 0 / 18
65,5360.75 GiB3.00 GiB4.00×6 / 0 / 18
131,0721.50 GiB6.00 GiB4.00×6 / 0 / 18

18 of 24 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 4.0× 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 4.44 GiB. The real file is 4.80 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does LFM2.5-8B-A1B need?
Q4_K_M is exactly 5,155,564,768 bytes (4.80 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.5-8B-A1B'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.
Is LFM2.5-8B-A1B a mixture-of-experts model?
Yes — 32 experts, 4 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of LFM2.5-8B-A1B 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.