Phi-3 Mini 4K Instruct on Raspberry Pi 4 (8 GB)
Can the Raspberry Pi 4 (8 GB) run Phi-3 Mini 4K Instruct?
Barely: it runs very slowly
Very slow. At Q5_K_M it needs about 5.4 GB of 6.4 GB usable, with an estimated speed of 1.4 tok/s.
- Best quant
Q5_K_M- Generation speed
- 1.4 tok/s
- Prompt processing
- 7.9 tok/s
- First token (1K prompt)
- 130.4 s
- Largest safe context
- 4K
Best app to run it on the Raspberry Pi 4 (8 GB)
Download Phi-3 Mini 4K Instruct
Recommended for the Raspberry Pi 4 (8 GB): Q5_K_M. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run phi3:3.8b-mini-4k-instruct-q5_K_MQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf (opens in a new tab)
ollama run hf.co/microsoft/Phi-3-mini-4k-instruct-ggufOriginal weights · Hugging Face
Full-precision files from Microsoft, for fine-tuning, vLLM, Transformers.
huggingface.co/microsoft/Phi-3-mini-4k-instruct (opens in a new tab)
How 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 | 15.7 / 45 | |
|---|---|---|
| Memory fit | 25.0 / 25 | |
| Speed | 2.8 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 58.5 / 100 |
Every quantization on the Raspberry Pi 4 (8 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 4.3 GB | 6.4 GB | 2.8 tok/s | Very slow | 25Basic quality (D) · 25 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 55/100 (quality, fit, speed and memory use) sets the ranking. | |
Q3_K_M | 4.6 GB | 6.4 GB | 2.2 tok/s | Very slow | 30Basic quality (D) · 30 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 57/100 (quality, fit, speed and memory use) sets the ranking. | |
Q4_K_M | 5.1 GB | 6.4 GB | 1.7 tok/s | Very slow | 34Basic quality (D) · 34 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 58/100 (quality, fit, speed and memory use) sets the ranking. | |
Q5_K_M | 5.4 GB | 6.4 GB | 1.4 tok/s | Very slow | 34Basic quality (D) · 34 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 58/100 (quality, fit, speed and memory use) sets the ranking. | |
Q6_K | 5.9 GB | 6.4 GB | 1.2 tok/s | Very slowtight fit | 35Basic quality (D) · 35 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 57/100 (quality, fit, speed and memory use) sets the ranking. | |
Q8_0 | 6.8 GB | 6.4 GB | 0.7 tok/s | Very slowover memory limit | 36Basic quality (D) · 36 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 43/100 (quality, fit, speed and memory use) sets the ranking. | |
F16 | 10.4 GB | 6.4 GB | — | Won't run | 36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 4/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 4K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
AMD Radeon RX 9070 XT
-
36Basic quality (D) · 36 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4060
-
36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4070 Ti SUPER
-
36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 4080 SUPER
-
36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5070 Ti
-
36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking.
NVIDIA GeForce RTX 5080
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.