Model comparison

GPT-4 vs Llama 2-7B

GPT-4 and Llama 2-7B score almost the same on the Noometry Index (29.1 vs 29.1), so choose on price, context window or the category you care about most.

Last verified . 23 shared benchmarks.

GPT-4 OpenAI

29.1

Rank #316 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

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

Side by side

GPT-4 and Llama 2-7B specifications
GPT-4Llama 2-7B
ProviderOpenAIMeta
Noometry Index29.129.1
Released2023-03-142023-07-18
WeightsProprietaryOpen
Context window8K—
Max output8K—
Input $ / M tokens$30—
Output $ / M tokens$60—
Results tracked3829

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

Category by category

Coding GPT-4 leads

GPT-4: 31.6 (#283), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Coding12541002
WeirdML12.4%—
BigCodeBench Instruct46%—
BigCodeBench Complete57.2%—
HumanEval+79.3%—

Agentic & Tool Use Not comparable

GPT-4: —, Llama 2-7B: —

Agentic & Tool Use benchmarks
BenchmarkGPT-4Llama 2-7B
METR Time Horizons36.1%—

Reasoning GPT-4 leads

GPT-4: 17.8 (#289), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkGPT-4Llama 2-7B
Chess Puzzles4%0%
LMArena Hard Prompts12411009
BIG-Bench Hard75.1%39.2%
Epoch Capabilities Index125.8999.06
HellaSwag95.3%77.2%
WinoGrande87.5%69.2%
Mystery Game Puzzles12%—
DTBench62.7%—
LMCA17.1%—
ForecastBench57.8—
LAMBADA—73.3%
PIQA—78.8%

Math Llama 2-7B leads

GPT-4: 10.8 (#309), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Math12691042
GSM8K92%16.7%
OTIS Mock AIME 2024-20251.1%—
MATH Level 523%—

Knowledge Llama 2-7B leads

GPT-4: 18.4 (#282), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Expert12111036
MMLU86.4%45.8%
TriviaQA84.8%73.7%
GPQA Diamond35.7%—
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
OpenBookQA—58.6%

Multimodal Not comparable

GPT-4: —, Llama 2-7B: —

Multimodal benchmarks
BenchmarkGPT-4Llama 2-7B
ScienceQA—43.1%

Multilingual GPT-4 leads

GPT-4: 40.6 (#215), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Non-English1246973
LMArena Chinese1242973
LMArena French1283970
LMArena German1251978
LMArena Russian1251995
LMArena Spanish12611007
LMArena Japanese1209—
LMArena Korean1184—

Instruction Following GPT-4 leads

GPT-4: 65.3 (#222), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Instruction Following12411006

Long Context GPT-4 leads

GPT-4: 37.7 (#212), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Longer Query1244999

Writing & Preference GPT-4 leads

GPT-4: 34.9 (#268), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkGPT-4Llama 2-7B
LMArena Text12631053
LMArena Creative Writing12441033
LMArena Multi-Turn12571029
EQ-Bench Creative Writing752—

Frequently asked questions

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

GPT-4 and Llama 2-7B score almost the same on the Noometry Index (29.1 vs 29.1), so choose on price, context window or the category you care about most.

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

GPT-4 scores higher on coding benchmarks: 31.6 versus 29.2 in the Noometry coding category.

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

23 benchmarks have published results for both models. GPT-4 has 38 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper