Model comparison

Llama 2-7B vs Phi-2

Llama 2-7B has enough public results to be ranked (#317); Phi-2 does not yet, so treat this comparison as directional.

Last verified . 8 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Phi-2 Microsoft

—

Unranked

Summary

  • They share 8 benchmarks with published results for both.

Side by side

Llama 2-7B and Phi-2 specifications
Llama 2-7BPhi-2
ProviderMetaMicrosoft
Noometry Index29.1—
Released2023-07-182023-12-12
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2911

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Not comparable

Llama 2-7B: 29.2 (#307), Phi-2: —

Coding benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Coding1002—
HumanEval+—45.1%
MBPP+—54.2%

Reasoning Not comparable

Llama 2-7B: 15.7 (#312), Phi-2: —

Reasoning benchmarks
BenchmarkLlama 2-7BPhi-2
BIG-Bench Hard39.2%59.4%
Epoch Capabilities Index99.06107.94
HellaSwag77.2%53.6%
WinoGrande69.2%54.7%
Chess Puzzles0%—
LMArena Hard Prompts1009—
Adversarial NLI—42.5%
LAMBADA73.3%—
PIQA78.8%—

Math Not comparable

Llama 2-7B: 30.7 (#233), Phi-2: —

Math benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Math1042—
GSM8K16.7%—

Knowledge Not comparable

Llama 2-7B: 28.2 (#248), Phi-2: —

Knowledge benchmarks
BenchmarkLlama 2-7BPhi-2
ARC (AI2) Challenge45.9%75.9%
MMLU45.8%58.4%
OpenBookQA58.6%73.6%
TriviaQA73.7%45.2%
LMArena Expert1036—
BoolQ77.9%—

Multimodal Not comparable

Llama 2-7B: —, Phi-2: —

Multimodal benchmarks
BenchmarkLlama 2-7BPhi-2
ScienceQA43.1%—

Multilingual Not comparable

Llama 2-7B: 23.8 (#293), Phi-2: —

Multilingual benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Non-English973—
LMArena Chinese973—
LMArena French970—
LMArena German978—
LMArena Russian995—
LMArena Spanish1007—

Instruction Following Not comparable

Llama 2-7B: 50.8 (#298), Phi-2: —

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Instruction Following1006—

Long Context Not comparable

Llama 2-7B: 30.4 (#287), Phi-2: —

Long Context benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Longer Query999—

Writing & Preference Not comparable

Llama 2-7B: 28.0 (#298), Phi-2: —

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi-2
LMArena Text1053—
LMArena Creative Writing1033—
LMArena Multi-Turn1029—

Frequently asked questions

Is Llama 2-7B better than Phi-2?

Llama 2-7B has enough public results to be ranked (#317); Phi-2 does not yet, so treat this comparison as directional.

How many benchmarks do Llama 2-7B and Phi-2 share?

8 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and Phi-2 has 11.

Related comparisons

Go deeper