Phi-4 14B
14.7B parameters · 16k context · mit · released 2024-12-11
chatreasoning
In short
Phi-4 14B is an open model from Microsoft with 14.7B parameters. At Q4_K_M, Phi-4 14B needs about 11 GB of memory at 8k context and 11 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the UK that runs Phi-4 14B fully in memory at 8k context is the Intel Arc A770 16GB, £364 at eBay, at about 20 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the UK today
NVIDIA GeForce RTX 3060 12GB, used at eBay
Runs Phi-4 14B at Q4_K_M fully in memory at 8k context, about 21 tok/sest.
£313
In stock, checked
What to run it on in the UK
Fully in memory at 8k context, priced at retailers today.
Cheapest
Intel Arc A770 16GB20tok/sest.Q6_K
£364
Best value
NVIDIA GeForce RTX 507039tok/sest.Q4_K_M
£700
Fastest
NVIDIA GeForce RTX 509064tok/sest.Q8_0
£5,000
Mac
Mac Studio M4 Max 64GB21tok/sest.Q8_0
£3,299
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
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
- How much VRAM does Phi-4 14B need?
- At Q4_K_M, Phi-4 14B needs about 11 GB of memory at 8k context and 11 GB at 8k, counting the weights, the KV cache and runtime buffers.
- 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 8k context is the Intel Arc A770 16GB, £364 at eBay, at about 20 tok/s (estimated). The best value is the NVIDIA GeForce RTX 5070 (about 39 tok/s for £700). The fastest we price is the NVIDIA GeForce RTX 5090, at about 64 tok/s.
- What is the cheapest way to run Phi-4 14B in the UK today?
- The NVIDIA GeForce RTX 3060 12GB, £313 used at eBay, in stock: it runs Phi-4 14B at Q4_K_M fully in memory at 8k context, at about 21 tok/s (estimated).
- Can I run Phi-4 14B on a 16 GB GPU?
- Yes: at Q6_K it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 43 tok/s (estimated).
- Can I run Phi-4 14B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 36 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.