Skip to content
llmmodels

Phi-2 vs StarCoder 2 15B

Phi-2 and StarCoder 2 15B are evenly matched on the 2 benchmarks both report.

SpecPhi-2StarCoder 2 15B
ProviderMicrosoftNVIDIA
ReleasedDec 12, 2023Feb 29, 2024 (better)
TypeCode modelCode model
Parameters2.8B15B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
LicensemitOpen (restricted)
Reasoning modeNoNo
Tool callingNoNo
API providers——
Epoch Capabilities Index96.2 (better)96.1
MMLU58.4%64.1% (better)
GSM8K—57.7%
HellaSwag53.6%—

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 →

About StarCoder 2 15B

StarCoder 2 15B is an open-weight code model from NVIDIA, released Feb 29, 2024. It has 15B parameters. It scores 96.1 on the Epoch Capabilities Index. Full StarCoder 2 15B specs →

Compare other models

FAQ

Which is better, Phi-2 or StarCoder 2 15B?

Phi-2 and StarCoder 2 15B are evenly matched on the 2 benchmarks both report.

Are Phi-2 and StarCoder 2 15B open source?

Phi-2 is open-weight; StarCoder 2 15B is open-weight.