Skip to content
llmmodels

Phi-2 vs Qwen2.5-Coder (7B)

Qwen2.5-Coder (7B) wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (107.4 vs 96.2).

SpecPhi-2Qwen2.5-Coder (7B)
ProviderMicrosoftAlibaba (Qwen)
ReleasedDec 12, 2023Sep 18, 2024 (better)
TypeCode modelCode model
Parameters2.8B7.6B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
Licensemitapache-2.0
Reasoning modeNoNo
Tool callingNoNo
API providers——
Epoch Capabilities Index96.2107.4 (better)
MMLU58.4%68.0% (better)
GSM8K—86.7%
HellaSwag53.6%76.8% (better)

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 Qwen2.5-Coder (7B)

Qwen2.5-Coder (7B) is an open-weight code model from Alibaba (Qwen), released Sep 18, 2024. It has 7.6B parameters. It scores 107.4 on the Epoch Capabilities Index. Full Qwen2.5-Coder (7B) specs →

Compare other models

FAQ

Which is better, Phi-2 or Qwen2.5-Coder (7B)?

Qwen2.5-Coder (7B) wins 3 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (107.4 vs 96.2).

Are Phi-2 and Qwen2.5-Coder (7B) open source?

Phi-2 is open-weight; Qwen2.5-Coder (7B) is open-weight.