LFM2 24B-A2B on Raspberry Pi 5 (16 GB)
Can the Raspberry Pi 5 (16 GB) run LFM2 24B-A2B?
Yes, it runs well
Runs well. At Q2_K it needs about 11.4 GB of 13.6 GB usable, with an estimated speed of 12.0 tok/s.
- Best quant
Q2_K- Generation speed
- 12.0 tok/s
- Prompt processing
- 39.1 tok/s
- First token (1K prompt)
- 26.2 s
- Largest safe context
- 113K
Best app to run it on the Raspberry Pi 5 (16 GB)
On Linux on ARM boards
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run lfm2:24bDownload LFM2 24B-A2B
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run lfm2:24bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/LiquidAI/LFM2-24B-A2B-GGUF (opens in a new tab)
ollama run hf.co/LiquidAI/LFM2-24B-A2B-GGUFOriginal weights · Hugging Face
Full-precision files from Liquid AI, for fine-tuning, vLLM, Transformers.
Official repo · GitHub
Reference code, inference scripts and docs from Liquid AI. The weights themselves download from Hugging Face.
github.com/Liquid4All/cookbook (opens in a new tab)
git clone https://github.com/Liquid4All/cookbookHow it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 17.6 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 8.2 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 65.9 / 100 |
Every quantization on the Raspberry Pi 5 (16 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 11.4 GB | 13.6 GB | 12.0 tok/s | Runs well | 39Basic quality (D) · 39 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | GGUF files (opens in a new tab) |
Q3_K_M | 13.5 GB | 13.6 GB | 9.5 tok/s | Slowtight fit | 47Fair quality (C) · 47 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 67/100 (quality, fit, speed and memory use) sets the ranking. | GGUF files (opens in a new tab) |
Q4_K_M | 16.4 GB | 13.6 GB | — | Won't run | 53Fair quality (C) · 53 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 18.8 GB | 13.6 GB | — | Won't run | 54Fair quality (C) · 54 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q6_K | 21.4 GB | 13.6 GB | — | Won't run | 55Good quality (B) · 55 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q8_0 | 27.1 GB | 13.6 GB | — | Won't run | 56Good quality (B) · 56 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
F16 | 49.5 GB | 13.6 GB | — | Won't run | 56Good quality (B) · 56 of 100: how capable the model is at F16, whatever it runs on. Match score 7/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
56Good quality (B) · 56 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking.
Apple M4 Pro (48 GB)
-
55Good quality (B) · 55 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5090
-
56Good quality (B) · 56 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
Apple M1 Max (64 GB)
-
56Good quality (B) · 56 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
Apple M4 Max (64 GB)
-
54Fair quality (C) · 54 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 7900 XTX
-
54Fair quality (C) · 54 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 3090
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.