Skip to content
llmmodels

Phi-1 vs Phi-2

Phi-2 wins 2 of 2 benchmarks both models report.

SpecPhi-1Phi-2
ProviderMicrosoftMicrosoft
ReleasedOct 2, 2023Dec 12, 2023 (better)
TypeCode modelCode model
Parameters1.4B2.8B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
Licensemitmit
Reasoning modeNoNo
Tool callingNoNo
API providers——
Epoch Capabilities Index—96.2
MMLU37.6%58.4% (better)
HellaSwag47.6%53.6% (better)

About Phi-1

Phi-1 is an open-weight code model from Microsoft, released Oct 2, 2023. It has 1.4B parameters. Full Phi-1 specs →

About Phi-2

Phi-2 is an open-weight code model from Microsoft, released Dec 12, 2023. It has 2.8B parameters. It scores 96.2 on the Epoch Capabilities Index. Full Phi-2 specs →

Compare other models

FAQ

Which is better, Phi-1 or Phi-2?

Phi-2 wins 2 of 2 benchmarks both models report.

Are Phi-1 and Phi-2 open source?

Phi-1 is open-weight; Phi-2 is open-weight.