Phi-4 14B
14.7B parameters · 16k context · mit · released 2024-12-11
chatreasoning
In short
The cheapest hardware in the UK that runs Phi-4 14B fully in memory at 64k context is the NVIDIA GeForce RTX 3090, £1,330 at Amazon, at about 24 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the UK today
AMD Radeon RX 7900 XTX, used at eBay
Runs Phi-4 14B at Q4_K_M fully in memory at 64k context, about 24 tok/sest.
£999
In stock, checked
What to run it on in the UK
Fully in memory at 64k context, priced at retailers today.
Cheapest
NVIDIA GeForce RTX 309024tok/sest.Q5_K_M
£1,330
Best value
NVIDIA GeForce RTX 309024tok/sest.Q5_K_M
£1,330
Fastest
NVIDIA GeForce RTX 509038tok/sest.Q8_0
£5,000
Mac
Mac Studio M3 Ultra 96GB18tok/sest.Q8_0
£4,949
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
2 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 UK that runs Phi-4 14B fully in memory at 64k context is the NVIDIA GeForce RTX 3090, £1,330 at Amazon, at about 24 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 38 tok/s.
- What is the cheapest way to run Phi-4 14B in the UK today?
- The AMD Radeon RX 7900 XTX, £999 used at eBay, in stock: it runs Phi-4 14B at Q4_K_M fully in memory at 64k context, at about 24 tok/s (estimated).
- Can I run Phi-4 14B on a 16 GB GPU?
- Only partly: at 64k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 5 tok/s on the Intel Arc A770 16GB (estimated).
- Can I run Phi-4 14B on a 24 GB GPU?
- Yes: at Q5_K_M it fits fully in 24 GB at 64k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 26 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.