Will this model run on your hardware?

Can I run Microsoft: Phi 4 locally?

Open this page in a browser to check it against your own GPU or Mac: the tool detects your hardware locally and shows the best quantization that fits, the memory it needs and an estimated speed.

Quantizations and file sizes

QuantizationGGUF file
Q8_015.6 GB
Q6_K12.0 GB
Q5_K_M10.6 GB
Q4_K_M9.1 GB
Q3_K_M7.4 GB
Q2_K5.5 GB

Run it locally

ollama run hf.co/MaziyarPanahi/phi-4-GGUF:Q4_K_M
llama serve -hf MaziyarPanahi/phi-4-GGUF:Q4_K_M

LM Studio: open MaziyarPanahi/phi-4-GGUF