Microsoft's family of small open language models
open sourceMITself-hostablefree
Phi-4 is Microsoft's family of small open-weight language models, released under the MIT licence and built for cost-effective inference on device, at the edge and in the cloud. The family includes phi-4, a 14B dense model with a 16K-token context; Phi-4-mini-instruct, a 3.8B model with a 128K context; Phi-4-multimodal-instruct, a 5.6B model that takes text, images and audio (speech recognition, translation and summarisation) with a 128K context; Phi-4-reasoning and Phi-4-reasoning-plus, 14B reasoning models with a 32K context, and the smaller Phi-4-mini-reasoning and Phi-4-mini-flash-reasoning; and Phi-4-reasoning-vision-15B, which reasons over images, documents and screens. The weights are on Hugging Face, with ONNX and GGUF versions, and Microsoft hosts them in Microsoft Foundry. They're trained mostly on English.
Problems it solves
- a small open model under MIT that I can ship in a commercial app
- run a capable language model on a laptop or phone without a GPU server
- an open reasoning model for math problems that fits on one GPU
- an open model that understands speech and images in one small network
- fine-tune a small language model on my company's data cheaply
- a fast local model for low-latency autocomplete or agent steps
Features
- phi-4: 14B dense, 16K-token context
- Phi-4-mini-instruct: 3.8B, 128K-token context
- Phi-4-multimodal-instruct: text, image and audio input
- Phi-4-reasoning and reasoning-plus: 14B reasoning models, 32K context
- Phi-4-mini-reasoning and mini-flash-reasoning for math on small hardware
- Phi-4-reasoning-vision-15B for visual reasoning and GUI grounding
- ONNX and GGUF versions
- MIT-licensed weights
Alternatives
The same job
These do what Phi-4 does.
- gpt-oss OpenAI's open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, under Apache 2.0
- Gemma 4 Google DeepMind's open multimodal models, from phones to workstations
- Qwen3.8-27B Compact dense vision-language model from the Qwen3.8 open-model family
- GLM-5 Z.ai's open-weight models for coding and long-horizon agentic work