Leaderboard / Microsoft (Phi)
Phi-4
Microsoft (Phi) · Phi-4 · released 2024-12-12 · data checked 2026-11-01 Needs verification
Phi-4 is a 14.7B-parameter dense model from Microsoft (Phi) (United States), released 2024-12-12 under the MIT license. It scores 44.7 on the Small LM Index, #16 of 26 small models. It needs about 11.4 GB of memory at 4-bit with an 8K-token context and costs $0.070 per million tokens through the cheapest API provider.
Benchmarks
Each bar shows this model's score. The tick marks the best small model on that benchmark. Sources: 2 reported by Microsoft (Phi). How we label sources.
Not reported: estimated
What the index model expects from this model's other scores. Not a measurement.
Specifications
- Lab
- Microsoft (Phi) (US · United States)
- Architecture
- Dense transformer
- Total parameters
- 14.7B
- Active parameters
- All (dense)
- Size class
- Small
- Context window
- 16K tokens
- Input modalities
- text
- Reasoning
- Instruct (no thinking)
- License
- MIT
- Openness
- Open weights
- Memory to run
- ~11.4 GB at 4-bit, 8K context (more sizes)
- Hugging Face
- 327K downloads (30 days) · 2.3K likes
- API providers
- 1 on OpenRouter
- API price
- $0.056 in / $0.11 out per 1M (OpenRouter, 2026-11-03)
Compare with
- Phi-4 vs Apriel 1.6 15B Thinker (14.9B, index 60.9)
- Phi-4 vs Ministral 3 14B (14B, index 60.0)
- Phi-4 vs Gemma 4 12B (11.9B, index 56.9)
- Phi-4 vs Phi-4-reasoning-plus (14.7B, index 54.4)
- Phi-4 vs LLaDA2.2 mini (16.3B, index 29.7)
- Phi-4 vs Gemma 3 12B (12.2B, index 28.4)
Sources
Something wrong here? Report it.
Run it locally
Uses unsloth/phi-4-GGUF (Q4_K_M). Swap the tag for another size: F16, Q2_K, Q2_K_L, Q3_K_M, Q4_K_M, Q5_K_M, Q6_K, Q8_0.
ollama run hf.co/unsloth/phi-4-GGUF:Q4_K_Mllama-server -hf unsloth/phi-4-GGUF:Q4_K_Mpip install -U mlx-lm
mlx_lm.chat --model mlx-community/phi-4-4bitvllm serve microsoft/phi-4Memory needed: weights, context cache and runtime buffers.
| Quantization | 4K context | 16K context |
|---|---|---|
| 16-bit F16 | 31 GB | 33 GB |
| 8-bit Q8_0 | 17 GB | 20 GB |
| 4-bit Q4_K_M | 11 GB | 13 GB |