Model comparison

Llama 2-7B vs phi-3-medium 14B

Llama 2-7B and phi-3-medium 14B score almost the same on the Noometry Index (29.1 vs 29.7), so choose on price, context window or the category you care about most.

Last verified . 8 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

phi-3-medium 14B Microsoft

29.7

Rank #306 Reported

Summary

  • They share 8 benchmarks with published results for both. Llama 2-7B scores higher in 2 categories and phi-3-medium 14B in 1 category; 3 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Llama 2-7B leads 28.2 to 9.1.

Side by side

Llama 2-7B and phi-3-medium 14B specifications
Llama 2-7Bphi-3-medium 14B
ProviderMetaMicrosoft
Noometry Index29.129.7
Released2023-07-182024-04-23
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2913

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

Category by category

Coding phi-3-medium 14B leads

Llama 2-7B: 29.2 (#307), phi-3-medium 14B: 36.8 (#201)

Coding benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
BigCodeBench Instruct—37.6%
LMArena Coding1002—
BigCodeBench Complete—48.7%

Reasoning Not comparable

Llama 2-7B: 15.7 (#312), phi-3-medium 14B: —

Reasoning benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
BIG-Bench Hard39.2%81.4%
Epoch Capabilities Index99.06121.23
HellaSwag77.2%82.4%
WinoGrande69.2%81.5%
Chess Puzzles0%—
LMArena Hard Prompts1009—
Adversarial NLI—55.8%
LAMBADA73.3%—
PIQA78.8%—

Math Llama 2-7B leads

Llama 2-7B: 30.7 (#233), phi-3-medium 14B: 27.3 (#250)

Math benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
LMArena Math1042—
MATH Level 5—17.6%
GSM8K16.7%—

Knowledge Llama 2-7B leads

Llama 2-7B: 28.2 (#248), phi-3-medium 14B: 9.1 (#306)

Knowledge benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
ARC (AI2) Challenge45.9%91.6%
MMLU45.8%78%
OpenBookQA58.6%87.4%
TriviaQA73.7%73.9%
GPQA Diamond—27.6%
LMArena Expert1036—
BoolQ77.9%—

Multimodal Not comparable

Llama 2-7B: —, phi-3-medium 14B: —

Multimodal benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
ScienceQA43.1%—

Multilingual Not comparable

Llama 2-7B: 23.8 (#293), phi-3-medium 14B: —

Multilingual benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
LMArena Non-English973—
LMArena Chinese973—
LMArena French970—
LMArena German978—
LMArena Russian995—
LMArena Spanish1007—

Instruction Following Not comparable

Llama 2-7B: 50.8 (#298), phi-3-medium 14B: —

Instruction Following benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
LMArena Instruction Following1006—

Long Context Not comparable

Llama 2-7B: 30.4 (#287), phi-3-medium 14B: —

Long Context benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
LMArena Longer Query999—

Writing & Preference Not comparable

Llama 2-7B: 28.0 (#298), phi-3-medium 14B: —

Writing & Preference benchmarks
BenchmarkLlama 2-7Bphi-3-medium 14B
LMArena Text1053—
LMArena Creative Writing1033—
LMArena Multi-Turn1029—

Frequently asked questions

Is Llama 2-7B better than phi-3-medium 14B?

Llama 2-7B and phi-3-medium 14B score almost the same on the Noometry Index (29.1 vs 29.7), so choose on price, context window or the category you care about most.

Is Llama 2-7B or phi-3-medium 14B better for coding?

phi-3-medium 14B scores higher on coding benchmarks: 36.8 versus 29.2 in the Noometry coding category.

How many benchmarks do Llama 2-7B and phi-3-medium 14B share?

8 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and phi-3-medium 14B has 13.

Related comparisons

Go deeper