Skip to content
llmmodels

Code Llama-13B vs Phi-2

Code Llama-13B is made by Meta and Phi-2 by Microsoft. See the full spec comparison below.

SpecCode Llama-13BPhi-2
ProviderMetaMicrosoft
ReleasedAug 14, 2023Dec 12, 2023 (better)
TypeCode modelCode model
Parameters13B2.8B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
Licensellama2mit
Reasoning modeNoNo
Tool callingNoNo
API providers——
Epoch Capabilities Index—96.2
MMLU—58.4%
HellaSwag—53.6%

About Code Llama-13B

Code Llama-13B is an open-weight code model from Meta, released Aug 14, 2023. It has 13B parameters. Full Code 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, Code Llama-13B or Phi-2?

Code Llama-13B is made by Meta and Phi-2 by Microsoft. See the full spec comparison below.

Are Code Llama-13B and Phi-2 open source?

Code Llama-13B is open-weight; Phi-2 is open-weight.