Model comparison

GPT-4o mini vs Llama 3.1-8B

GPT-4o mini is the stronger model overall, scoring 25.4 to 22.8 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.4

Rank #337 Confirmed

Llama 3.1-8B Meta

22.8

Rank #347 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.7 to 29.9.
  • 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.422.8
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: 21.6 (#330), Llama 3.1-8B: 19.9 (#335)

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.2 (#95), Llama 3.1-8B: 22.3 (#123)

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 (#343), Llama 3.1-8B: 14.5 (#316)

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.48
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: 9.9 (#307), Llama 3.1-8B: 9.5 (#311)

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 (#279), Llama 3.1-8B: 8.0 (#302)

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.3 (#117), 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.2 (#194), Llama 3.1-8B: 34.2 (#244)

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

Instruction Following GPT-4o mini leads

GPT-4o mini: 62.1 (#234), Llama 3.1-8B: 59.1 (#253)

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

Long Context GPT-4o mini leads

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

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

Writing & Preference GPT-4o mini leads

GPT-4o mini: 39.7 (#243), Llama 3.1-8B: 29.9 (#285)

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.4 to 22.8 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: 21.6 versus 19.9 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