Phi-4 14B
14.7B parameters · 16k context · mit · released 2024-12-11
chatreasoning
In short
The cheapest hardware in the US that runs Phi-4 14B fully in memory at 128k context is the NVIDIA RTX PRO 5000 Blackwell 48GB, $6,999 at eBay, at about 20 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the US today
NVIDIA RTX PRO 5000 Blackwell 48GB, new at eBay
Runs Phi-4 14B at Q8_0 fully in memory at 128k context, about 20 tok/sest.
$6,999
In stock, checked
What to run it on in the US
Fully in memory at 128k context, priced at retailers today.
Cheapest
NVIDIA RTX PRO 5000 Blackwell 48GB20tok/sest.Q8_0
$6,999
Best value
NVIDIA RTX PRO 5000 Blackwell 48GB20tok/sest.Q8_0
$6,999
Fastest
NVIDIA RTX PRO 6000 Blackwell26tok/sest.Q8_0
$16,000
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 |
|---|---|---|---|---|---|
| Mac mini M4 Pro 48GB | Q4_K_M | fits | 5 tok/s | $2,025 | 2.5 |
| Mac mini M4 Pro 64GB | Q8_0 | fits | 4 tok/s | $2,399 | 1.8 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q8_0 | fits | 3 tok/s | $3,500 | 0.9 |
| Mac Studio M4 Max 64GB | Q8_0 | fits | 8 tok/s | $3,500 | 2.4 |
| Beelink GTR9 Pro Ryzen AI Max+ 395 128GB | Q8_0 | fits | 3 tok/s | $3,800 | 0.9 |
| Minisforum MS-S1 Max Ryzen AI Max+ 395 128GB | Q8_0 | fits | 3 tok/s | $3,959 | 0.8 |
| AMD Radeon PRO W7900 | Q8_0 | fits | 11 tok/s | $4,000 | 2.8 |
| Mac Studio M3 Ultra 96GB | Q8_0 | fits | 13 tok/s | $4,758 | 2.6 |
| Mac Studio M4 Max 128GB | Q8_0 | fits | 8 tok/s | $5,400 | 1.6 |
| NVIDIA RTX A6000 | Q8_0 | fits | 11 tok/s | $5,989 | 1.9 |
| ASUS Ascent GX10 128GB | Q8_0 | fits | 4 tok/s | $6,100 | 0.7 |
| NVIDIA RTX PRO 5000 Blackwell 48GB | Q8_0 | fits | 20 tok/s | $6,999 | 2.8 |
| NVIDIA DGX Spark 128GB | Q8_0 | fits | 4 tok/s | $7,800 | 0.5 |
| NVIDIA RTX 6000 Ada Generation | Q8_0 | fits | 14 tok/s | $8,495 | 1.6 |
| NVIDIA RTX PRO 5000 Blackwell 72GB | Q8_0 | fits | 20 tok/s | $8,499 | 2.3 |
| Mac Studio M3 Ultra 256GB | Q8_0 | fits | 13 tok/s | $9,500 | 1.3 |
| NVIDIA RTX PRO 6000 Blackwell | Q8_0 | fits | 26 tok/s | $16,000 | 1.6 |
| Mac Studio M3 Ultra 512GB | Q8_0 | fits | 13 tok/s | $30,000 | 0.4 |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q8_0 | fits | 3 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q8_0 | fits | 3 tok/s | – | – |
| Lenovo ThinkStation PGX GB10 128GB | Q8_0 | fits | 4 tok/s | – | – |
| Dell Pro Max with GB10 128GB | Q8_0 | fits | 4 tok/s | – | – |
| Intel Arc B570 | Q4_K_M | offload | 2 tok/s | $304 | 5.9 |
| NVIDIA RTX PRO 4000 Blackwell | Q4_K_M | offload | 4 tok/s | $339 | 10.3 |
| NVIDIA GeForce RTX 3060 12GB | Q4_K_M | offload | 2 tok/s | $388 | 4.9 |
| Intel Arc B580 | Q4_K_M | offload | 2 tok/s | $425 | 4.5 |
| NVIDIA Tesla P40 | Q4_K_M | offload | 3 tok/s | $449 | 6.7 |
| NVIDIA GeForce RTX 3080 10GB | Q4_K_M | offload | 2 tok/s | $500 | 3.8 |
| NVIDIA GeForce RTX 4070 | Q4_K_M | offload | 2 tok/s | $570 | 3.5 |
| Intel Arc Pro B50 | Q4_K_M | offload | 2 tok/s | $600 | 3.2 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q4_K_M | offload | 2 tok/s | $618 | 3.7 |
| AMD Radeon RX 9060 XT 16GB | Q4_K_M | offload | 2 tok/s | $720 | 2.9 |
| Intel Arc A770 16GB | Q4_K_M | offload | 2 tok/s | $745 | 3.1 |
| AMD Radeon RX 7800 XT | Q4_K_M | offload | 2 tok/s | $757 | 3.0 |
| NVIDIA RTX PRO 2000 Blackwell | Q4_K_M | offload | 2 tok/s | $795 | 2.6 |
| NVIDIA GeForce RTX 4070 Super | Q4_K_M | offload | 2 tok/s | $800 | 2.5 |
| AMD Radeon RX 9070 XT | Q4_K_M | offload | 2 tok/s | $810 | 2.8 |
| AMD Radeon RX 9070 | Q4_K_M | offload | 2 tok/s | $860 | 2.7 |
| AMD Radeon RX 7900 XT | Q4_K_M | offload | 3 tok/s | $880 | 3.2 |
| Intel Arc Pro B60 | Q4_K_M | offload | 3 tok/s | $899 | 3.3 |
| NVIDIA GeForce RTX 5070 | Q4_K_M | offload | 2 tok/s | $900 | 2.2 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q4_K_M | offload | 2 tok/s | $918 | 2.3 |
| AMD Radeon RX 7600 XT | Q4_K_M | offload | 2 tok/s | $959 | 2.2 |
| NVIDIA GeForce RTX 4070 Ti Super | Q4_K_M | offload | 2 tok/s | $1,140 | 2.1 |
| NVIDIA GeForce RTX 5070 Ti | Q4_K_M | offload | 2 tok/s | $1,300 | 1.8 |
| AMD Radeon RX 7900 XTX | Q4_K_M | offload | 4 tok/s | $1,400 | 2.6 |
| NVIDIA GeForce RTX 4080 Super | Q4_K_M | offload | 2 tok/s | $1,469 | 1.6 |
| AMD Radeon AI PRO R9700 | Q4_K_M | offload | 6 tok/s | $1,700 | 3.6 |
| Intel Arc Pro B70 | Q4_K_M | offload | 6 tok/s | $1,800 | 3.1 |
| NVIDIA GeForce RTX 5080 | Q4_K_M | offload | 2 tok/s | $1,900 | 1.3 |
| NVIDIA GeForce RTX 3090 | Q4_K_M | offload | 4 tok/s | $1,979 | 1.9 |
| NVIDIA GeForce RTX 3090 Ti | Q4_K_M | offload | 4 tok/s | $2,033 | 1.9 |
| NVIDIA GeForce RTX 4090 | Q4_K_M | offload | 4 tok/s | $2,073 | 1.8 |
| NVIDIA RTX PRO 4000 Blackwell SFF Edition | Q4_K_M | offload | 3 tok/s | $2,980 | 1.1 |
| NVIDIA RTX PRO 4500 Blackwell | Q4_K_M | offload | 8 tok/s | $4,000 | 2.0 |
| NVIDIA GeForce RTX 5090 | Q4_K_M | offload | 11 tok/s | $6,495 | 1.6 |
7 other cards and machines 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 the US that runs Phi-4 14B fully in memory at 128k context is the NVIDIA RTX PRO 5000 Blackwell 48GB, $6,999 at eBay, at about 20 tok/s (estimated). The fastest we price is the NVIDIA RTX PRO 6000 Blackwell, at about 26 tok/s.
- What is the cheapest way to run Phi-4 14B in the US today?
- The NVIDIA RTX PRO 5000 Blackwell 48GB, $6,999 new at eBay, in stock: it runs Phi-4 14B at Q8_0 fully in memory at 128k context, at about 20 tok/s (estimated).
- Can I run Phi-4 14B on a 16 GB GPU?
- Only partly: at 128k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 2 tok/s on the Intel Arc Pro B50 (estimated).
- Can I run Phi-4 14B on a 24 GB GPU?
- Only partly: at 128k context it does not fit in 24 GB, so part of it runs from system RAM and it slows to about 4 tok/s on the NVIDIA RTX PRO 4000 Blackwell (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.