Phi-2
Phi-2 is a 2.7B-parameter model from Microsoft, released on December 12, 2023. Trained on 'textbook-quality' synthetic and filtered web data, it matched or beat models up to 25 times larger on reasoning and language benchmarks. Its licence was changed to MIT in January 2024, allowing commercial use.
At a glance
- Context window
- 2K tokens
- Max output
- —
- Text input / output · per 1M tokens
- — / —
- Knowledge cutoff
- —
From the Zombie Woods
A year older. Still wandering.
Released 12 Dec 2023 · 1,081 days old · Open weights
This model crossed its first release anniversary and earned a zombie appearance in our game. It has not been declared dead: its real catalogue status is unchanged.
Visit the Zombie Woods →Benchmark snapshot
Best result in each categories
AcademicGSM8K
61.1Historical report (mode unspecified) · #35 of 67
CodingMBPP
59.1Historical report (mode unspecified) · #40 of 67
General EvaluationECI
108Reported best (effort unspecified) · #146 of 168
Benchmark details
5 results · Best published score per benchmark, grouped by category
| Benchmark · setting | Score | Rank |
|---|---|---|
| Academic | ||
| GSM8K Historical report (mode unspecified) · Mathematics | 61.1 | 35 / 67 |
| MMLU Historical report (mode unspecified) · Knowledge Exams | 56.7 | 87 / 114 |
| Coding | ||
| HumanEval Historical report (mode unspecified) · Code Generation & Editing | 48.3 | 68 / 100 |
| MBPP Historical report (mode unspecified) · Code Generation & Editing | 59.1 | 40 / 67 |
| General Evaluation | ||
| ECI Reported best (effort unspecified) · Capability Indices | 108 | 146 / 168 |
Rank is this model's position among every model with a published result on that leaderboard; the bar shows how far up the field that is. Orange marks first place on leaderboards with at least 5 models. Unranked leaderboards publish a composite or direction-less score.
Back to benchmark snapshot ↑Specifications
- Provider
- Microsoft
- Model type
- Foundation model
- Released
- December 12, 2023
- Total parameters
- 2.7B
- Architecture
- Dense
- Context window
- 2K tokens
- Weights
- Open weights
- Licence
- MIT License
- Commercial use
- Commercial use allowed
Phi-2 vs competitors
Comparable results only · record is Phi-2's wins–losses
| Benchmark | Phi-2This model | vs Qwen2.5-MaxRecord 0–5 | vs Qwen2.5-32BRecord 0–5 | vs Qwen2.5-72BRecord 0–5 | vs Qwen2.5-7BRecord 0–5 |
|---|---|---|---|---|---|
| ECI | 108 | 133 | 129 | 129 | 118 |
| MMLU | 56.7 | 87.9 | 83.3 | 86.1 | 74.2 |
| HumanEval | 48.3 | 73.2 | 88.4 | 59.1 | 57.9 |
| GSM8K | 61.1 | 94.5 | 95.9 | 91.5 | 85.4 |
| MBPP | 59.1 | 80.6 | 84.0 | 84.7 | 74.9 |
Primary sources
- Phi-2 technical reportmicrosoft.com
- Weights on Hugging Facehuggingface.co
Community discussion
Share the API, setup, and tradeoffs you actually tested. Rate the model once; comment as often as you like.
Sign in with Google to rate this model and leave a comment.
No community comments yet.
