Model comparison

Llama 2-7B vs Phi 3 Small 8k Instruct

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

Last verified . 22 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Phi 3 Small 8k Instruct Microsoft

29.3

Rank #314 Confirmed

Summary

  • They share 22 benchmarks with published results for both. Llama 2-7B scores higher in 3 categories and Phi 3 Small 8k Instruct in 5 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in multilingual, where Phi 3 Small 8k Instruct leads 28.5 to 23.8.

Side by side

Llama 2-7B and Phi 3 Small 8k Instruct specifications
Llama 2-7BPhi 3 Small 8k Instruct
ProviderMetaMicrosoft
Noometry Index29.129.3
Released2023-07-182024-04-23
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2932

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 Small 8k Instruct: 27.9 (#318)

Coding benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Coding10021101
LiveBench Coding—20.3%

Reasoning Too close to call

Llama 2-7B: 15.7 (#312), Phi 3 Small 8k Instruct: 14.8 (#323)

Reasoning benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Hard Prompts10091100
BIG-Bench Hard39.2%79.1%
HellaSwag77.2%77%
WinoGrande69.2%81.5%
Chess Puzzles0%—
LiveBench Reasoning—15.9%
LiveBench Data Analysis—30.3%
Adversarial NLI—58.1%
Epoch Capabilities Index99.06—
LAMBADA73.3%—
LiveBench—24%
PIQA78.8%—

Math Llama 2-7B leads

Llama 2-7B: 30.7 (#233), Phi 3 Small 8k Instruct: 27.6 (#248)

Math benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Math10421151
LiveBench Math—17.6%
GSM8K16.7%—

Knowledge Too close to call

Llama 2-7B: 28.2 (#248), Phi 3 Small 8k Instruct: 29.1 (#240)

Knowledge benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Expert10361067
ARC (AI2) Challenge45.9%90.7%
MMLU45.8%75.7%
OpenBookQA58.6%88%
TriviaQA73.7%58.1%
BoolQ77.9%—

Multimodal Not comparable

Llama 2-7B: —, Phi 3 Small 8k Instruct: —

Multimodal benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
ScienceQA43.1%—

Multilingual Phi 3 Small 8k Instruct leads

Llama 2-7B: 23.8 (#293), Phi 3 Small 8k Instruct: 28.5 (#272)

Multilingual benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Non-English9731058
LMArena Chinese9731061
LMArena French9701135
LMArena German9781080
LMArena Russian9951111
LMArena Spanish10071111
LMArena Japanese—966
LMArena Korean—894

Instruction Following Phi 3 Small 8k Instruct leads

Llama 2-7B: 50.8 (#298), Phi 3 Small 8k Instruct: 51.9 (#292)

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Instruction Following10061087
LiveBench Instruction Following—47.2%

Long Context Phi 3 Small 8k Instruct leads

Llama 2-7B: 30.4 (#287), Phi 3 Small 8k Instruct: 33.0 (#267)

Long Context benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Longer Query9991088

Writing & Preference Phi 3 Small 8k Instruct leads

Llama 2-7B: 28.0 (#298), Phi 3 Small 8k Instruct: 31.1 (#284)

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi 3 Small 8k Instruct
LMArena Text10531110
LMArena Creative Writing10331083
LMArena Multi-Turn10291068
LiveBench Language—12.9%

Frequently asked questions

Is Llama 2-7B better than Phi 3 Small 8k Instruct?

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

Is Llama 2-7B or Phi 3 Small 8k Instruct better for coding?

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

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

22 benchmarks have published results for both models. Llama 2-7B has 29 scored results on Noometry and Phi 3 Small 8k Instruct has 32.

Related comparisons

Go deeper