Model comparison

Llama 2-7B vs Phi 3 Mini 4k Instruct

Llama 2-7B is the stronger model overall, scoring 28.6 to 27.4 on the Noometry Index.

Last verified . 23 shared benchmarks.

Llama 2-7B Meta

28.6

Rank #315 Confirmed

Phi 3 Mini 4k Instruct Microsoft

27.4

Rank #324 Confirmed

Summary

  • They share 23 benchmarks with published results for both. Llama 2-7B scores higher in 5 categories and Phi 3 Mini 4k Instruct in 3 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in math, where Llama 2-7B leads 28.2 to 24.5.

Side by side

Llama 2-7B and Phi 3 Mini 4k Instruct specifications
Llama 2-7BPhi 3 Mini 4k Instruct
ProviderMetaMicrosoft
Noometry Index28.627.4
Released2023-07-182024-04-23
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2935

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

Category by category

Coding Llama 2-7B leads

Llama 2-7B: 28.7 (#302), Phi 3 Mini 4k Instruct: 26.1 (#319)

Coding benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Coding10021093
LiveBench Coding—15.5%
HumanEval+—59.1%
MBPP+—54.2%

Reasoning Llama 2-7B leads

Llama 2-7B: 15.1 (#309), Phi 3 Mini 4k Instruct: 13.6 (#326)

Reasoning benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
Chess Puzzles0%0%
LMArena Hard Prompts10091072
BIG-Bench Hard39.2%71.7%
HellaSwag77.2%76.7%
WinoGrande69.2%70.8%
LiveBench Reasoning—26.8%
LiveBench Data Analysis—34.7%
Adversarial NLI—52.8%
Epoch Capabilities Index98.54—
LAMBADA73.3%—
LiveBench—22.4%
PIQA78.8%—

Math Llama 2-7B leads

Llama 2-7B: 28.2 (#231), Phi 3 Mini 4k Instruct: 24.5 (#258)

Math benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Math10421111
LiveBench Math—15.7%
GSM8K16.7%—

Knowledge Too close to call

Llama 2-7B: 27.7 (#243), Phi 3 Mini 4k Instruct: 27.9 (#241)

Knowledge benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Expert10361045
ARC (AI2) Challenge45.9%84.9%
MMLU45.8%68.8%
OpenBookQA58.6%88%
TriviaQA73.7%64%
BoolQ77.9%—

Multimodal Not comparable

Llama 2-7B: —, Phi 3 Mini 4k Instruct: —

Multimodal benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
ScienceQA43.1%—

Multilingual Phi 3 Mini 4k Instruct leads

Llama 2-7B: 23.9 (#288), Phi 3 Mini 4k Instruct: 26.5 (#275)

Multilingual benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Non-English9731021
LMArena Chinese9731021
LMArena French9691075
LMArena German9781044
LMArena Russian9951022
LMArena Spanish10071084
LMArena Japanese—935
LMArena Korean—905

Instruction Following Llama 2-7B leads

Llama 2-7B: 51.0 (#293), Phi 3 Mini 4k Instruct: 48.0 (#298)

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Instruction Following10061053
LiveBench Instruction Following—39.1%

Long Context Phi 3 Mini 4k Instruct leads

Llama 2-7B: 30.4 (#282), Phi 3 Mini 4k Instruct: 31.7 (#271)

Long Context benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Longer Query9991044

Writing & Preference Too close to call

Llama 2-7B: 28.1 (#293), Phi 3 Mini 4k Instruct: 27.7 (#295)

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct
LMArena Text10531073
LMArena Creative Writing10331037
LMArena Multi-Turn10291018
LiveBench Language—9.2%

Frequently asked questions

Is Llama 2-7B better than Phi 3 Mini 4k Instruct?

Llama 2-7B is the stronger model overall, scoring 28.6 to 27.4 on the Noometry Index.

Is Llama 2-7B or Phi 3 Mini 4k Instruct better for coding?

Llama 2-7B scores higher on coding benchmarks: 28.7 versus 26.1 in the Noometry coding category.

How many benchmarks do Llama 2-7B and Phi 3 Mini 4k Instruct share?

23 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and Phi 3 Mini 4k Instruct has 35.

Related comparisons

Go deeper