Model comparison

GPT-4o mini vs Llama 3.1-8B

GPT-4o mini is the stronger model overall, scoring 25.5 to 23.0 on the Noometry Index. Llama 3.1-8B costs 4.6× less per token, which makes it the better buy when GPT-4o mini's lead doesn't matter for your workload.

Last verified . 40 shared benchmarks.

GPT-4o mini OpenAI

25.5

Rank #343 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 40 benchmarks with published results for both. GPT-4o mini scores higher in 8 categories and Llama 3.1-8B in 1 category; 8 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where GPT-4o mini leads 39.5 to 29.7.
  • The biggest single-benchmark swing is MATH Level 5: 52.6% for GPT-4o mini and 22.9% for Llama 3.1-8B.
  • Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $0.15 / $0.60 for GPT-4o mini.
  • Llama 3.1-8B has downloadable open weights; the other is API-only.

Side by side

GPT-4o mini and Llama 3.1-8B specifications
GPT-4o miniLlama 3.1-8B
ProviderOpenAIMeta
Noometry Index25.523.0
Released2024-07-182024-07-23
WeightsProprietaryOpen
Context window128K128K
Max output16K4K
Input $ / M tokens$0.15$0.05
Output $ / M tokens$0.60$0.08
Results tracked6043

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

Category by category

Coding GPT-4o mini leads

GPT-4o mini: 22.0 (#335), Llama 3.1-8B: 20.2 (#340)

Coding benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
WeirdML11.8%1.7%
BigCodeBench Instruct46.1%32.8%
LMArena Coding12901195
BigCodeBench Complete57.4%40.5%
HumanEval+83.5%62.8%
MBPP+72.2%55.6%
Aider Polyglot3.6%—
SciCode—13.2%
LiveBench Coding43.1%—

Agentic & Tool Use GPT-4o mini leads

GPT-4o mini: 27.5 (#101), Llama 3.1-8B: 22.5 (#131)

Agentic & Tool Use benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
BALROG17.4%15.1%
Berkeley Function Calling Leaderboard—25.8%

Reasoning Llama 3.1-8B leads

GPT-4o mini: 8.7 (#347), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
Chess Puzzles0%0%
LMArena Hard Prompts12671175
DTBench54.4%50.9%
LMCA10.4%5.4%
Epoch Capabilities Index126.56116.57
PIQA88.7%81.2%
ARC-AGI-20%—
SimpleBench10.7%—
Kagi LLM Benchmark28.8%—
CritPt—0%
LiveBench Reasoning32.8%—
Mystery Game Puzzles12%—
LiveBench Data Analysis50%—
LiveBench41.3%—

Math Too close to call

GPT-4o mini: 10.4 (#314), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
OTIS Mock AIME 2024-20256.9%1.7%
Omni-MATH28%13.7%
LMArena Math12671179
MATH Level 552.6%22.9%
GSM8K91.3%82.4%
FrontierMath (Tiers 1-3)0.7%—
LiveBench Math36.3%—

Knowledge GPT-4o mini leads

GPT-4o mini: 17.7 (#284), Llama 3.1-8B: 8.0 (#307)

Knowledge benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
GPQA Diamond37.7%27%
MMLU-Pro60.3%40.6%
GPQA (HELM)36.8%24.7%
LMArena Expert12351144
BoolQ88.7%82.8%
MMLU81.8%56.1%
SimpleQA Verified8.3%—
Confabulations37.2%—

Multimodal Not comparable

GPT-4o mini: 25.9 (#122), Llama 3.1-8B: —

Multimodal benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
LMArena Vision1066—
Video-MME64.8%—
GeoBench64%—
VPCT34%—

Multilingual GPT-4o mini leads

GPT-4o mini: 42.0 (#199), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
LMArena Non-English12661148
LMArena Chinese12651151
LMArena French12971177
LMArena German12721144
LMArena Japanese12161061
LMArena Korean11951053
LMArena Russian12751158
LMArena Spanish12761169

Instruction Following GPT-4o mini leads

GPT-4o mini: 61.9 (#239), Llama 3.1-8B: 58.9 (#258)

Instruction Following benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
IFEval78.2%74.3%
LMArena Instruction Following12581159
LiveBench Instruction Following56.8%—

Long Context GPT-4o mini leads

GPT-4o mini: 39.1 (#186), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
LMArena Longer Query12891182

Writing & Preference GPT-4o mini leads

GPT-4o mini: 39.5 (#248), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGPT-4o miniLlama 3.1-8B
LMArena Text12861187
LMArena Creative Writing12681154
EQ-Bench Creative Writing873713
WildBench79.1%68.7%
LMArena Multi-Turn12851172
Short-Story Creative Writing67.2%—
LiveBench Language28.6%—

Frequently asked questions

Is GPT-4o mini better than Llama 3.1-8B?

GPT-4o mini is the stronger model overall, scoring 25.5 to 23.0 on the Noometry Index. Llama 3.1-8B costs 4.6× less per token, which makes it the better buy when GPT-4o mini's lead doesn't matter for your workload.

Which is cheaper, GPT-4o mini or Llama 3.1-8B?

Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; GPT-4o mini lists at $0.15 and $0.60.

Is GPT-4o mini or Llama 3.1-8B better for coding?

GPT-4o mini scores higher on coding benchmarks: 22.0 versus 20.2 in the Noometry coding category.

Which has the bigger context window?

Both accept 128K tokens.

How many benchmarks do GPT-4o mini and Llama 3.1-8B share?

40 benchmarks have published results for both models. GPT-4o mini has 60 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper