Model comparison

Llama 3.1-405B vs Phi-4

Llama 3.1-405B and Phi-4 score almost the same on the Noometry Index (30.7 vs 31.2), so choose on price, context window or the category you care about most.

Last verified . 23 shared benchmarks.

Llama 3.1-405B Meta

30.7

Rank #288 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 23 benchmarks with published results for both. Llama 3.1-405B scores higher in 3 categories and Phi-4 in 6 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in instruction following, where Llama 3.1-405B leads 65.9 to 60.4.
  • The biggest single-benchmark swing is MATH Level 5: 49.8% for Llama 3.1-405B and 64.9% for Phi-4.

Side by side

Llama 3.1-405B and Phi-4 specifications
Llama 3.1-405BPhi-4
ProviderMetaMicrosoft
Noometry Index30.731.2
Released2024-07-232024-12-11
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.07
Output $ / M tokens—$0.14
Results tracked4237

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

Category by category

Coding Phi-4 leads

Llama 3.1-405B: 33.1 (#262), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Coding12911231
WeirdML21.4%—
BigCodeBench Instruct—45.5%
LiveBench Coding—30.7%
BigCodeBench Complete—55.4%

Agentic & Tool Use Phi-4 leads

Llama 3.1-405B: 21.0 (#140), Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-405BPhi-4
Berkeley Function Calling Leaderboard—28.8%
TheAgentCompany7.4%—
Cybench7.5%—
BALROG—11.6%

Reasoning Too close to call

Llama 3.1-405B: 16.8 (#300), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Hard Prompts12691220
Epoch Capabilities Index128.75130.42
SimpleBench23%—
Kagi LLM Benchmark45%—
Chess Puzzles—1%
LiveBench Reasoning—47.8%
DTBench61.4%—
LiveBench Data Analysis—45.2%
BIG-Bench Hard82.9%—
ForecastBench59.9—
HellaSwag89.2%—
LiveBench—41.6%
PIQA85.9%—
WinoGrande89.2%—

Math Phi-4 leads

Llama 3.1-405B: 18.4 (#290), Phi-4: 20.8 (#285)

Math benchmarks
BenchmarkLlama 3.1-405BPhi-4
OTIS Mock AIME 2024-20259.7%13.8%
LMArena Math12811246
MATH Level 549.8%64.9%
Omni-MATH24.9%—
LiveBench Math—42%

Knowledge Phi-4 leads

Llama 3.1-405B: 30.4 (#227), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkLlama 3.1-405BPhi-4
GPQA Diamond50.9%56.1%
Confabulations17.6%29.4%
LMArena Expert12431203
MMLU84.5%84.8%
MMLU-Pro72.3%—
Vectara Hallucination Rate—3.7%
GPQA (HELM)52.2%—
ARC (AI2) Challenge95.3%—
TriviaQA82.7%—

Multilingual Llama 3.1-405B leads

Llama 3.1-405B: 40.7 (#214), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Non-English12481197
LMArena Chinese12421212
LMArena French12791224
LMArena German12521222
LMArena Japanese12081158
LMArena Korean11841151
LMArena Russian12651209
LMArena Spanish12601234

Instruction Following Llama 3.1-405B leads

Llama 3.1-405B: 65.9 (#214), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Instruction Following12591201
LiveBench Instruction Following—58.4%
IFEval81.1%—

Long Context Llama 3.1-405B leads

Llama 3.1-405B: 38.4 (#197), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Longer Query12661217

Writing & Preference Phi-4 leads

Llama 3.1-405B: 38.9 (#251), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkLlama 3.1-405BPhi-4
LMArena Text12841217
LMArena Creative Writing12621182
LMArena Multi-Turn12971206
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing870—
WildBench78.3%—
LiveBench Language—25.6%

Frequently asked questions

Is Llama 3.1-405B better than Phi-4?

Llama 3.1-405B and Phi-4 score almost the same on the Noometry Index (30.7 vs 31.2), so choose on price, context window or the category you care about most.

Is Llama 3.1-405B or Phi-4 better for coding?

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

How many benchmarks do Llama 3.1-405B and Phi-4 share?

23 benchmarks have published results for both models. Llama 3.1-405B has 42 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper