Microsoft · MIT

Phi-4

Microsoft’s small models trained on textbook-style data. Good at maths for their size.

How much memory it needs

The model file, plus memory for the conversation, plus about 1 GB for the app. Longer conversations need more.

SizeVersionFileAt 8KAt 32KAt 128K
3.8BQ4_K_M2.5 GB4.6 GB7.8 GB20.6 GB
Q8_04.1 GB6.2 GB9.4 GB22.2 GB
15BQ4_K_M8.9 GB11.6 GB——
Q8_015.6 GB18.3 GB——

Which computers run it

The best size for each machine at an 8K-token conversation. Speeds are estimates from memory bandwidth.

ComputerBest versionFitSpeed
Laptop or PC, no graphics card, 32 GB3.8B Q8_0Runs great10–17tok/sReadable
RTX 4060 · 8 GB3.8B Q8_0Runs well30–50tok/sFast
RTX 3060 · 12 GB3.8B Q8_0Runs great40–65tok/sFast
RTX 5060 Ti · 16 GB15B Q4_K_MRuns great25–40tok/sSmooth
RTX 4090 · 24 GB15B Q8_0Runs well35–55tok/sFast
RTX 5090 · 32 GB15B Q8_0Runs great60–95tok/sFast
Mac with M4 · 16 GB3.8B Q8_0Runs great13–25tok/sSmooth
Mac with M4 Pro · 48 GB15B Q8_0Runs great9–16tok/sReadable
Mac with M5 Max · 128 GB15B Q8_0Runs great20–35tok/sSmooth
Ryzen AI Max+ 395 · 128 GB15B Q8_0Runs great9–14tok/sReadable
DGX Spark · 128 GB15B Q8_0Runs great9.5–15tok/sReadable
RTX PRO 6000 · 96 GB15B Q8_0Runs great60–95tok/sFast
Mac Studio with M5 Ultra · 256 GB15B Q8_0Runs great30–50tok/sFast
Mac Studio with M3 Ultra · 512 GB15B Q8_0Runs great20–35tok/sSmooth

What it is good and bad at

Good at

  • Maths and reasoning for a small model
  • MIT licence

Not good at

  • Phi-4 14B has only a 16K context
  • Text only

Start it

Install Ollama, then run one of these in a terminal. LM Studio users can search the same name in the app.

ollama run phi4-mini:3.8b
ollama run phi4:14b