Standard tierBest small coder

Phi-4 14B

Microsoft · Phi

Microsoft's research-driven Phi-4 focuses on synthetic high-quality training data, producing a 14B model that outperforms much larger models on coding and mathematical reasoning benchmarks. MIT licensed with zero usage restrictions for commercial projects.

Params

14B

License

MIT

Context

16K

Min VRAM

8 GB

Min RAM

16 GB

Tier

Standard

Run locally with Ollama

terminal
ollama run phi4:14b

Once running, Ollama exposes an OpenAI-compatible endpoint at localhost:11434/v1.

Will it run on my hardware?

Phi-4 14B needs about 8 GB of fast memory at Q4. Here is what in our hardware database clears that bar.

Runs at full speed · 12

NVIDIA RTX 5090 32GB32 GB VRAM~$2,999Amazon
NVIDIA RTX 5080 16GB16 GB VRAM~$1,250Amazon
NVIDIA RTX 5070 Ti 16GB16 GB VRAM~$999Amazon
NVIDIA RTX 4060 Ti 16GB16 GB VRAM~$424Amazon
NVIDIA RTX 4070 Super 12GB12 GB VRAM~$734Amazon
NVIDIA RTX 4080 Super 16GB16 GB VRAM~$1,000Amazon
NVIDIA RTX 4090 24GB24 GB VRAM~$2,755Amazon
AMD RX 7900 XTX 24GB24 GB VRAM~$1,339Amazon
Apple Mac mini M4 (16 GB)16 GB unified$799Amazon
Apple Mac mini M4 Pro (24 GB)24 GB unified$1,599Amazon
Apple Mac mini M4 Pro (48 GB)48 GB unified$2,099Amazon
Apple Mac Studio M4 Max (64 GB)64 GB unified$2,899Amazon

Runs, but slower on shared memory · 3

MINISFORUM AI X1 Pro32 GB DDR5 (shared)~$699Amazon
Corsair Vengeance 64 GB DDR5 Kit64 GB DDR5~$1,150Amazon
G.Skill Trident Z5 128 GB DDR5128 GB DDR5~$2,200Amazon

Hardware links are affiliate links. We earn a small commission if you buy through them — at no extra cost to you. Disclosure

Specifications

Parameters14B
Context window16K
LicenseMIT
Min VRAM (Q4)8 GB
Min RAM16 GB
Recommended tierStandard
Best forcodinganalysisreasoning

Variants on Ollama

Ollama serves the Q4_K_M quantization by default. Higher-precision tags exist for users with more memory.

Phi-4 14B

default · Q4_K_M
ollama run phi4:14b
higher precision · q8_0 (generic tag)
ollama pull phi4:q8_0
full precision · fp16 (generic tag)
ollama pull phi4:fp16

Exact quantization tags vary per model — run ollama show phi4 or check the tags page for the full list.

Popularity trend (illustrative)

Illustrative adoption trend, not actual download counts. We do not publish a download number for any model because we have no honest source for it.

Similar models