Model comparison

GPT-4o mini vs Llama 2-7B

Llama 2-7B is the stronger model overall, scoring 28.6 to 25.4 on the Noometry Index.

Last verified . 21 shared benchmarks.

GPT-4o mini OpenAI

25.4

Rank #337 Confirmed

Llama 2-7B Meta

28.6

Rank #315 Confirmed

Summary

  • They share 21 benchmarks with published results for both. GPT-4o mini scores higher in 4 categories and Llama 2-7B in 4 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in math, where Llama 2-7B leads 28.2 to 9.9.
  • Llama 2-7B has downloadable open weights; the other is API-only.

Side by side

GPT-4o mini and Llama 2-7B specifications
GPT-4o miniLlama 2-7B
ProviderOpenAIMeta
Noometry Index25.428.6
Released2024-07-182023-07-18
WeightsProprietaryOpen
Context window128K—
Max output16K—
Input $ / M tokens$0.15—
Output $ / M tokens$0.60—
Results tracked6029

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

Category by category

Coding Llama 2-7B leads

GPT-4o mini: 21.6 (#330), Llama 2-7B: 28.7 (#302)

Coding benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Coding12901002
Aider Polyglot3.6%—
WeirdML11.8%—
BigCodeBench Instruct46.1%—
LiveBench Coding43.1%—
BigCodeBench Complete57.4%—
HumanEval+83.5%—
MBPP+72.2%—

Agentic & Tool Use Not comparable

GPT-4o mini: 27.2 (#95), Llama 2-7B: —

Agentic & Tool Use benchmarks
BenchmarkGPT-4o miniLlama 2-7B
BALROG17.4%—

Reasoning Llama 2-7B leads

GPT-4o mini: 8.7 (#343), Llama 2-7B: 15.1 (#309)

Reasoning benchmarks
BenchmarkGPT-4o miniLlama 2-7B
Chess Puzzles0%0%
LMArena Hard Prompts12671009
Epoch Capabilities Index126.5698.54
PIQA88.7%78.8%
ARC-AGI-20%—
SimpleBench10.7%—
Kagi LLM Benchmark28.8%—
LiveBench Reasoning32.8%—
Mystery Game Puzzles12%—
DTBench54.4%—
LiveBench Data Analysis50%—
LMCA10.4%—
BIG-Bench Hard—39.2%
HellaSwag—77.2%
LAMBADA—73.3%
LiveBench41.3%—
WinoGrande—69.2%

Math Llama 2-7B leads

GPT-4o mini: 9.9 (#307), Llama 2-7B: 28.2 (#231)

Math benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Math12671042
GSM8K91.3%16.7%
FrontierMath (Tiers 1-3)0.7%—
OTIS Mock AIME 2024-20256.9%—
Omni-MATH28%—
LiveBench Math36.3%—
MATH Level 552.6%—

Knowledge Llama 2-7B leads

GPT-4o mini: 17.7 (#279), Llama 2-7B: 27.7 (#243)

Knowledge benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Expert12351036
BoolQ88.7%77.9%
MMLU81.8%45.8%
GPQA Diamond37.7%—
SimpleQA Verified8.3%—
MMLU-Pro60.3%—
Confabulations37.2%—
GPQA (HELM)36.8%—
ARC (AI2) Challenge—45.9%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

GPT-4o mini: 25.3 (#117), Llama 2-7B: —

Multimodal benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Vision1066—
Video-MME64.8%—
GeoBench64%—
VPCT34%—
ScienceQA—43.1%

Multilingual GPT-4o mini leads

GPT-4o mini: 42.2 (#194), Llama 2-7B: 23.9 (#288)

Multilingual benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Non-English1266973
LMArena Chinese1264973
LMArena French1296969
LMArena German1272978
LMArena Russian1275995
LMArena Spanish12761007
LMArena Japanese1216—
LMArena Korean1195—

Instruction Following GPT-4o mini leads

GPT-4o mini: 62.1 (#234), Llama 2-7B: 51.0 (#293)

Instruction Following benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Instruction Following12591006
LiveBench Instruction Following56.8%—
IFEval78.2%—

Long Context GPT-4o mini leads

GPT-4o mini: 39.1 (#181), Llama 2-7B: 30.4 (#282)

Long Context benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Longer Query1289999

Writing & Preference GPT-4o mini leads

GPT-4o mini: 39.7 (#243), Llama 2-7B: 28.1 (#293)

Writing & Preference benchmarks
BenchmarkGPT-4o miniLlama 2-7B
LMArena Text12861053
LMArena Creative Writing12681033
LMArena Multi-Turn12851029
Short-Story Creative Writing67.2%—
EQ-Bench Creative Writing873—
WildBench79.1%—
LiveBench Language28.6%—

Frequently asked questions

Is GPT-4o mini better than Llama 2-7B?

Llama 2-7B is the stronger model overall, scoring 28.6 to 25.4 on the Noometry Index.

Is GPT-4o mini or Llama 2-7B better for coding?

Llama 2-7B scores higher on coding benchmarks: 28.7 versus 21.6 in the Noometry coding category.

How many benchmarks do GPT-4o mini and Llama 2-7B share?

21 benchmarks have published results for both models. GPT-4o mini has 60 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper