Model comparison

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

Llama 2-7B and Phi 3 Mini 128k Instruct score almost the same on the Noometry Index (28.6 vs 29.1), so choose on price, context window or the category you care about most.

Last verified . 15 shared benchmarks.

Llama 2-7B Meta

28.6

Rank #315 Confirmed

Phi 3 Mini 128k Instruct Microsoft

29.1

Rank #303 Confirmed

Summary

  • They share 15 benchmarks with published results for both. Llama 2-7B scores higher in 4 categories and Phi 3 Mini 128k Instruct in 4 categories; 4 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where Phi 3 Mini 128k Instruct leads 18.7 to 15.1.

Side by side

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

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

Category by category

Coding Too close to call

Llama 2-7B: 28.7 (#302), Phi 3 Mini 128k Instruct: 28.3 (#307)

Coding benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Coding10021040
BigCodeBench Instruct—29.6%
BigCodeBench Complete—40.6%

Reasoning Phi 3 Mini 128k Instruct leads

Llama 2-7B: 15.1 (#309), Phi 3 Mini 128k Instruct: 18.7 (#254)

Reasoning benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Hard Prompts10091028
Chess Puzzles0%—
BIG-Bench Hard39.2%—
Epoch Capabilities Index98.54—
HellaSwag77.2%—
LAMBADA73.3%—
PIQA78.8%—
WinoGrande69.2%—

Math Too close to call

Llama 2-7B: 28.2 (#231), Phi 3 Mini 128k Instruct: 29.2 (#220)

Math benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Math10421089
GSM8K16.7%—

Knowledge Llama 2-7B leads

Llama 2-7B: 27.7 (#243), Phi 3 Mini 128k Instruct: 26.3 (#251)

Knowledge benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Expert1036984
ARC (AI2) Challenge45.9%—
BoolQ77.9%—
MMLU45.8%—
OpenBookQA58.6%—
TriviaQA73.7%—

Multimodal Not comparable

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

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

Multilingual Phi 3 Mini 128k Instruct leads

Llama 2-7B: 23.9 (#288), Phi 3 Mini 128k Instruct: 25.4 (#280)

Multilingual benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Non-English9731000
LMArena Chinese9731016
LMArena French9691038
LMArena German9781006
LMArena Russian9951004
LMArena Spanish10071058
LMArena Japanese—899
LMArena Korean—856

Instruction Following Phi 3 Mini 128k Instruct leads

Llama 2-7B: 51.0 (#293), Phi 3 Mini 128k Instruct: 52.1 (#289)

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Instruction Following10061023

Long Context Too close to call

Llama 2-7B: 30.4 (#282), Phi 3 Mini 128k Instruct: 30.3 (#284)

Long Context benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Longer Query999996

Writing & Preference Too close to call

Llama 2-7B: 28.1 (#293), Phi 3 Mini 128k Instruct: 27.3 (#296)

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 128k Instruct
LMArena Text10531050
LMArena Creative Writing10331024
LMArena Multi-Turn1029989

Frequently asked questions

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

Llama 2-7B and Phi 3 Mini 128k Instruct score almost the same on the Noometry Index (28.6 vs 29.1), so choose on price, context window or the category you care about most.

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

They score almost the same on coding (28.7 vs 28.3); test both on your own repository before choosing.

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

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

Related comparisons

Go deeper