Model comparison

Llama 3.1-8B vs Phi-2

Llama 3.1-8B has enough public results to be ranked (#352); Phi-2 does not yet, so treat this comparison as directional.

Last verified . 4 shared benchmarks.

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Phi-2 Microsoft

—

Unranked

Summary

  • They share 4 benchmarks with published results for both.

Side by side

Llama 3.1-8B and Phi-2 specifications
Llama 3.1-8BPhi-2
ProviderMetaMicrosoft
Noometry Index23.0—
Released2024-07-232023-12-12
WeightsOpenOpen
Context window128K—
Max output4K—
Input $ / M tokens$0.05—
Output $ / M tokens$0.08—
Results tracked4311

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

Category by category

Coding Not comparable

Llama 3.1-8B: 20.2 (#340), Phi-2: —

Coding benchmarks
BenchmarkLlama 3.1-8BPhi-2
HumanEval+62.8%45.1%
MBPP+55.6%54.2%
SciCode13.2%—
WeirdML1.7%—
BigCodeBench Instruct32.8%—
LMArena Coding1195—
BigCodeBench Complete40.5%—

Agentic & Tool Use Not comparable

Llama 3.1-8B: 22.5 (#131), Phi-2: —

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-8BPhi-2
Berkeley Function Calling Leaderboard25.8%—
BALROG15.1%—

Reasoning Not comparable

Llama 3.1-8B: 14.9 (#321), Phi-2: —

Reasoning benchmarks
BenchmarkLlama 3.1-8BPhi-2
Epoch Capabilities Index116.57107.94
CritPt0%—
Chess Puzzles0%—
LMArena Hard Prompts1175—
DTBench50.9%—
LMCA5.4%—
Adversarial NLI—42.5%
BIG-Bench Hard—59.4%
HellaSwag—53.6%
PIQA81.2%—
WinoGrande—54.7%

Math Not comparable

Llama 3.1-8B: 10.2 (#317), Phi-2: —

Math benchmarks
BenchmarkLlama 3.1-8BPhi-2
OTIS Mock AIME 2024-20251.7%—
Omni-MATH13.7%—
LMArena Math1179—
MATH Level 522.9%—
GSM8K82.4%—

Knowledge Not comparable

Llama 3.1-8B: 8.0 (#307), Phi-2: —

Knowledge benchmarks
BenchmarkLlama 3.1-8BPhi-2
MMLU56.1%58.4%
GPQA Diamond27%—
MMLU-Pro40.6%—
GPQA (HELM)24.7%—
LMArena Expert1144—
ARC (AI2) Challenge—75.9%
BoolQ82.8%—
OpenBookQA—73.6%
TriviaQA—45.2%

Multilingual Not comparable

Llama 3.1-8B: 34.0 (#249), Phi-2: —

Multilingual benchmarks
BenchmarkLlama 3.1-8BPhi-2
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-2: —

Instruction Following benchmarks
BenchmarkLlama 3.1-8BPhi-2
IFEval74.3%—
LMArena Instruction Following1159—

Long Context Not comparable

Llama 3.1-8B: 35.8 (#238), Phi-2: —

Long Context benchmarks
BenchmarkLlama 3.1-8BPhi-2
LMArena Longer Query1182—

Writing & Preference Not comparable

Llama 3.1-8B: 29.7 (#290), Phi-2: —

Writing & Preference benchmarks
BenchmarkLlama 3.1-8BPhi-2
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-2?

Llama 3.1-8B has enough public results to be ranked (#352); Phi-2 does not yet, so treat this comparison as directional.

How many benchmarks do Llama 3.1-8B and Phi-2 share?

4 benchmarks have published results for both models. Llama 3.1-8B has 43 scored results on Noometry and Phi-2 has 11.

Related comparisons

Go deeper