Phi-4 is Microsoft's 14B model, released on December 12, 2024 under the MIT licence. It was trained largely on high-quality synthetic data and is strongest at maths, logic and reasoning for its size.
At Q4_K_M it needs about 11.2 GB with an 8K conversation, so it fits 12GB cards and runs comfortably on 16GB.
ollama run phi4:14bThe short window keeps memory predictable: even a full 16K conversation adds only about 3.3 GB of cache at F16. For long documents or other languages, Qwen3 14B is the closer fit.
Last reviewed · How we calculate
phi4:14bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M this device holds the full 16K native context.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | Quality |
|---|---|---|---|---|---|
| Q4_K_Mrecommended | 8.9 GB | 10.4 GB | 11.2 GB | 12.9 GB | Small loss, best default |
| Q5_K_M | 10.5 GB | 11.9 GB | 12.7 GB | 14.4 GB | Very close to Q8 |
| Q6_K | 12.1 GB | 13.5 GB | 14.3 GB | 16.0 GB | Hard to tell from Q8 |
| Q8_0 | 15.6 GB | 17.1 GB | 17.9 GB | 19.6 GB | Near full quality |
| F16 | 29.4 GB | 30.8 GB | 31.7 GB | 33.4 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Slow, uses RAM | about 9.3 tok/s | Doesn't fit | |
| RTX 3060 12GB | Runs, tight | Slow, uses RAM | about 26 tok/s | 9K | |
| RTX 4070 12GB | Runs, tight | Slow, uses RAM | about 37 tok/s | 9K | |
| RTX 4060 Ti 16GB | Runs well | Slow, uses RAM | about 21 tok/s | 16K, full | |
| Radeon RX 7600 XT 16GB | Runs well | Slow, uses RAM | about 21 tok/s | 16K, full | |
| RTX 5060 Ti 16GB | Runs well | Slow, uses RAM | about 33 tok/s | 16K, full | |
| Intel Arc A770 16GB | Runs well | Slow, uses RAM | about 41 tok/s | 16K, full | |
| Radeon RX 9070 XT 16GB | Runs well | Slow, uses RAM | about 47 tok/s | 16K, full | |
| RTX 4070 Ti Super 16GB | Runs well | Slow, uses RAM | about 49 tok/s | 16K, full | |
| RTX 4080 Super 16GB | Runs well | Slow, uses RAM | about 54 tok/s | 16K, full | |
| RTX 5080 16GB | Runs well | Slow, uses RAM | about 70 tok/s | 16K, full | |
| RTX 3090 24GB | Runs well | Runs well | about 68 tok/s | 16K, full | |
| Radeon RX 7900 XTX 24GB | Runs well | Runs well | about 70 tok/s | 16K, full | |
| RTX 4090 24GB | Runs well | Runs well | about 74 tok/s | 16K, full | |
| RTX 5090 32GB | Runs well | Runs well | about 131 tok/s | 16K, full | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Runs well | Won't run | about 20 tok/s | 16K, full | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 20 tok/s | 16K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 40 tok/s | 16K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 40 tok/s | 16K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run phi4:14b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkRun ollama run phi4. It downloads the 14B Q4_K_M build, about 9.1 GB, with a 16K context. The Q8_0 tag, phi4:14b-q8_0, is about 16 GB.
16K tokens (16,384). That is shorter than most current models, so it suits questions and tasks rather than long documents.
Not reliably. Microsoft says about 8% of the training data was multilingual and the model is not meant for multilingual use. Use Qwen3 or Gemma 3 for other languages.
Yes. Phi-4 is released under the MIT licence, one of the most permissive licences available.
Both need similar memory. Phi-4 is strong at maths and logic in English; Qwen3 14B adds a thinking mode, a 32K window and many languages. Try both on your own tasks.
About 11.2 GB at Q4_K_M with an 8K conversation, 12.7 GB at Q5_K_M, 17.9 GB at Q8_0 and 31.7 GB at full F16 precision. Longer conversations add about 1.7 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 9.3 tokens a second.
Yes at Q4_K_M, with conversations up to about 9,000 tokens. Memory is nearly full, so close other GPU apps first.
Yes. The RTX 4060 Ti 16GB runs Phi-4 14B fully on the GPU at Q4_K_M at about 21 tokens a second.
Yes. A Mac with 24 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.