# Phi

> Microsoft's small open models. They run on a laptop or a phone.

**Field:** Artificial Intelligence  
**Category:** Models & Providers  
**Also known as:** Microsoft Phi, Phi-3, Phi-3-mini, Phi-4

## Think of it like

It is like a pocket knife. It is small, but it does a lot.

## Definition

Phi is Microsoft's family of small language models. They give good answers but stay small enough for a laptop or a phone. Phi-4 has 14 billion parameters. That is far fewer than the biggest models. Newer ones include Phi-4-mini, and Phi-4-multimodal, which also takes in pictures and sound. The weights are open, so you can download and run them.

## Example

Jack runs Phi-4 on his laptop to sort support emails. The model file is about 9 GB, so it fits in his laptop's memory.

## Example code

```bash
ollama run phi4
```

This one line starts Phi-4 on your own computer, using Ollama.

## Why it matters

Not every job needs a giant model. A small one is faster and cheaper, and it can run with no internet.

## Common mistake

Expecting a small model to know as many facts as a big one. It reasons well for its size, but it holds less.

## Three principles

- **Small on purpose.** It fits on a laptop.
- **Open weights.** Download it and run it.
- **Several kinds.** Mini and multimodal too.

## Related terms

- [Small Language Model (SLM)](https://learn.benibix.com/term/ai/small-language-model)
- [Open-Weight Model](https://learn.benibix.com/term/ai/open-weight-model)
- [Ollama](https://learn.benibix.com/term/ai/ollama)
- [Parameter Count](https://learn.benibix.com/term/ai/parameter-count)
- [Large Language Model (LLM)](https://learn.benibix.com/term/ai/large-language-model)
- [Microsoft AI](https://learn.benibix.com/term/ai/microsoft-ai)

## Taught in

- [Gemma, Phi and gpt-oss](https://learn.benibix.com/learn/ai-models-providers/gemma-phi-and-gpt-oss): AI Models and Providers, 7/13

![Two panels. On the left, online only: your app sends requests to the lab's servers, and the model file never leaves the lab. Grok, Gemini and GPT are listed there. On the right, highlighted, open weights: the model file goes to your own computer and runs with no internet. Gemma, Phi, GPT-OSS and Llama are listed there.](https://learn.benibix.com/diagrams/ai2-open-or-online.svg)

---

Source: https://learn.benibix.com/term/ai/phi
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
