Skip to content
llmmodels

LLaMA-13B vs Phi-2

Phi-2 wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (96.2 vs 85.2).

SpecLLaMA-13BPhi-2
ProviderMetaMicrosoft
ReleasedFeb 27, 2023Dec 12, 2023 (better)
TypeCode modelCode model
Parameters13B2.8B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
LicenseOpen (non-commercial)mit
Reasoning modeNoNo
Tool callingNoNo
API providers——
Epoch Capabilities Index85.296.2 (better)
MMLU47.7%58.4% (better)
GSM8K20.5%—
HellaSwag79.2% (better)53.6%

About LLaMA-13B

LLaMA-13B is an open-weight code model from Meta, released Feb 27, 2023. It has 13B parameters. It scores 85.2 on the Epoch Capabilities Index. Full LLaMA-13B 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, LLaMA-13B or Phi-2?

Phi-2 wins 2 of 3 benchmarks both models report and has a higher Epoch Capabilities Index (96.2 vs 85.2).

Are LLaMA-13B and Phi-2 open source?

LLaMA-13B is open-weight; Phi-2 is open-weight.