Phi-4 14B
14.7B parameters · 16k context · mit · released 2024-12-11
chatreasoning
In short
The cheapest hardware in Germany that runs Phi-4 14B fully in memory at 32k context is the AMD Radeon RX 7900 XT, 999 € at Amazon, at about 24 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Germany today
AMD Radeon RX 7900 XT, new at Amazon
Runs Phi-4 14B at Q6_K fully in memory at 32k context, about 24 tok/sest.
999 €
In stock, checked
What to run it on in Germany
Fully in memory at 32k context, priced at retailers today.
Cheapest
AMD Radeon RX 7900 XT24tok/sest.Q6_K
999 €
Best value
AMD Radeon RX 7900 XT24tok/sest.Q6_K
999 €
Fastest
NVIDIA GeForce RTX 509050tok/sest.Q8_0
6.888 €
Mac
Mac Studio M4 Max 64GB16tok/sest.Q8_0
4.299 €
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| NVIDIA Tesla P40 | Q8_0 | fits | 10 tok/s | 389 € | 24.7 |
| AMD Radeon RX 7900 XT | Q6_K | fits | 24 tok/s | 999 € | 23.5 |
| Intel Arc Pro B60 | Q8_0 | fits | 10 tok/s | 1.184 € | 8.6 |
| Mac mini M4 32GB | Q6_K | fits | 4 tok/s | 1.330 € | 3.2 |
| AMD Radeon RX 7900 XTX | Q8_0 | fits | 24 tok/s | 1.555 € | 15.2 |
| Intel Arc Pro B70 | Q8_0 | fits | 14 tok/s | 1.749 € | 7.8 |
| AMD Radeon AI PRO R9700 | Q8_0 | fits | 16 tok/s | 2.300 € | 6.9 |
| Mac mini M4 Pro 48GB | Q8_0 | fits | 8 tok/s | 2.549 € | 3.1 |
| NVIDIA GeForce RTX 3090 | Q8_0 | fits | 26 tok/s | 2.790 € | 9.3 |
| Mac mini M4 Pro 64GB | Q8_0 | fits | 8 tok/s | 2.934 € | 2.7 |
| NVIDIA RTX PRO 4000 Blackwell | Q8_0 | fits | 19 tok/s | 3.339 € | 5.6 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q8_0 | fits | 6 tok/s | 3.850 € | 1.6 |
| NVIDIA GeForce RTX 3090 Ti | Q8_0 | fits | 28 tok/s | 4.284 € | 6.5 |
| Mac Studio M4 Max 64GB | Q8_0 | fits | 16 tok/s | 4.299 € | 3.7 |
| NVIDIA GeForce RTX 4090 | Q8_0 | fits | 28 tok/s | 4.790 € | 5.8 |
| NVIDIA RTX PRO 4500 Blackwell | Q8_0 | fits | 25 tok/s | 4.878 € | 5.1 |
| Mac Studio M4 Max 128GB | Q8_0 | fits | 16 tok/s | 5.499 € | 2.9 |
| Mac Studio M3 Ultra 96GB | Q8_0 | fits | 24 tok/s | 5.999 € | 4.0 |
| NVIDIA GeForce RTX 5090 | Q8_0 | fits | 50 tok/s | 6.888 € | 7.2 |
| ASUS Ascent GX10 128GB | Q8_0 | fits | 8 tok/s | 7.306 € | 1.0 |
| Dell Pro Max with GB10 128GB | Q8_0 | fits | 8 tok/s | 8.063 € | 0.9 |
| NVIDIA RTX PRO 5000 Blackwell 48GB | Q8_0 | fits | 37 tok/s | 8.866 € | 4.2 |
| NVIDIA DGX Spark 128GB | Q8_0 | fits | 8 tok/s | 9.091 € | 0.8 |
| Mac Studio M3 Ultra 256GB | Q8_0 | fits | 24 tok/s | 15.555 € | 1.5 |
| Mac Studio M3 Ultra 512GB | Q8_0 | fits | 24 tok/s | 17.995 € | 1.3 |
| NVIDIA RTX PRO 6000 Blackwell | Q8_0 | fits | 50 tok/s | 18.327 € | 2.7 |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q8_0 | fits | 6 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q8_0 | fits | 6 tok/s | – | – |
| NVIDIA RTX PRO 4000 Blackwell SFF Edition | Q8_0 | fits | 12 tok/s | – | – |
| Minisforum MS-S1 Max Ryzen AI Max+ 395 128GB | Q8_0 | fits | 6 tok/s | – | – |
| NVIDIA RTX 6000 Ada Generation | Q8_0 | fits | 27 tok/s | – | – |
| NVIDIA RTX A6000 | Q8_0 | fits | 21 tok/s | – | – |
| Lenovo ThinkStation PGX GB10 128GB | Q8_0 | fits | 8 tok/s | – | – |
| NVIDIA RTX PRO 5000 Blackwell 72GB | Q8_0 | fits | 37 tok/s | – | – |
| AMD Radeon PRO W7900 | Q8_0 | fits | 21 tok/s | – | – |
| Beelink GTR9 Pro Ryzen AI Max+ 395 128GB | Q8_0 | fits | 6 tok/s | – | – |
| Intel Arc B570 | Q4_K_M | offload | 6 tok/s | 282 € | 20.6 |
| NVIDIA GeForce RTX 3060 12GB | Q4_K_M | offload | 8 tok/s | 415 € | 18.3 |
| NVIDIA GeForce RTX 5050 | Q4_K_M | offload | 5 tok/s | 428 € | 11.9 |
| NVIDIA GeForce RTX 5060 | Q4_K_M | offload | 5 tok/s | 469 € | 11.5 |
| Intel Arc B580 | Q4_K_M | offload | 7 tok/s | 498 € | 14.9 |
| NVIDIA GeForce RTX 3080 10GB | Q4_K_M | offload | 7 tok/s | 518 € | 13.9 |
| NVIDIA GeForce RTX 5060 Ti 8GB | Q4_K_M | offload | 5 tok/s | 520 € | 10.4 |
| NVIDIA GeForce RTX 4060 | Q4_K_M | offload | 5 tok/s | 556 € | 9.0 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q4_K_M | offload | 11 tok/s | 625 € | 18.2 |
| Intel Arc Pro B50 | Q4_K_M | offload | 7 tok/s | 648 € | 10.8 |
| AMD Radeon RX 9060 XT 16GB | Q4_K_M | offload | 11 tok/s | 650 € | 16.5 |
| NVIDIA GeForce RTX 4070 Super | Q4_K_M | offload | 9 tok/s | 700 € | 12.3 |
| Intel Arc A770 16GB | Q4_K_M | offload | 16 tok/s | 787 € | 20.8 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q4_K_M | offload | 18 tok/s | 799 € | 22.2 |
| AMD Radeon RX 9070 | Q4_K_M | offload | 20 tok/s | 807 € | 24.9 |
| AMD Radeon RX 7600 XT | Q4_K_M | offload | 10 tok/s | 833 € | 11.6 |
| NVIDIA GeForce RTX 4070 | Q4_K_M | offload | 9 tok/s | 843 € | 10.2 |
| NVIDIA GeForce RTX 5070 | Q4_K_M | offload | 9 tok/s | 877 € | 10.6 |
| NVIDIA GeForce RTX 4060 Ti 8GB | Q4_K_M | offload | 5 tok/s | 878 € | 5.7 |
| NVIDIA RTX PRO 2000 Blackwell | Q4_K_M | offload | 11 tok/s | 880 € | 13.0 |
| AMD Radeon RX 9070 XT | Q4_K_M | offload | 20 tok/s | 903 € | 22.3 |
| AMD Radeon RX 7800 XT | Q4_K_M | offload | 20 tok/s | 1.069 € | 18.4 |
| NVIDIA GeForce RTX 5070 Ti | Q4_K_M | offload | 35 tok/s | 1.389 € | 25.3 |
| NVIDIA GeForce RTX 4070 Ti Super | Q4_K_M | offload | 27 tok/s | 1.500 € | 17.7 |
| NVIDIA GeForce RTX 5080 | Q4_K_M | offload | 38 tok/s | 1.889 € | 20.0 |
| NVIDIA GeForce RTX 4080 Super | Q4_K_M | offload | 29 tok/s | 3.263 € | 8.9 |
1 other card or machine we price cannot hold it at this context.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k |
|---|---|---|
| Q4_K_Mgguf | 8.3 GB | 10.6 GB |
| mlx-4bitmlx | 7.7 GB | 10.0 GB |
| Q5_K_Mgguf | 9.7 GB | 12.0 GB |
| Q6_Kgguf | 11.2 GB | 13.5 GB |
| mlx-8bitmlx | 14.5 GB | 16.8 GB |
| Q8_0gguf | 14.5 GB | 16.8 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/phi-4-GGUF:Q4_K_M - LM Studio
lms get unsloth/phi-4-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/phi-4-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/phi-4-4bit - MLX
mlx_lm.server --model mlx-community/phi-4-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/phi-4-GGUF:Q5_K_M - LM Studio
lms get unsloth/phi-4-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/phi-4-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/phi-4-GGUF:Q6_K - LM Studio
lms get unsloth/phi-4-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/phi-4-GGUF:Q6_K
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/phi-4-8bit - MLX
mlx_lm.server --model mlx-community/phi-4-8bit
- LM Studio
- Q8_0
- Ollama
ollama run hf.co/unsloth/phi-4-GGUF:Q8_0 - LM Studio
lms get unsloth/phi-4-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/phi-4-GGUF:Q8_0
- Ollama
Questions
- What is the best GPU for running Phi-4 14B locally?
- The cheapest hardware in Germany that runs Phi-4 14B fully in memory at 32k context is the AMD Radeon RX 7900 XT, 999 € at Amazon, at about 24 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 50 tok/s.
- What is the cheapest way to run Phi-4 14B in Germany today?
- The AMD Radeon RX 7900 XT, 999 € new at Amazon, in stock: it runs Phi-4 14B at Q6_K fully in memory at 32k context, at about 24 tok/s (estimated).
- Can I run Phi-4 14B on a 16 GB GPU?
- Only partly: at 32k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 11 tok/s on the NVIDIA GeForce RTX 4060 Ti 16GB (estimated).
- Can I run Phi-4 14B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 32k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 28 tok/s (estimated).
- How do I run Phi-4 14B locally?
- With Ollama: ollama run hf.co/unsloth/phi-4-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Phi-4 14B released under?
- mit, which allows commercial use.