LFM2.5 8B-A1B VRAM requirements
LFM2.5 8B-A1B has 8.5B parameters, of which about 1.5B are used per token; all 32 experts still have to be in memory. With an 8K-token context and one request it needs about 5.85 GB of GPU memory at Q4_K_M, 9.28 GB at FP8 and 18.0 GB at FP16/BF16. The published weights take 15.8 GB (BF16). The smallest setup here that holds it at Q4_K_M with an 8K context is the RTX 4060 8GB; on one 24 GB RTX 3090 / 4090 it runs with its full 128,000-token context.
5.85 GB at Q4_K_M, 8K context, one request
- FP8
- 9.28 GB
- FP16 / BF16
- 18.0 GB
- Published weights
- 15.8 GB
- Smallest setup, Q4_K_M
- RTX 4060 8GB
Worked example: LFM2.5 8B-A1B with 32K tokens
Inputs: LFM2.5 8B-A1B · Q4_K_M weights · 32,768 tokens of context · one request · FP16 KV cache
- Weights (8.5B at Q4_K_M)
- 4.77 GB
- KV cache (12 KB per token)
- 384 MB
- Buffers and runtime (0.5 GB + 10%)
- 1.01 GB
- Total
- 6.16 GB
The smallest setup here that holds it is the RTX 4060 8GB, with about 1.84 GB to spare. Change the inputs in the calculator
What makes LFM2.5 8B-A1B's memory use different
18 of its 24 layers keep a fixed-size short-convolution state, so the cache grows by 12 KB per token where caching every layer would take 48 KB.
Per token of context it adds 12 KB of FP16 cache; Qwen3 8B (8.2B), the nearest-sized model here with plain full attention, adds 144 KB, so LFM2.5 8B-A1B needs 8% as much.
As a mixture-of-experts model it reads about 865 MB of its 4.77 GB Q4_K_M weights per generated token (18%), so it writes like a much smaller model while needing memory for all of them.
How much VRAM does LFM2.5 8B-A1B need?
LFM2.5 8B-A1B needs 5.85 GB at Q4_K_M, 9.82 GB at Q8_0 and 18.0 GB at FP16 with 8,192 tokens of context and one request. Each total below is the weights plus the FP16 KV cache and the runtime overhead (0.5 GB plus 10%), and each row opens the calculator with that setting. What the GGUF names mean.
| Precision | Weights | Total | Smallest setup |
|---|---|---|---|
| As published (BF16) | 15.8 GB | 18.0 GB | RTX 3090 (24 GB) |
| FP16 / BF16 | 15.8 GB | 18.0 GB | RTX 3090 (24 GB) |
| FP8 / INT8 | 7.89 GB | 9.28 GB | RTX 3060 12GB |
| INT4 (AWQ / GPTQ) | 4.19 GB | 5.21 GB | RTX 4060 8GB |
| GGUF Q8_0 | 8.38 GB | 9.82 GB | RTX 3060 12GB |
| GGUF Q6_K | 6.47 GB | 7.72 GB | RTX 4060 8GB |
| GGUF Q5_K_M | 5.59 GB | 6.75 GB | RTX 4060 8GB |
| GGUF Q4_K_M | 4.77 GB | 5.85 GB | RTX 4060 8GB |
| GGUF IQ4_XS | 4.29 GB | 5.32 GB | RTX 4060 8GB |
| GGUF Q3_K_M | 3.85 GB | 4.84 GB | RTX 4060 8GB |
| GGUF IQ3_XXS | 3.25 GB | 4.18 GB | RTX 4060 8GB |
| GGUF Q2_K | 3.30 GB | 4.24 GB | RTX 4060 8GB |
Fine-tuning LFM2.5 8B-A1B? LFM2.5 8B-A1B VRAM for LoRA, QLoRA and full training.
Run LFM2.5 8B-A1B with llama.cpp
llama-server -hf unsloth/LFM2.5-8B-A1B-GGUF:Q4_K_M -c 128000 -ngl 99 LFM2.5-8B-A1B-UD-Q4_K_M.gguf, 5.3 GB, from unsloth/
LFM2.5 8B-A1B at 8K, 32K and 128,000 (full) tokens of context
6 of its 24 layers use full attention and 18 are short-convolution layers with no growing cache. Each extra token of context adds 12 KB of FP16 cache per request. The last column is the smallest setup here, one card or a group, that holds it at Q4_K_M. How the KV cache works.
| Context | KV cache, FP16 | Total at Q4_K_M | Total at Q8_0 | Smallest setup, Q4_K_M |
|---|---|---|---|---|
| 8K tokens | 96 MB | 5.85 GB | 9.82 GB | RTX 4060 8GB |
| 32K tokens | 384 MB | 6.16 GB | 10.1 GB | RTX 4060 8GB |
| 128,000 tokens | 1.46 GB | 7.36 GB | 11.3 GB | RTX 4060 8GB |
How fast LFM2.5 8B-A1B writes
Tokens per second for one request with 8,192 tokens of context, estimated from memory bandwidth and the parameters read per token. A dash means it does not fit on one card. Try other settings in the speed calculator.
| Hardware | Bandwidth | Q4_K_M | FP8 |
|---|---|---|---|
| RTX 3060 12GB | 360 GB/s | 92–164 | 61–106 |
| RTX 4090 | 1,008 GB/s | 207–400 | 147–272 |
| RTX 5090 | 1,792 GB/s | 296–615 | 223–437 |
| M4 Max Mac (128 GB) | 546 GB/s | 131–238 | 89–157 |
| M3 Ultra Mac Studio (512 GB) | 819 GB/s | 178–338 | 125–227 |
| H100 SXM | 3,350 GB/s | 399–908 | 323–687 |
| H200 | 4,800 GB/s | 455–1,087 | 383–857 |
Longest context on one GPU
How many tokens of context LFM2.5 8B-A1B fits on a single card with one request, an FP16 KV cache and 0.5 GB left free. "Full" means the model's whole context window fits.
| GPU | Memory | Q4_K_M | Q8_0 | FP8 |
|---|---|---|---|---|
| RTX 3060 | 12 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| RTX 4060 Ti 16GB | 16 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| RTX 3090 / 4090 | 24 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| RTX 5090 | 32 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| A100 40GB | 40 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| Mac, 64 GB unified memory | 48 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| L40S / RTX 6000 Ada | 48 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| A100 / H100 80GB | 80 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| Mac, 128 GB unified memory | 96 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| H200 | 141 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
| B200 | 180 GB | 128,000 (full) | 128,000 (full) | 128,000 (full) |
Model details
- Parameters
- 8.5B (8,467,856,832)
- Experts
- 32 routed experts, all loaded
- Active per token
- 1.5B
- Layers
- 6 of its 24 layers use full attention and 18 are short-convolution layers with no growing cache
- Attention cache
- 8 KV heads × 64
- Context length
- 128,000 tokens
- Published weights
- 15.8 GB (BF16)
- On Hugging Face
- LiquidAI/
LFM2.5-8B-A1B
Why this estimate looks this way
At Q4_K_M and an 8K-token context, LFM2.5 8B-A1B uses 4.77 GB for weights, 96 MB for its FP16 KV cache and 1,010 MB for estimated runtime overhead, totaling 5.85 GB. The overhead is a 0.5 GB base plus 10% of weights and cache.
This is a mixture-of-experts model: all 32 experts contribute to the 8.5B parameters held in memory, even though only about 1.5B parameters run per token. Using only active parameters would understate VRAM.
Its attention layout matters for long context: 6 of its 24 layers use full attention and 18 are short-convolution layers with no growing cache. The FP16 cache grows by about 12 KB per additional token per request.
The architecture and published checkpoint size come from the model's config.json and weight files. These are estimates rather than measured peak memory; inference engines can reserve extra buffers or preallocate the full configured cache.
LFM2.5 8B-A1B next to similar-sized models
The three models here closest to it in parameter count, at Q4_K_M with 8,192 tokens of context.
| Model | Parameters | Total | KV per token | Smallest setup |
|---|---|---|---|---|
| LFM2.5 8B-A1B | 8.5B, 1.5B active | 5.85 GB | 12 KB | RTX 4060 8GB |
| Qwen3 8B | 8.2B | 6.81 GB | 144 KB | RTX 4060 8GB |
| Llama 3.1 8B | 8.0B | 6.58 GB | 128 KB | RTX 4060 8GB |
| Gemma 4 E4B | 8.0B | 5.64 GB | 16 KB | RTX 4060 8GB |
Badge for your model card
Paste it into a Hugging Face or GitHub README; it shows the Q4_K_M total above and links to this page. Q8_0 and FP16 badges.
Numbers read from the model files on Hugging Face on . Compare it with other models in the reproducible model and GPU report.