Model comparison

Llama 3-8B vs Phi-4

Phi-4 is the stronger model overall, scoring 31.2 to 25.5 on the Noometry Index.

Last verified . 25 shared benchmarks.

Llama 3-8B Meta

25.5

Rank #344 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 25 benchmarks with published results for both. Llama 3-8B scores higher in 0 categories and Phi-4 in 8 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Phi-4 leads 32.6 to 7.8.
  • The biggest single-benchmark swing is MATH Level 5: 6.1% for Llama 3-8B and 64.9% for Phi-4.

Side by side

Llama 3-8B and Phi-4 specifications
Llama 3-8BPhi-4
ProviderMetaMicrosoft
Noometry Index25.531.2
Released2024-04-182024-12-11
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.07
Output $ / M tokens—$0.14
Results tracked3437

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

Category by category

Coding Phi-4 leads

Llama 3-8B: 31.0 (#289), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkLlama 3-8BPhi-4
BigCodeBench Instruct31.9%45.5%
LMArena Coding11521231
BigCodeBench Complete36.9%55.4%
LiveBench Coding—30.7%
HumanEval+56.7%—
MBPP+54.8%—

Agentic & Tool Use Not comparable

Llama 3-8B: —, Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkLlama 3-8BPhi-4
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%

Reasoning Phi-4 leads

Llama 3-8B: 14.3 (#326), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkLlama 3-8BPhi-4
Chess Puzzles0%1%
LMArena Hard Prompts11331220
Epoch Capabilities Index116.45130.42
LiveBench Reasoning—47.8%
DTBench43.9%—
LiveBench Data Analysis—45.2%
Adversarial NLI57.3%—
ForecastBench58.6—
LiveBench—41.6%
WinoGrande75.7%—

Math Phi-4 leads

Llama 3-8B: 8.8 (#323), Phi-4: 20.8 (#285)

Math benchmarks
BenchmarkLlama 3-8BPhi-4
OTIS Mock AIME 2024-20251.9%13.8%
LMArena Math11511246
MATH Level 56.1%64.9%
LiveBench Math—42%

Knowledge Phi-4 leads

Llama 3-8B: 7.8 (#308), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkLlama 3-8BPhi-4
GPQA Diamond26.1%56.1%
LMArena Expert11131203
MMLU68.8%84.8%
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
ARC (AI2) Challenge82.8%—
OpenBookQA82.6%—
TriviaQA67.7%—

Multilingual Phi-4 leads

Llama 3-8B: 30.8 (#261), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkLlama 3-8BPhi-4
LMArena Non-English10981197
LMArena Chinese10761212
LMArena French11591224
LMArena German11041222
LMArena Japanese9671158
LMArena Korean10041151
LMArena Russian11091209
LMArena Spanish11731234

Instruction Following Phi-4 leads

Llama 3-8B: 58.4 (#260), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkLlama 3-8BPhi-4
LMArena Instruction Following11271201
LiveBench Instruction Following—58.4%

Long Context Phi-4 leads

Llama 3-8B: 34.2 (#251), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkLlama 3-8BPhi-4
LMArena Longer Query11281217

Writing & Preference Phi-4 leads

Llama 3-8B: 37.5 (#256), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkLlama 3-8BPhi-4
LMArena Text11661217
LMArena Creative Writing11501182
LMArena Multi-Turn11521206
Short-Story Creative Writing—62.6%
LiveBench Language—25.6%

Frequently asked questions

Is Llama 3-8B better than Phi-4?

Phi-4 is the stronger model overall, scoring 31.2 to 25.5 on the Noometry Index.

Is Llama 3-8B or Phi-4 better for coding?

Phi-4 scores higher on coding benchmarks: 34.4 versus 31.0 in the Noometry coding category.

How many benchmarks do Llama 3-8B and Phi-4 share?

25 benchmarks have published results for both models. Llama 3-8B has 34 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper