Model comparison

Llama 3.1-8B vs phi-3-medium 14B

phi-3-medium 14B is the stronger model overall, scoring 29.7 to 23.0 on the Noometry Index.

Last verified . 6 shared benchmarks.

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

phi-3-medium 14B Microsoft

29.7

Rank #306 Reported

Summary

  • They share 6 benchmarks with published results for both. Llama 3.1-8B scores higher in 0 categories and phi-3-medium 14B in 3 categories; 3 gaps are clear of the uncertainty.
  • The widest gap is in math, where phi-3-medium 14B leads 27.3 to 10.2.
  • The biggest single-benchmark swing is BigCodeBench Complete: 40.5% for Llama 3.1-8B and 48.7% for phi-3-medium 14B.

Side by side

Llama 3.1-8B and phi-3-medium 14B specifications
Llama 3.1-8Bphi-3-medium 14B
ProviderMetaMicrosoft
Noometry Index23.029.7
Released2024-07-232024-04-23
WeightsOpenOpen
Context window128K—
Max output4K—
Input $ / M tokens$0.05—
Output $ / M tokens$0.08—
Results tracked4313

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

Category by category

Coding phi-3-medium 14B leads

Llama 3.1-8B: 20.2 (#340), phi-3-medium 14B: 36.8 (#201)

Coding benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
BigCodeBench Instruct32.8%37.6%
BigCodeBench Complete40.5%48.7%
SciCode13.2%—
WeirdML1.7%—
LMArena Coding1195—
HumanEval+62.8%—
MBPP+55.6%—

Agentic & Tool Use Not comparable

Llama 3.1-8B: 22.5 (#131), phi-3-medium 14B: —

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
Berkeley Function Calling Leaderboard25.8%—
BALROG15.1%—

Reasoning Not comparable

Llama 3.1-8B: 14.9 (#321), phi-3-medium 14B: —

Reasoning benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
Epoch Capabilities Index116.57121.23
CritPt0%—
Chess Puzzles0%—
LMArena Hard Prompts1175—
DTBench50.9%—
LMCA5.4%—
Adversarial NLI—55.8%
BIG-Bench Hard—81.4%
HellaSwag—82.4%
PIQA81.2%—
WinoGrande—81.5%

Math phi-3-medium 14B leads

Llama 3.1-8B: 10.2 (#317), phi-3-medium 14B: 27.3 (#250)

Math benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
MATH Level 522.9%17.6%
OTIS Mock AIME 2024-20251.7%—
Omni-MATH13.7%—
LMArena Math1179—
GSM8K82.4%—

Knowledge phi-3-medium 14B leads

Llama 3.1-8B: 8.0 (#307), phi-3-medium 14B: 9.1 (#306)

Knowledge benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
GPQA Diamond27%27.6%
MMLU56.1%78%
MMLU-Pro40.6%—
GPQA (HELM)24.7%—
LMArena Expert1144—
ARC (AI2) Challenge—91.6%
BoolQ82.8%—
OpenBookQA—87.4%
TriviaQA—73.9%

Multilingual Not comparable

Llama 3.1-8B: 34.0 (#249), phi-3-medium 14B: —

Multilingual benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
LMArena Non-English1148—
LMArena Chinese1151—
LMArena French1177—
LMArena German1144—
LMArena Japanese1061—
LMArena Korean1053—
LMArena Russian1158—
LMArena Spanish1169—

Instruction Following Not comparable

Llama 3.1-8B: 58.9 (#258), phi-3-medium 14B: —

Instruction Following benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
IFEval74.3%—
LMArena Instruction Following1159—

Long Context Not comparable

Llama 3.1-8B: 35.8 (#238), phi-3-medium 14B: —

Long Context benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
LMArena Longer Query1182—

Writing & Preference Not comparable

Llama 3.1-8B: 29.7 (#290), phi-3-medium 14B: —

Writing & Preference benchmarks
BenchmarkLlama 3.1-8Bphi-3-medium 14B
LMArena Text1187—
LMArena Creative Writing1154—
EQ-Bench Creative Writing713—
WildBench68.7%—
LMArena Multi-Turn1172—

Frequently asked questions

Is Llama 3.1-8B better than phi-3-medium 14B?

phi-3-medium 14B is the stronger model overall, scoring 29.7 to 23.0 on the Noometry Index.

Is Llama 3.1-8B or phi-3-medium 14B better for coding?

phi-3-medium 14B scores higher on coding benchmarks: 36.8 versus 20.2 in the Noometry coding category.

How many benchmarks do Llama 3.1-8B and phi-3-medium 14B share?

6 benchmarks have published results for both models. Llama 3.1-8B has 43 scored results on Noometry and phi-3-medium 14B has 13.

Related comparisons

Go deeper