Last reviewed · How we calculateSpeeds are estimates until benchmarks arrive
Memory at Q4_K_M with an 8K conversation. The highlighted cell is the lighter or longer one.
| Spec | Phi-4 14B | Qwen2.5 Coder 14B |
|---|---|---|
| Parameters | 14.7B | 14.7B |
| Type | Dense | Dense |
| Memory at Q4, 8K | 11.2 GB | 11.1 GB |
| Model file at Q4_K_M | 8.9 GB | 8.9 GB |
| Conversation memory per 8K | 1.7 GB | 1.6 GB |
| Native context |
Each row is one GPU or Mac. The longer the bar, the faster that model writes. Change the quality and conversation length to see where one stops fitting.
At Q4_K_M with a 8K conversation, Phi-4 14B runs fully on 18 of 20 devices and Qwen2.5 Coder 14B on 18. Striped bars run partly from system RAM. All speeds are estimates; add a measured one.
Total for model, an 8K conversation and runtime. Higher quality costs memory on both, but the gap between them grows.
| Quality | Phi-4 14B | Qwen2.5 Coder 14B | Difference |
|---|---|---|---|
| Q4_K_M | 11.2 GB | 11.1 GB | 0.1 GB |
| Q5_K_M | 12.7 GB | 12.7 GB | 0.1 GB |
| Q6_K | 14.3 GB | 14.3 GB | 0.1 GB |
| Q8_0 | 17.9 GB | 17.8 GB | 0.1 GB |
| F16 |
Pick it over Qwen2.5 Coder 14B if:
ollama run phi4:14b
Pick it over Phi-4 14B if:
Qwen2.5 Coder 14B needs about 11.1 GB at Q4_K_M with an 8K conversation, against about 11.2 GB for Phi-4 14B. Qwen2.5 Coder 14B fits on a 12 GB card; Phi-4 14B needs 12 GB.
They run at about the same speed. On the RTX 4090 24GB both write about 74 to 74 tokens a second, estimated.
On an RTX 4070 12GB, Phi-4 14B runs with little memory to spare at about 37 tokens a second, and Qwen2.5 Coder 14B runs with little memory to spare at about 37 tokens a second.
They come from different families, so size alone doesn't settle it. Phi-4 14B is larger; check both model cards and try them on your own prompts.
| 16K tokens |
| 32K tokensLonger |
| Smallest graphics card | 12 GB | 12 GB |
|---|
| Smallest Mac | 24 GB | 24 GB |
|---|
| Speed on RTX 4090 24GB | about 74 tok/s | about 74 tok/s |
|---|
| Licence | MIT | Apache 2.0 |
|---|
| Ollama tag | phi4:14b | qwen2.5-coder:14b |
|---|
| 31.7 GB |
| 31.6 GB |
| 0.1 GB |
ollama run qwen2.5-coder:14b