Model comparison

Llama 2-13B vs Phi 3 Medium 4k Instruct

Phi 3 Medium 4k Instruct is the stronger model overall, scoring 32.4 to 29.1 on the Noometry Index.

Last verified . 17 shared benchmarks.

Llama 2-13B Meta

29.1

Rank #304 Confirmed

Phi 3 Medium 4k Instruct Microsoft

32.4

Rank #246 Confirmed

Summary

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

Side by side

Llama 2-13B and Phi 3 Medium 4k Instruct specifications
Llama 2-13BPhi 3 Medium 4k Instruct
ProviderMetaMicrosoft
Noometry Index29.132.4
Released2023-07-18—
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked3217

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

Category by category

Coding Phi 3 Medium 4k Instruct leads

Llama 2-13B: 30.4 (#287), Phi 3 Medium 4k Instruct: 32.3 (#263)

Coding benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Coding10621130

Reasoning Phi 3 Medium 4k Instruct leads

Llama 2-13B: 12.3 (#333), Phi 3 Medium 4k Instruct: 20.8 (#214)

Reasoning benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Hard Prompts10511127
Chess Puzzles0%—
DTBench42.2%—
BIG-Bench Hard58.2%—
Epoch Capabilities Index105.8—
HellaSwag80.7%—
LAMBADA76.5%—
PIQA80.8%—
WinoGrande72.8%—

Math Phi 3 Medium 4k Instruct leads

Llama 2-13B: 28.7 (#226), Phi 3 Medium 4k Instruct: 30.9 (#202)

Math benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Math10651173
GSM8K36.9%—

Knowledge Phi 3 Medium 4k Instruct leads

Llama 2-13B: 27.5 (#244), Phi 3 Medium 4k Instruct: 29.6 (#226)

Knowledge benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Expert10301108
ARC (AI2) Challenge60.3%—
BoolQ82.4%—
MMLU55.6%—
OpenBookQA57%—
TriviaQA79.6%—

Multimodal Not comparable

Llama 2-13B: —, Phi 3 Medium 4k Instruct: —

Multimodal benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
ScienceQA55.8%—

Multilingual Phi 3 Medium 4k Instruct leads

Llama 2-13B: 26.7 (#274), Phi 3 Medium 4k Instruct: 30.8 (#258)

Multilingual benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Non-English10241094
LMArena Chinese10011108
LMArena French10431109
LMArena German10091101
LMArena Japanese8941042
LMArena Korean953954
LMArena Russian10551145
LMArena Spanish10861095

Instruction Following Phi 3 Medium 4k Instruct leads

Llama 2-13B: 53.5 (#282), Phi 3 Medium 4k Instruct: 57.8 (#263)

Instruction Following benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Instruction Following10461114

Long Context Phi 3 Medium 4k Instruct leads

Llama 2-13B: 32.3 (#264), Phi 3 Medium 4k Instruct: 33.9 (#250)

Long Context benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Longer Query10641120

Writing & Preference Phi 3 Medium 4k Instruct leads

Llama 2-13B: 30.0 (#284), Phi 3 Medium 4k Instruct: 34.3 (#267)

Writing & Preference benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Text10851138
LMArena Creative Writing10471106
LMArena Multi-Turn10501088

Frequently asked questions

Is Llama 2-13B better than Phi 3 Medium 4k Instruct?

Phi 3 Medium 4k Instruct is the stronger model overall, scoring 32.4 to 29.1 on the Noometry Index.

Is Llama 2-13B or Phi 3 Medium 4k Instruct better for coding?

Phi 3 Medium 4k Instruct scores higher on coding benchmarks: 32.3 versus 30.4 in the Noometry coding category.

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

17 benchmarks have published results for both models. Llama 2-13B has 32 scored results on Noometry and Phi 3 Medium 4k Instruct has 17.

Related comparisons

Go deeper