Model comparison

Claude Sonnet 4 vs Llama 2-7B

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 29.1 on the Noometry Index.

Last verified . 16 shared benchmarks.

Claude Sonnet 4 Anthropic

40.8

Rank #145 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 16 benchmarks with published results for both. Claude Sonnet 4 scores higher in 8 categories and Llama 2-7B in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where Claude Sonnet 4 leads 57.1 to 28.0.
  • Llama 2-7B has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 4 and Llama 2-7B specifications
Claude Sonnet 4Llama 2-7B
ProviderAnthropicMeta
Noometry Index40.829.1
Released2025-05-222023-07-18
WeightsProprietaryOpen
Context window200K—
Max output64K—
Input $ / M tokens$3—
Output $ / M tokens$15—
Results tracked5829

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

Category by category

Coding Claude Sonnet 4 leads

Claude Sonnet 4: 43.5 (#88), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Coding14141002
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
SciCode40%—
GSO4.9%—
WeirdML46.1%—
ALE-Bench655.35—

Agentic & Tool Use Not comparable

Claude Sonnet 4: 38.5 (#31), Llama 2-7B: —

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
TheAgentCompany33.1%—
Cybench35%—
DeepResearch Bench46.6%—
OSWorld43.9%—
METR Time Horizons62%—

Reasoning Claude Sonnet 4 leads

Claude Sonnet 4: 22.9 (#187), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Hard Prompts13721009
Epoch Capabilities Index141.6999.06
ARC-AGI-25.9%—
SimpleBench45.5%—
Kagi LLM Benchmark73%—
ARC-AGI-140%—
CritPt0.3%—
Chess Puzzles—0%
EnigmaEval3.1%—
DTBench77.1%—
LMCA29%—
BIG-Bench Hard—39.2%
ForecastBench60.2—
HellaSwag—77.2%
LAMBADA—73.3%
PIQA—78.8%
WinoGrande—69.2%

Math Claude Sonnet 4 leads

Claude Sonnet 4: 43.3 (#80), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Math13751042
OTIS Mock AIME 2024-202571.1%—
Omni-MATH60.2%—
MATH Level 584.4%—
FrontierMath (Feb 2025 set)4.1%—
FrontierMath Tier 4 (v1)0%—
GSM8K—16.7%

Knowledge Claude Sonnet 4 leads

Claude Sonnet 4: 41.8 (#108), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Expert13721036
GPQA Diamond79.2%—
Humanity's Last Exam7.8%—
MMLU-Pro84.3%—
Confabulations13.2%—
Vectara Hallucination Rate10.3%—
GPQA (HELM)70.6%—
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
MMLU—45.8%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Claude Sonnet 4: 26.2 (#121), Llama 2-7B: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Vision1191—
GeoBench37%—
VPCT34%—
MindCube44.8%—
ScienceQA—43.1%

Multilingual Claude Sonnet 4 leads

Claude Sonnet 4: 46.7 (#156), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Non-English1333973
LMArena Chinese1350973
LMArena French1363970
LMArena German1331978
LMArena Russian1355995
LMArena Spanish13571007
LMArena Japanese1302—
LMArena Korean1291—

Instruction Following Claude Sonnet 4 leads

Claude Sonnet 4: 71.7 (#145), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Instruction Following13761006
IFEval84%—

Long Context Claude Sonnet 4 leads

Claude Sonnet 4: 33.7 (#259), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Longer Query1398999
Fiction.LiveBench46.9%—

Writing & Preference Claude Sonnet 4 leads

Claude Sonnet 4: 57.1 (#132), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Llama 2-7B
LMArena Text13511053
LMArena Creative Writing13451033
LMArena Multi-Turn13761029
Short-Story Creative Writing81.4%—
EQ-Bench Creative Writing1483—
WildBench83.8%—

Frequently asked questions

Is Claude Sonnet 4 better than Llama 2-7B?

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 29.1 on the Noometry Index.

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

Claude Sonnet 4 scores higher on coding benchmarks: 43.5 versus 29.2 in the Noometry coding category.

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

16 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper