Microsoft · dense · MIT
What runs Phi-4
Dense 14B model from December 2024 and the most downloaded full-size Phi on Hugging Face. Short 16K context; fits 12 GB GPUs at 4-bit.
- Parameters
- 14.7B
- 4-bit file
- 8.3 GB
- Q4_K_M
- Needs at 8k context
- 11.3 GB
- Longest context
- 16,384 tokens
Context memory: 204,800 bytes per token. Standard GQA: 2 x 40 layers x 10 KV heads x 128 head dim x 2 bytes (fp16); head dim = hidden_size 5120 / 40 heads (config has no head_dim). How context memory works.
Measured on this hardware
Machines that hold the 4-bit file with 8,192 tokens of context and have published runs on the same chip or cards, fastest first. Median of single-user runs with plain decoding.
No published run on a machine that fits it.
Estimated, not measured
These fit but nobody has published a run we could match. The figure is memory bandwidth divided by the bytes read per token, scaled by the share of that ceiling measured runs reach. How estimates work.
| Machine | Fit | Price | Generation |
|---|---|---|---|
| Dell Pro Precision with GB300NVIDIA workstation | Fits | ~$159,283 | ~542–650 tok/sestimate |
| Dell Pro Max Tower T2 with NVIDIA RTX PRO 6000 BlackwellNVIDIA workstation | Fits | ~$13,909 | ~99–155 tok/sestimate |
| 1x RTX 5090Single GPU | Fits | ~$3,234 + unpriced parts | ~99–155 tok/sestimate |
| 2x RTX 5090Multi-GPU | Fits | ~$4,109 + unpriced parts | ~99–155 tok/sestimate |
| 1x RTX PRO 6000 BlackwellSingle GPU | Fits | ~$20,833 | ~99–155 tok/sestimate |
| RTX 5090 + EPYC 9355P with 768 GB DDR5 (MoE offload)Hybrid GPU + RAM | Fits | ~$3,763 + unpriced parts | ~99–155 tok/sestimate |
| Apple Mac Studio (M5 Ultra, 64-core GPU)Apple unified memory | Fitsassumed limitfrom 96 GB | ~$5,499–$9,499 | ~99–123 tok/sestimate |
| Apple Mac Studio (M5 Ultra, 80-core GPU)Apple unified memory | Fitsassumed limitfrom 96 GB | ~$6,799–$10,799 | ~99–123 tok/sestimate |
| 4x Instinct MI50 32GB (used) on EPYC 7003Multi-GPU | Fits | ~$1,998 + unpriced parts | ~56–89 tok/sestimate |
| 2x Radeon RX 7900 XTXMulti-GPU | Fits | ~$5,637 | ~53–83 tok/sestimate |
| 1x RTX 3090 (used)Single GPU | Fits | ~$2,944 + unpriced parts | ~52–81 tok/sestimate |
| 2x RTX 3090 (used)Multi-GPU | Fits | ~$3,639 + unpriced parts | ~52–81 tok/sestimate |
| 4x RTX 3090 (used) on EPYC 7003, open frameMulti-GPU | Fits | ~$2,178 + unpriced parts | ~52–81 tok/sestimate |
| RTX 3090 (used) + 128 GB DDR5 on AM5 (MoE offload)Hybrid GPU + RAM | Fits | ~$4,833 + unpriced parts | ~52–81 tok/sestimate |
| Apple Mac Studio (M5 Max, 40-core GPU)Apple unified memory | Fitsassumed limitfrom 48 GB | ~$3,099–$5,099 | ~51–63 tok/sestimate |
| Apple MacBook Pro 14-inch (M5 Max, 40-core GPU)Apple unified memory | Fitsassumed limitfrom 48 GB | ~$4,699–$6,699 | ~51–63 tok/sestimate |
| Apple MacBook Pro 16-inch (M5 Max, 40-core GPU)Apple unified memory | Fitsassumed limitfrom 48 GB | ~$4,999–$6,999 | ~51–63 tok/sestimate |
| tiny corp tinybox red flashGPU desktop (prebuilt) | Fits | ~$22,000 | ~35–55 tok/sestimate |
| Apple Mac Studio (M5 Max, 32-core GPU)Apple unified memory | Fitsassumed limit | ~$2,499 | ~38–47 tok/sestimate |
| Apple MacBook Pro 14-inch (M5 Max, 32-core GPU)Apple unified memory | Fitsassumed limit | ~$4,099 | ~38–47 tok/sestimate |
| Apple MacBook Pro 16-inch (M5 Max, 32-core GPU)Apple unified memory | Fitsassumed limit | ~$4,399 | ~38–47 tok/sestimate |
| 2x Intel Arc Pro B60Multi-GPU | Fits | ~$4,367 | ~25–39 tok/sestimate |
| Apple Mac mini (M5 Pro, 16-core GPU)Apple unified memory | Fitsassumed limitfrom 24 GB | ~$1,699–$2,699 | ~25–32 tok/sestimate |
| Apple Mac mini (M5 Pro, 20-core GPU)Apple unified memory | Fitsassumed limitfrom 24 GB | ~$1,899–$2,899 | ~25–32 tok/sestimate |
| Framework Desktop (Ryzen AI Max+ PRO 495)AMD unified memory | Fitsassumed limit | ~$6,799 | ~21–25 tok/sestimate |
| NVIDIA DGX SparkNVIDIA GB10 | Fitsassumed limit | ~$4,699 | ~21–25 tok/sestimate |
| Dell Pro Precision with GB10NVIDIA GB10 | Fitsassumed limit | ~$5,523 | ~21–25 tok/sestimate |
| Framework Desktop (Ryzen AI Max+ 395)AMD unified memory | Fitsassumed limitfrom 64 GB | ~$1,959–$3,449 | ~20–23 tok/sestimate |
| Framework Desktop (Ryzen AI Max 385)AMD unified memory | Fitsassumed limit | ~$1,269 | ~20–23 tok/sestimate |
| GMKtec EVO-X2 (Ryzen AI Max+ 395)AMD unified memory | Fitsassumed limitfrom 64 GB | ~$2,600–$4,000 | ~20–23 tok/sestimate |
| Beelink GTR9 Pro (Ryzen AI Max+ 395)AMD unified memory | Fits | ~$4,699 | ~20–23 tok/sestimate |
| Minisforum MS-S1 MAX (Ryzen AI Max+ 395)AMD unified memory | Fits | ~$4,899 | ~20–23 tok/sestimate |
| Corsair AI Workstation 300 (Ryzen AI Max+ 395)AMD unified memory | Fits | ~$4,800 | ~20–23 tok/sestimate |
| HP Z2 Mini G1a (Ryzen AI Max+ PRO 395)AMD unified memory | Fits | ~$4,999 | ~20–23 tok/sestimate |
Fits, no speed figure
Files
| Quant | Format | Size | Repo |
|---|---|---|---|
| 4bit | MLX | 7.7 GB | mlx-community/phi-4-4bit |
| Q4_K_M | GGUF | 8.3 GB | unsloth/phi-4-GGUF |
| Q5_K_M | GGUF | 9.7 GB | unsloth/phi-4-GGUF |
| Q6_K | GGUF | 11.2 GB | unsloth/phi-4-GGUF |
| 8bit | MLX | 14.5 GB | mlx-community/phi-4-8bit |
| Q8_0 | GGUF | 14.5 GB | unsloth/phi-4-GGUF |
Sources
- huggingface.co: model card: params, context, license, attention layout, description
- huggingface.co: license and parameter count from the published weights (the card gives none)
- huggingface.co: layer count, KV heads and head size
- huggingface.co: GGUF file sizes (shards summed)
- huggingface.co: MLX 4bit safetensors sizes
- huggingface.co: MLX 8bit safetensors sizes