Phi-1
Phi-1 is a 1.3B-parameter code model from Microsoft Research, described in June 2023 in 'Textbooks Are All You Need'. Trained on 6 billion tokens of textbook-quality web data and 1 billion tokens of GPT-3.5-generated textbooks and exercises, it scored about 50% pass@1 on HumanEval, far above its size class.
At a glance
- Context window
- 2K tokens
- Max output
- —
- Text input / output · per 1M tokens
- — / —
- Knowledge cutoff
- —
Benchmark snapshot
Best result in each category
CodingMBPP
55.5Historical report (mode unspecified) · #42 of 67
Benchmark details
2 results · Best published score per benchmark, grouped by category
| Benchmark · setting | Score | Rank |
|---|---|---|
| Coding | ||
| HumanEval Historical report (mode unspecified) · Code Generation & Editing | 50.6 | 66 / 100 |
| MBPP Historical report (mode unspecified) · Code Generation & Editing | 55.5 | 42 / 67 |
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
- June 20, 2023
- Total parameters
- 1.3B
- Architecture
- Dense
- Context window
- 2K tokens
- Weights
- Restricted weights
- Licence
- Microsoft Research License
- Commercial use
- Non-commercial only
Phi-1 vs competitors
Comparable results only · record is Phi-1's wins–losses
| Benchmark | Phi-1This model | vs ERNIE 5.5 Flash BaseRecord 0–2 | vs Mistral-Small-3.1-24B-Instruct-2503Record 0–2 | vs Gemma 3 - 27B (IT)Record 0–2 | vs C4AI Aya Vision 32BRecord 0–2 |
|---|---|---|---|---|---|
| HumanEval | 50.6 | 82.3 | 88.4 | 87.8 | 62.2 |
| MBPP | 55.5 | 81.5 | 74.7 | 74.4 | 70.4 |
Primary sources
- Phi-1 technical reportarxiv.org
- 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.
