Model comparison

Claude Sonnet 4 vs Codellama 34b Instruct

Claude Sonnet 4 is the stronger model overall, scoring 40.6 to 30.2 on the Noometry Index.

Last verified . 10 shared benchmarks.

Claude Sonnet 4 Anthropic

40.6

Rank #139 Confirmed

Codellama 34b Instruct Meta

30.2

Rank #285 Confirmed

Summary

  • They share 10 benchmarks with published results for both. Claude Sonnet 4 scores higher in 7 categories and Codellama 34b Instruct in 0 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where Claude Sonnet 4 leads 57.3 to 28.4.
  • Codellama 34b Instruct has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 4 and Codellama 34b Instruct specifications
Claude Sonnet 4Codellama 34b Instruct
ProviderAnthropicMeta
Noometry Index40.630.2
Released2025-05-22—
WeightsProprietaryOpen
Context window200K—
Max output64K—
Input $ / M tokens$3—
Output $ / M tokens$15—
Results tracked5814

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

Category by category

Coding Claude Sonnet 4 leads

Claude Sonnet 4: 44.0 (#70), Codellama 34b Instruct: 28.0 (#310)

Coding benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Coding14141046
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
SciCode40%—
GSO4.9%—
WeirdML46.1%—
BigCodeBench Instruct—29%
BigCodeBench Complete—37.1%
ALE-Bench655.35—
HumanEval+—43.9%
MBPP+—56.3%

Agentic & Tool Use Not comparable

Claude Sonnet 4: 38.3 (#29), Codellama 34b Instruct: —

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
TheAgentCompany33.1%—
Cybench35%—
DeepResearch Bench46.6%—
OSWorld43.9%—
METR Time Horizons62%—

Reasoning Claude Sonnet 4 leads

Claude Sonnet 4: 23.0 (#169), Codellama 34b Instruct: 18.8 (#250)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Hard Prompts13721032
ARC-AGI-25.9%—
SimpleBench45.5%—
Kagi LLM Benchmark73%—
ARC-AGI-140%—
CritPt0.3%—
EnigmaEval3.1%—
DTBench77.1%—
LMCA29%—
Epoch Capabilities Index141.69—
ForecastBench60.2—

Math Claude Sonnet 4 leads

Claude Sonnet 4: 41.5 (#71), Codellama 34b Instruct: 28.5 (#227)

Math benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Math13751056
OTIS Mock AIME 2024-202571.1%—
Omni-MATH60.2%—
MATH Level 584.4%—
FrontierMath (Feb 2025 set)4.1%—
FrontierMath Tier 4 (v1)0%—

Knowledge Not comparable

Claude Sonnet 4: 41.6 (#99), Codellama 34b Instruct: —

Knowledge benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
GPQA Diamond79.2%—
Humanity's Last Exam7.8%—
MMLU-Pro84.3%—
Confabulations13.2%—
Vectara Hallucination Rate10.3%—
GPQA (HELM)70.6%—
LMArena Expert1371—

Multimodal Not comparable

Claude Sonnet 4: 25.6 (#116), Codellama 34b Instruct: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Vision1191—
GeoBench37%—
VPCT34%—
MindCube44.8%—

Multilingual Claude Sonnet 4 leads

Claude Sonnet 4: 46.9 (#151), Codellama 34b Instruct: 25.9 (#279)

Multilingual benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Non-English13331011
LMArena Chinese1351976
LMArena French1364—
LMArena German1331—
LMArena Japanese1301—
LMArena Korean1293—
LMArena Russian1355—
LMArena Spanish1356—

Instruction Following Claude Sonnet 4 leads

Claude Sonnet 4: 71.8 (#141), Codellama 34b Instruct: 52.4 (#286)

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Instruction Following13751028
IFEval84%—

Long Context Claude Sonnet 4 leads

Claude Sonnet 4: 33.6 (#254), Codellama 34b Instruct: 30.8 (#279)

Long Context benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Longer Query13981014
Fiction.LiveBench46.9%—

Writing & Preference Claude Sonnet 4 leads

Claude Sonnet 4: 57.3 (#127), Codellama 34b Instruct: 28.4 (#292)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Codellama 34b Instruct
LMArena Text13511066
LMArena Creative Writing13451032
LMArena Multi-Turn13761015
Short-Story Creative Writing81.4%—
EQ-Bench Creative Writing1483—
WildBench83.8%—

Frequently asked questions

Is Claude Sonnet 4 better than Codellama 34b Instruct?

Claude Sonnet 4 is the stronger model overall, scoring 40.6 to 30.2 on the Noometry Index.

Is Claude Sonnet 4 or Codellama 34b Instruct better for coding?

Claude Sonnet 4 scores higher on coding benchmarks: 44.0 versus 28.0 in the Noometry coding category.

How many benchmarks do Claude Sonnet 4 and Codellama 34b Instruct share?

10 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Codellama 34b Instruct has 14.

Related comparisons

Go deeper