Model comparison

Claude 3 Haiku vs Llama 2-7B

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

Last verified . 19 shared benchmarks.

Claude 3 Haiku Anthropic

25.9

Rank #340 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 19 benchmarks with published results for both. Claude 3 Haiku scores higher in 5 categories and Llama 2-7B in 3 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in math, where Llama 2-7B leads 30.7 to 9.8.
  • Llama 2-7B has downloadable open weights; the other is API-only.

Side by side

Claude 3 Haiku and Llama 2-7B specifications
Claude 3 HaikuLlama 2-7B
ProviderAnthropicMeta
Noometry Index25.929.1
Released2024-03-072023-07-18
WeightsProprietaryOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked3729

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

Category by category

Coding Llama 2-7B leads

Claude 3 Haiku: 26.4 (#325), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Coding11991002
WeirdML9.8%—
BigCodeBench Instruct39.4%—
BigCodeBench Complete50.1%—
CadEval12%—
HumanEval+68.9%—
MBPP+68.8%—

Reasoning Too close to call

Claude 3 Haiku: 16.3 (#307), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Hard Prompts11741009
Epoch Capabilities Index118.3599.06
WinoGrande74.2%69.2%
Kagi LLM Benchmark34.2%—
Chess Puzzles—0%
DTBench50.1%—
LMCA8.8%—
BIG-Bench Hard—39.2%
ForecastBench53.2—
HellaSwag—77.2%
LAMBADA—73.3%
PIQA—78.8%

Math Llama 2-7B leads

Claude 3 Haiku: 9.8 (#319), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Math11881042
OTIS Mock AIME 2024-20251.8%—
MATH Level 514.9%—
GSM8K—16.7%

Knowledge Llama 2-7B leads

Claude 3 Haiku: 17.3 (#285), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Expert11481036
MMLU73.8%45.8%
GPQA Diamond36.3%—
Confabulations34.2%—
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Claude 3 Haiku: 23.6 (#128), Llama 2-7B: —

Multimodal benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
ScienceQA72%43.1%
LMArena Vision950—

Multilingual Claude 3 Haiku leads

Claude 3 Haiku: 36.0 (#243), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Non-English1178973
LMArena Chinese1155973
LMArena French1195970
LMArena German1174978
LMArena Russian1204995
LMArena Spanish11661007
LMArena Japanese1102—
LMArena Korean1109—

Instruction Following Claude 3 Haiku leads

Claude 3 Haiku: 61.3 (#247), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Instruction Following11731006

Long Context Claude 3 Haiku leads

Claude 3 Haiku: 36.1 (#237), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Longer Query1190999

Writing & Preference Claude 3 Haiku leads

Claude 3 Haiku: 29.7 (#291), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkClaude 3 HaikuLlama 2-7B
LMArena Text11951053
LMArena Creative Writing11571033
LMArena Multi-Turn11901029
EQ-Bench Creative Writing717—

Frequently asked questions

Is Claude 3 Haiku better than Llama 2-7B?

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

Is Claude 3 Haiku or Llama 2-7B better for coding?

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

How many benchmarks do Claude 3 Haiku and Llama 2-7B share?

19 benchmarks have published results for both models. Claude 3 Haiku has 37 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper