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 ↗
Real, measured generation speeds for LFM2 24B-A2B on home hardware, fastest first. Different quants/engines aren't directly comparable.
| Build | Quant | Engine | tok/s | Prompt processing (tok/s) | Cost | Source |
|---|---|---|---|---|---|---|
| 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 GB | MLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cache | oMLX v0.8.3, affine4 4-bit KV cache | 91.7 | 950 @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 GB | MLX 4-bit (LFM2-24B-A2B-MLX-4bit), 4-bit affine KV cache | oMLX v0.8.3, affine4 4-bit KV cache | 80.5 | 898 @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.
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.
| Format | Bits/weight | Weights | Smallest common memory size that holds the weights alone |
|---|---|---|---|
| Q8_0 | 8.50 | 25.5 GB | 32 GB |
| Q6_K | 6.56 | 19.7 GB | 24 GB |
| Q5_K_M | 5.70 | 17.1 GB | 24 GB |
| Q4_K_M | 4.89 | 14.7 GB | 16 GB |
| Q3_K_M | 4.00 | 12.0 GB | 12 GB |
| Q2_K | 3.16 | 9.5 GB | 12 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