Phi-4 14B
14.7B parameters · 16k context · mit · released 2024-12-11
chatreasoning
In short
The cheapest hardware in Canada that runs Phi-4 14B fully in memory at 128k context is the NVIDIA RTX PRO 5000 Blackwell 48GB, $13,437 at Amazon, at about 20 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Canada today
NVIDIA RTX PRO 5000 Blackwell 48GB, new at Amazon
Runs Phi-4 14B at Q8_0 fully in memory at 128k context, about 20 tok/sest.
$13,437
In stock, checked
What to run it on in Canada
Fully in memory at 128k context, priced at retailers today.
Cheapest
NVIDIA RTX PRO 5000 Blackwell 48GB20tok/sest.Q8_0
$13,437
Best value
NVIDIA RTX PRO 5000 Blackwell 48GB20tok/sest.Q8_0
$13,437
Fastest
NVIDIA RTX PRO 5000 Blackwell 48GB20tok/sest.Q8_0
$13,437
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
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 Canada that runs Phi-4 14B fully in memory at 128k context is the NVIDIA RTX PRO 5000 Blackwell 48GB, $13,437 at Amazon, at about 20 tok/s (estimated).
- What is the cheapest way to run Phi-4 14B in Canada today?
- The NVIDIA RTX PRO 5000 Blackwell 48GB, $13,437 new at Amazon, 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 AMD Radeon RX 9060 XT 16GB (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 AMD Radeon RX 7900 XTX (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.