LFM2 24B needs ~23.1 GB VRAM. NVIDIA L40 48GB has 48.0 GB. With Q4_K_M quantization, expect ~50 tok/s.
Operating mode
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
49.5 tok/s
TTFT
3912 ms
Safe context
131K
Memory
23.1 GB / 48.0 GB
This setup is broadly balanced for this model.
No major red flags
This recommendation has enough memory headroom and acceptable estimated speed for the selected workload.
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | A | Runs well | 49.5 tok/s | 2134 ms | 131K |
| Coding | A | Runs well | 49.5 tok/s | 3912 ms | 131K |
| Agentic Coding | A | Runs well | 49.5 tok/s | 5691 ms | 131K |
| Reasoning | A | Runs well | 49.5 tok/s | 4624 ms | 131K |
| RAG | A | Runs well | 49.5 tok/s | 7113 ms | 131K |
How LFM2 24B (24B params) fits at each quantization level on NVIDIA L40 48GB (48.0 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 9.4 GB | Low | A76 |
Q3_K_S | 3 | 11.8 GB | Low | A77 |
NVFP4 | 4 | 13.4 GB | Medium | A77 |
Q4_K_M | 4 | 14.6 GB | Medium | A78 |
Q5_K_M | 5 | 17.3 GB | High | A78 |
Q6_K | 6 | 19.7 GB | High | A79 |
Q8_0Best for your GPU | 8 | 25.7 GB | Very High | A81 |
F16 | 16 | 49.2 GB | Maximum | F0 |
Copy-paste commands to run LFM2 24B on your machine.
Run
ollama run lfm2Your hardware
| Model | Params | Grade | Decode | Capabilities |
|---|---|---|---|---|
| 30.5B | S | 101.9 tok/s | ||
| 27B | S | 44.2 tok/s | ||
| 27B | S | 44.3 tok/s | ||
| 35B | S | 91.6 tok/s | ||
| 30B | S | 105.4 tok/s |
Yes, NVIDIA L40 48GB can run LFM2 24B with a A grade (Runs well). Expected decode speed: 49.5 tok/s.
LFM2 24B (24B parameters) requires approximately 23.1 GB of memory with Q4_K_M quantization.
The recommended quantization for LFM2 24B is Q4_K_M, which balances quality and memory efficiency.
On NVIDIA L40 48GB, LFM2 24B achieves approximately 49.5 tokens per second decode speed with a time-to-first-token of 3912ms using Q4_K_M quantization.
For coding workloads, LFM2 24B on NVIDIA L40 48GB receives a A grade with 49.5 tok/s and 131K context.
On NVIDIA L40 48GB, LFM2 24B can safely use up to 131K tokens of context. The model's official context limit is 131K, but available memory constrains the safe maximum.
Paste this snippet into any page to show a live fit card.
<iframe src="https://willitrunai.com/embed/lfm2-24b-on-l40-48gb" width="400" height="180" frameborder="0" style="border:none;border-radius:12px;overflow:hidden;" title="Will It Run AI — fit result"></iframe>
Preview: