Model comparison

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

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

Last verified . 23 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Phi 3 Mini 4k Instruct Microsoft

27.9

Rank #328 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 30.7 to 26.6.

Side by side

Llama 2-7B and Phi 3 Mini 4k Instruct specifications
Llama 2-7BPhi 3 Mini 4k Instruct
ProviderMetaMicrosoft
Noometry Index29.127.9
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: 29.2 (#307), Phi 3 Mini 4k Instruct: 26.6 (#323)

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.7 (#312), Phi 3 Mini 4k Instruct: 14.1 (#328)

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 Index99.06—
LAMBADA73.3%—
LiveBench—22.4%
PIQA78.8%—

Math Llama 2-7B leads

Llama 2-7B: 30.7 (#233), Phi 3 Mini 4k Instruct: 26.6 (#257)

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: 28.2 (#248), Phi 3 Mini 4k Instruct: 28.5 (#246)

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.8 (#293), Phi 3 Mini 4k Instruct: 26.3 (#280)

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

Instruction Following Llama 2-7B leads

Llama 2-7B: 50.8 (#298), Phi 3 Mini 4k Instruct: 47.7 (#303)

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 (#287), Phi 3 Mini 4k Instruct: 31.7 (#276)

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

Writing & Preference Too close to call

Llama 2-7B: 28.0 (#298), Phi 3 Mini 4k Instruct: 27.6 (#300)

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 29.1 to 27.9 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: 29.2 versus 26.6 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