Phi-4 14B
Strong reasoning for its size under a clean MIT licence, but a 16K context that rules it out of most agentic work. A good illustration that context length is a hard product constraint, not a spec-sheet detail.
MicrosoftDensereasoning21 machines can run it
Total parameters
14.66B
Official spec sets memory need
Active parameters
14.66B
Official spec sets decode speed
Context
16K
Official spec tokens
4-bit weights
8 GB
Calculated before KV cache
Model specification
Publisher
Microsoft Official spec
Architecture
Dense transformer Official spec
Total parameters
14.66B Official spec
Context length
16,384 tokens Official spec
Attention ⓘ
GQA · 10 KV heads × 128 dim × 40 layers Official spec
Licence
MIT Official spec source
Specification confidence ⓘ
High · verified 2026-09-07 Official spec source
Released
12 Dec 2024 Official spec
Official source
Quantizations and memory
| Quantization | Format | Bits/weight | Weights | Quality kept |
|---|---|---|---|---|
MLX 4-bit | mlx | 4.5 | 8.0 GB | 98.0% |
Q4_K_Mdefault | gguf | 4.85 | 8.5 GB | 98.5% |
Q8_0 | gguf | 8.5 | 14.8 GB | 99.9% |
BF16 | safetensors | 16 | 27.3 GB | 100.0% |
Weight sizes are computed from the parameter count and bits per weight plus a format-specific overhead for the layers that stay at higher precision — not read from a specific published file. Quality retention is an assumption, not a measured evaluation.
Recommendations
Cheapest that can run it
~2.4–3.4 t/s · €1.699
Lowest purchase price among configurations where the model fits at some quantization in our catalogue. Speed is not considered.
Cheapest above 20 t/s
~69.4–99.8 t/s · €2.299
20 tokens/second is roughly the point at which generation keeps pace with reading. Below it, interactive use feels like waiting.
Cheapest above 40 t/s
~69.4–99.8 t/s · €2.299
40 tokens/second is the threshold most people describe as comfortable for coding agents, where output arrives faster than you can review it.
Fastest with real measurements
Nothing in the database qualifies.
Highest throughput among configurations with an actual published measurement rather than our estimate.
Best throughput per euro
~69.4–99.8 t/s · €2.299
Highest decode tokens/second per EUR 1,000 of purchase price. Ignores running costs and resale — see the economics section for the full picture.
Hardware that runs Phi-4 14B0 measured, 21 estimated
21 of 21 rows
| Hardware↕ | Quant | Memory↕ | Decode▼ | Prefill↕ | Context | Price↕ | Fit | Confidence↕ |
|---|---|---|---|---|---|---|---|---|
| Quad RTX 5090 workstation (4x 32 GB) NVIDIA · 128 GB · 7,168 GB/s | Q8_0 | 19.0 GB | ~128–185 t/s | ~6830–14190 t/s | 16K | €13.999 | Comfortable | Estimated |
| Dual RTX 5090 workstation (2x 32 GB) NVIDIA · 64 GB · 3,584 GB/s | Q8_0 | 18.2 GB | ~88.7–128 t/s | ~3420–7100 t/s | 16K | €6.499 | Comfortable | Estimated |
| RTX 5090 workstation (1x 32 GB) NVIDIA · 32 GB · 1,792 GB/s | Q8_0 | 17.8 GB | ~69.6–100 t/s | ~2100–4370 t/s | 16K | €3.699 | Comfortable | Estimated |
| Used RTX 4090 workstation (24 GB) NVIDIA · 24 GB · 1,008 GB/s | Q4_K_M | 11.3 GB | ~69.4–99.8 t/s | ~2340–4860 t/s | 16K | €2.299 | Comfortable | Estimated |
| RTX PRO 6000 Blackwell workstation (96 GB) NVIDIA · 96 GB · 1,792 GB/s | Q8_0 | 17.8 GB | ~65.6–94.4 t/s | ~2220–4610 t/s | 16K | €11.499 | Comfortable | Estimated |
| RTX PRO 6000 Max-Q workstation (96 GB, 300 W) NVIDIA · 96 GB · 1,792 GB/s | Q8_0 | 17.8 GB | ~65.6–94.4 t/s | ~1820–3780 t/s | 16K | €11.999 | Comfortable | Estimated |
| Dual used RTX 4090 workstation (48 GB) NVIDIA · 48 GB · 2,016 GB/s | Q8_0 | 18.2 GB | ~52.7–75.9 t/s | ~3800–7900 t/s | 16K | €4.099 | Comfortable | Estimated |
| Mac Studio M5 Ultra 512 GB Apple · 512 GB · 1,200 GB/s | Q8_0 | 17.8 GB | ~51.9–74.6 t/s | ~1980–4110 t/s | 16K | €12.599 | Comfortable | Estimated |
| Mac Studio M5 Ultra 256 GB Apple · 256 GB · 1,200 GB/s | Q8_0 | 17.8 GB | ~51.9–74.6 t/s | ~1980–4110 t/s | 16K | €9.599 | Comfortable | Estimated |
| Mac Studio M5 Ultra 96 GB Apple · 96 GB · 1,200 GB/s | Q8_0 | 17.8 GB | ~51.9–74.6 t/s | ~1580–3290 t/s | 16K | €6.599 | Comfortable | Estimated |
| Radeon AI PRO R9700 workstation (32 GB) AMD · 32 GB · 644 GB/s | Q8_0 | 17.8 GB | ~31.2–44.9 t/s | ~1680–3480 t/s | 16K | €2.799 | Comfortable | Estimated |
| Mac Studio M3 Ultra 512 GB Apple · 512 GB · 819 GB/s | Q8_0 | 17.8 GB | ~29.4–42.4 t/s | ~477–992 t/s | 16K | €9.199 | Comfortable | Estimated |
| Mac Studio M3 Ultra 256 GB Apple · 256 GB · 819 GB/s | Q8_0 | 17.8 GB | ~29.4–42.4 t/s | ~477–992 t/s | 16K | €6.299 | Comfortable | Estimated |
| Mac Studio M5 Max 128 GB Apple · 128 GB · 614 GB/s | Q8_0 | 17.8 GB | ~27.4–39.4 t/s | ~990–2060 t/s | 16K | €4.799 | Comfortable | Estimated |
| Mac Studio M5 Max 64 GB Apple · 64 GB · 614 GB/s | Q8_0 | 17.8 GB | ~27.4–39.4 t/s | ~990–2060 t/s | 16K | €3.899 | Comfortable | Estimated |
| Mac Studio M5 Max 36 GB Apple · 36 GB · 614 GB/s | Q8_0 | 17.8 GB | ~27.4–39.4 t/s | ~792–1640 t/s | 16K | €2.999 | Comfortable | Estimated |
| Mac mini M4 Pro 64 GB Apple · 64 GB · 273 GB/s | Q8_0 | 17.8 GB | ~9.9–14.3 t/s | ~82.9–172 t/s | 16K | €2.499 | Comfortable | Estimated |
| NVIDIA DGX Spark 128 GB NVIDIA · 128 GB · 273 GB/s | Q8_0 | 17.8 GB | ~9.5–13.6 t/s | ~852–1770 t/s | 16K | €4.299 | Comfortable | Estimated |
| Framework Desktop (Ryzen AI Max+ 395, 128 GB) AMD · 128 GB · 256 GB/s | Q8_0 | 17.8 GB | ~6.4–9.2 t/s | ~235–489 t/s | 16K | €2.399 | Comfortable | Estimated |
| GMKtec EVO-X2 (Ryzen AI Max+ 395, 128 GB) AMD · 128 GB · 256 GB/s | Q8_0 | 17.8 GB | ~5.6–8 t/s | ~235–489 t/s | 16K | €1.899 | Comfortable | Estimated |
| CPU-only workstation (Ryzen 9950X, 192 GB DDR5) Generic · 192 GB · 90 GB/s | Q8_0 | 17.8 GB | ~2.4–3.4 t/s | ~28.4–58.9 t/s | 16K | €1.699 | Comfortable | Estimated |
Similar models