Model comparison

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

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

Last verified . 17 shared benchmarks.

Llama 2-13B Meta

29.6

Rank #309 Confirmed

Phi 3 Medium 4k Instruct Microsoft

33.0

Rank #250 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 21.7 to 12.8.

Side by side

Llama 2-13B and Phi 3 Medium 4k Instruct specifications
Llama 2-13BPhi 3 Medium 4k Instruct
ProviderMetaMicrosoft
Noometry Index29.633.0
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.9 (#291), Phi 3 Medium 4k Instruct: 32.9 (#268)

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

Reasoning Phi 3 Medium 4k Instruct leads

Llama 2-13B: 12.8 (#337), Phi 3 Medium 4k Instruct: 21.7 (#214)

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

Math Phi 3 Medium 4k Instruct leads

Llama 2-13B: 31.1 (#229), Phi 3 Medium 4k Instruct: 33.4 (#202)

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

Knowledge Phi 3 Medium 4k Instruct leads

Llama 2-13B: 28.1 (#249), Phi 3 Medium 4k Instruct: 30.2 (#229)

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.5 (#279), Phi 3 Medium 4k Instruct: 30.6 (#263)

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

Instruction Following Phi 3 Medium 4k Instruct leads

Llama 2-13B: 53.3 (#287), Phi 3 Medium 4k Instruct: 57.6 (#268)

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

Long Context Phi 3 Medium 4k Instruct leads

Llama 2-13B: 32.3 (#269), Phi 3 Medium 4k Instruct: 34.0 (#255)

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

Writing & Preference Phi 3 Medium 4k Instruct leads

Llama 2-13B: 29.8 (#289), Phi 3 Medium 4k Instruct: 34.1 (#272)

Writing & Preference benchmarks
BenchmarkLlama 2-13BPhi 3 Medium 4k Instruct
LMArena Text10841138
LMArena Creative Writing10471107
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 33.0 to 29.6 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.9 versus 30.9 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