Model comparison

GPT-4o mini vs Llama 2-7B

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

Last verified . 21 shared benchmarks.

GPT-4o mini OpenAI

25.5

Rank #343 Confirmed

Llama 2-7B Meta

29.1

Rank #317 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 30.7 to 10.4.
  • 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.529.1
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: 22.0 (#335), Llama 2-7B: 29.2 (#307)

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.5 (#101), Llama 2-7B: —

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

Reasoning Llama 2-7B leads

GPT-4o mini: 8.7 (#347), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkGPT-4o miniLlama 2-7B
Chess Puzzles0%0%
LMArena Hard Prompts12671009
Epoch Capabilities Index126.5699.06
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: 10.4 (#314), Llama 2-7B: 30.7 (#233)

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 (#284), Llama 2-7B: 28.2 (#248)

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.9 (#122), 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.0 (#199), Llama 2-7B: 23.8 (#293)

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

Instruction Following GPT-4o mini leads

GPT-4o mini: 61.9 (#239), Llama 2-7B: 50.8 (#298)

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

Long Context GPT-4o mini leads

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

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

Writing & Preference GPT-4o mini leads

GPT-4o mini: 39.5 (#248), Llama 2-7B: 28.0 (#298)

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 29.1 to 25.5 on the Noometry Index.

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

Llama 2-7B scores higher on coding benchmarks: 29.2 versus 22.0 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