Model comparison

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

Phi 3 Mini 4k Instruct June 2024 is the stronger model overall, scoring 31.3 to 29.1 on the Noometry Index.

Last verified . 13 shared benchmarks.

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 13 benchmarks with published results for both. Llama 2-7B scores higher in 0 categories and Phi 3 Mini 4k Instruct June 2024 in 8 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where Phi 3 Mini 4k Instruct June 2024 leads 20.8 to 15.7.

Side by side

Llama 2-7B and Phi 3 Mini 4k Instruct June 2024 specifications
Llama 2-7BPhi 3 Mini 4k Instruct June 2024
ProviderMetaMicrosoft
Noometry Index29.131.3
Released2023-07-18—
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2915

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

Category by category

Coding Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 29.2 (#307), Phi 3 Mini 4k Instruct June 2024: 31.8 (#279)

Coding benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Coding10021093

Reasoning Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 15.7 (#312), Phi 3 Mini 4k Instruct June 2024: 20.8 (#231)

Reasoning benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Hard Prompts10091087
Chess Puzzles0%—
BIG-Bench Hard39.2%—
Epoch Capabilities Index99.06—
HellaSwag77.2%—
LAMBADA73.3%—
PIQA78.8%—
WinoGrande69.2%—

Math Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 30.7 (#233), Phi 3 Mini 4k Instruct June 2024: 33.0 (#208)

Math benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Math10421152
GSM8K16.7%—

Knowledge Too close to call

Llama 2-7B: 28.2 (#248), Phi 3 Mini 4k Instruct June 2024: 28.6 (#244)

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

Multimodal Not comparable

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

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

Multilingual Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 23.8 (#293), Phi 3 Mini 4k Instruct June 2024: 25.9 (#282)

Multilingual benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Non-English9731013
LMArena Chinese9731033
LMArena German9781031
LMArena Russian9951019
LMArena French970—
LMArena Japanese—954
LMArena Korean—880
LMArena Spanish1007—

Instruction Following Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 50.8 (#298), Phi 3 Mini 4k Instruct June 2024: 54.1 (#282)

Instruction Following benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Instruction Following10061058

Long Context Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 30.4 (#287), Phi 3 Mini 4k Instruct June 2024: 31.7 (#277)

Long Context benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Longer Query9991042

Writing & Preference Phi 3 Mini 4k Instruct June 2024 leads

Llama 2-7B: 28.0 (#298), Phi 3 Mini 4k Instruct June 2024: 29.6 (#294)

Writing & Preference benchmarks
BenchmarkLlama 2-7BPhi 3 Mini 4k Instruct June 2024
LMArena Text10531080
LMArena Creative Writing10331045
LMArena Multi-Turn10291049

Frequently asked questions

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

Phi 3 Mini 4k Instruct June 2024 is the stronger model overall, scoring 31.3 to 29.1 on the Noometry Index.

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

Phi 3 Mini 4k Instruct June 2024 scores higher on coding benchmarks: 31.8 versus 29.2 in the Noometry coding category.

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

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

Related comparisons

Go deeper