MicrosoftJune 20, 2023

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.

Restricted weights

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.5

    Historical report (mode unspecified) · #42 of 67

View benchmark details (2)

Benchmark details

2 results · Best published score per benchmark, grouped by category

Benchmark · settingScoreRank
Coding
HumanEval

Historical report (mode unspecified) · Code Generation & Editing

50.666 / 100
MBPP

Historical report (mode unspecified) · Code Generation & Editing

55.542 / 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

Phi-1 benchmark scores against competitors
BenchmarkPhi-1This modelvs ERNIE 5.5 Flash BaseRecord 0–2vs Mistral-Small-3.1-24B-Instruct-2503Record 0–2vs Gemma 3 - 27B (IT)Record 0–2vs C4AI Aya Vision 32BRecord 0–2
HumanEval50.682.388.487.862.2
MBPP55.581.574.774.470.4

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.