// COMPARISON

Phi-2

A head-to-head benchmark comparison of Phi-2 across 10 evaluations.

The models

Language Open (Restricted)
Params
2.7B
Context
β€”
Released
Dec 2023

Over the past few months, our Machine Learning Foundations team at Microsoft Research has released a suite of small language models (SLMs) called β€œPhi” that ach.

Full Phi-2 specs β†’

Benchmark comparison

Benchmark Phi-2
code
HumanEval 47.6%
MBPP 55%
general
MMLU 52.7%
knowledge
ARC-Challenge 61.1
math
GSM8K 57.2%
MATH 3.5%
reasoning
BIG-Bench Hard 43.4%
HellaSwag 73.1
Winogrande 74.4
safety
TruthfulQA 44.5%

Best result per row highlighted in cyan. Each benchmark links to its definition and sources; each model links to its full scorecard.

Frequently asked questions

Which of these models is best for coding? β–Ά

Phi-2 has the strongest result on HumanEval among the models compared here. See the code-category rows in the table for the full picture.

How many benchmarks are compared? β–Ά

This comparison covers 10 benchmarks on which at least one of the selected models has a published score.

Where do the benchmark scores come from? β–Ά

Scores are aggregated from official model cards, technical reports and standard public evaluations, and link back to each benchmark's source. They are updated as new results are published.

Explore further

Build a different comparison

Models (0 selected)

Benchmarks (auto)

Select at least two models.