Phi 2
By MicrosoftReleased December 2023OPEN SOURCE
Phi-2 is a 2.7-billion-parameter language model that Microsoft Research published on December 12, 2023. It is the oldest Phi model with a page here, and the one that made the case for the whole family.
At a glance
- Status
- Available
- Released
- December 2023
- Context window
- 2K tokens
- API name
- microsoft/phi-2
What it is for
Phi-2 followed two 1.3B research models, Phi-1 for Python coding and Phi-1.5 for common-sense reasoning. Microsoft's argument was that carefully chosen training data, including synthetic texts and filtered websites, lets a small model compete with much larger ones.
Microsoft released it to give researchers an unrestricted small model for safety work. Its card says it has had neither instruction tuning nor reinforcement learning from human feedback, so it may fail to follow detailed instructions.
Specifications
2.7B parameters, 2,048 tokens of context, text in and text out, trained for 14 days. The weights are on Hugging Face as microsoft/phi-2 under the MIT licence. The Phi-3 family followed in April 2024.
On the chart now
Not on the current chart.
What it can do
- Reads and writes text
Ranking history
Not ranked in any published week yet.
Sources
- Microsoft Research: Phi-2, the surprising power of small language models
- Hugging Face: Phi-2 model card
Facts checked Oct 30, 2026