Model comparison

Llama 3.1-8B vs Phi 3 Mini 4k Instruct June 2024

Phi 3 Mini 4k Instruct June 2024 is the stronger model overall, scoring 31.3 to 23.0 on the Noometry Index.

Last verified . 15 shared benchmarks.

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 15 benchmarks with published results for both. Llama 3.1-8B scores higher in 4 categories and Phi 3 Mini 4k Instruct June 2024 in 4 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in math, where Phi 3 Mini 4k Instruct June 2024 leads 33.0 to 10.2.

Side by side

Llama 3.1-8B and Phi 3 Mini 4k Instruct June 2024 specifications
Llama 3.1-8BPhi 3 Mini 4k Instruct June 2024
ProviderMetaMicrosoft
Noometry Index23.031.3
Released2024-07-23—
WeightsOpenOpen
Context window128K—
Max output4K—
Input $ / M tokens$0.05—
Output $ / M tokens$0.08—
Results tracked4315

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

Category by category

Coding Phi 3 Mini 4k Instruct June 2024 leads

Llama 3.1-8B: 20.2 (#340), Phi 3 Mini 4k Instruct June 2024: 31.8 (#279)

Coding benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Coding11951093
SciCode13.2%—
WeirdML1.7%—
BigCodeBench Instruct32.8%—
BigCodeBench Complete40.5%—
HumanEval+62.8%—
MBPP+55.6%—

Agentic & Tool Use Not comparable

Llama 3.1-8B: 22.5 (#131), Phi 3 Mini 4k Instruct June 2024: —

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
Berkeley Function Calling Leaderboard25.8%—
BALROG15.1%—

Reasoning Phi 3 Mini 4k Instruct June 2024 leads

Llama 3.1-8B: 14.9 (#321), Phi 3 Mini 4k Instruct June 2024: 20.8 (#231)

Reasoning benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Hard Prompts11751087
CritPt0%—
Chess Puzzles0%—
DTBench50.9%—
LMCA5.4%—
Epoch Capabilities Index116.57—
PIQA81.2%—

Math Phi 3 Mini 4k Instruct June 2024 leads

Llama 3.1-8B: 10.2 (#317), Phi 3 Mini 4k Instruct June 2024: 33.0 (#208)

Math benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Math11791152
OTIS Mock AIME 2024-20251.7%—
Omni-MATH13.7%—
MATH Level 522.9%—
GSM8K82.4%—

Knowledge Phi 3 Mini 4k Instruct June 2024 leads

Llama 3.1-8B: 8.0 (#307), Phi 3 Mini 4k Instruct June 2024: 28.6 (#244)

Knowledge benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Expert11441051
GPQA Diamond27%—
MMLU-Pro40.6%—
GPQA (HELM)24.7%—
BoolQ82.8%—
MMLU56.1%—

Multilingual Llama 3.1-8B leads

Llama 3.1-8B: 34.0 (#249), Phi 3 Mini 4k Instruct June 2024: 25.9 (#282)

Multilingual benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Non-English11481013
LMArena Chinese11511033
LMArena German11441031
LMArena Japanese1061954
LMArena Korean1053880
LMArena Russian11581019
LMArena French1177—
LMArena Spanish1169—

Instruction Following Llama 3.1-8B leads

Llama 3.1-8B: 58.9 (#258), Phi 3 Mini 4k Instruct June 2024: 54.1 (#282)

Instruction Following benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Instruction Following11591058
IFEval74.3%—

Long Context Llama 3.1-8B leads

Llama 3.1-8B: 35.8 (#238), Phi 3 Mini 4k Instruct June 2024: 31.7 (#277)

Long Context benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Longer Query11821042

Writing & Preference Too close to call

Llama 3.1-8B: 29.7 (#290), Phi 3 Mini 4k Instruct June 2024: 29.6 (#294)

Writing & Preference benchmarks
BenchmarkLlama 3.1-8BPhi 3 Mini 4k Instruct June 2024
LMArena Text11871080
LMArena Creative Writing11541045
LMArena Multi-Turn11721049
EQ-Bench Creative Writing713—
WildBench68.7%—

Frequently asked questions

Is Llama 3.1-8B better than Phi 3 Mini 4k Instruct June 2024?

Phi 3 Mini 4k Instruct June 2024 is the stronger model overall, scoring 31.3 to 23.0 on the Noometry Index.

Is Llama 3.1-8B or Phi 3 Mini 4k Instruct June 2024 better for coding?

Phi 3 Mini 4k Instruct June 2024 scores higher on coding benchmarks: 31.8 versus 20.2 in the Noometry coding category.

How many benchmarks do Llama 3.1-8B and Phi 3 Mini 4k Instruct June 2024 share?

15 benchmarks have published results for both models. Llama 3.1-8B has 43 scored results on Noometry and Phi 3 Mini 4k Instruct June 2024 has 15.

Related comparisons

Go deeper