More
Submit build

Models / LFM2 24B-A2B

Best home rig for LFM2 24B-A2B

Quick answer

How much VRAM does LFM2 24B-A2B need?
The weights are about 14.7 GB at Q4_K_M (24B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is Apple M2 Max (32 GB) at 91.7 tok/s.

What is the fastest measured hardware for LFM2 24B-A2B?
Apple M2 Max: 91.7 tok/s generation (oMLX v0.8.3, affine4 4-bit KV cache, MLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cache), from https://omlx.ai/benchmarks/performance/9f3w9xj3.

Last updated:

Legacy model24B total · 2.3B active2 measured resultsfastest plain decode: 91.7 tok/s model info ↗

Newer model available: LFM2.5 24B-A2B. LFM2 24B-A2B is a legacy model; its numbers stay here for reference. Liquid AI's model card lists LFM2.5-24B-A2B as the new version. source ↗

Real, measured generation speeds for LFM2 24B-A2B on home hardware, fastest first. Different quants/engines aren't directly comparable.

BuildQuantEnginetok/sPrompt processing (tok/s)CostSource
Apple M2 Max 30-core 32GB (oMLX, MLX 4-bit): Liquid AI LFM2 24B-A2B at 91.7 tok/s with 16k context, 80.5 at 32k, in 14 GBMLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cacheoMLX v0.8.3, affine4 4-bit KV cache91.7950 @16k · est. TTFT @8k ≈8.6 s*omlx.ai ↗
Apple M2 Max 30-core 32GB (oMLX, MLX 4-bit): Liquid AI LFM2 24B-A2B at 91.7 tok/s with 16k context, 80.5 at 32k, in 14 GBMLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cacheoMLX v0.8.3, affine4 4-bit KV cache80.5898 @32k · est. TTFT @8k ≈9.1 s*omlx.ai ↗

Prompt processing = prefill speed reported by the source, @ prompt length. * est. TTFT @8k is calculated from measured prefill, not measured. Why it matters.

Rent before you buy: try this model on a cloud GPU for a few dollars first: Runpod (referral link; sign up with Google to get the new-user bonus)

Memory math: how much VRAM / RAM does LFM2 24B-A2B need?

LFM2 24B-A2B has 24B parameters, about 2.3B active per token (source: Liquid AI model card: 24B total / 2.3B active MoE, 40 layers (30 conv + 10 attention), 32,768-token context, LFM Open License v1.0; the card points to LFM2.5-24B-A2B as the newer version). Weight size = parameters × bits-per-weight ÷ 8, before context (KV cache) and runtime overhead.

FormatBits/weightWeightsSmallest common memory size that holds the weights alone
Q8_08.5025.5 GB32 GB
Q6_K6.5619.7 GB24 GB
Q5_K_M5.7017.1 GB24 GB
Q4_K_M4.8914.7 GB16 GB
Q3_K_M4.0012.0 GB12 GB
Q2_K3.169.5 GB12 GB

Bits-per-weight for GGUF quants are llama.cpp's own figures (llama.cpp quantize README). "As measured" rows apply the source's stated bits-per-weight to the parameter count; real files differ slightly because some layers stay at higher precision. Try other combinations in the VRAM calculator.

Why it can still run on smaller GPUs: it is a mixture-of-experts model, so only about 2.3B of its 24B parameters are used for each generated token. Runtimes such as llama.cpp (--n-cpu-moe), ExLlamaV3 or Project Maya can keep most expert weights in system RAM and only the shared layers and hot experts in VRAM. Then you need VRAM + system RAM ≥ weights, and speed is limited mainly by RAM bandwidth.

FAQ

How much VRAM does LFM2 24B-A2B need?

The weights are about 14.7 GB at Q4_K_M (24B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is Apple M2 Max (32 GB) at 91.7 tok/s.

What is the fastest measured hardware for LFM2 24B-A2B?

Apple M2 Max: 91.7 tok/s generation (oMLX v0.8.3, affine4 4-bit KV cache, MLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cache), from https://omlx.ai/benchmarks/performance/9f3w9xj3.

Related: what GPU do you need for 2026 models · all builds