Skip to content
llmmodels

Code Llama-7B vs Phi-1

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

SpecCode Llama-7BPhi-1
ProviderMetaMicrosoft
ReleasedAug 14, 2023Oct 2, 2023 (better)
TypeCode modelCode model
Parameters6.7B1.4B
Context window——
Max output——
Input price / 1M——
Output price / 1M——
Input modalitiestexttext
Open weightsYesYes
Licensellama2mit
Reasoning modeNoNo
Tool callingNoNo
API providers——
MMLU—37.6%
HellaSwag—47.6%

About Code Llama-7B

Code Llama-7B is an open-weight code model from Meta, released Aug 14, 2023. It has 6.7B parameters. Full Code Llama-7B specs →

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 →

Compare other models

FAQ

Which is better, Code Llama-7B or Phi-1?

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

Are Code Llama-7B and Phi-1 open source?

Code Llama-7B is open-weight; Phi-1 is open-weight.