Model comparison

Codellama 34b Instruct vs Gemma 2 9B

Codellama 34b Instruct is the stronger model overall, scoring 30.8 to 25.9 on the Noometry Index.

Last verified . 12 shared benchmarks.

Codellama 34b Instruct Meta

30.8

Rank #287 Confirmed

Gemma 2 9B Google

25.9

Rank #341 Confirmed

Summary

  • They share 12 benchmarks with published results for both. Codellama 34b Instruct scores higher in 2 categories and Gemma 2 9B in 5 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in math, where Codellama 34b Instruct leads 31.0 to 9.9.
  • The biggest single-benchmark swing is BigCodeBench Instruct: 29% for Codellama 34b Instruct and 34.7% for Gemma 2 9B.

Side by side

Codellama 34b Instruct and Gemma 2 9B specifications
Codellama 34b InstructGemma 2 9B
ProviderMetaGoogle
Noometry Index30.825.9
Released—2024-06-24
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked1435

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

Category by category

Coding Too close to call

Codellama 34b Instruct: 28.5 (#314), Gemma 2 9B: 29.4 (#304)

Coding benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
BigCodeBench Instruct29%34.7%
LMArena Coding10461173
BigCodeBench Complete37.1%40.6%
LiveBench Coding—22.5%
HumanEval+43.9%—
MBPP+56.3%—

Reasoning Codellama 34b Instruct leads

Codellama 34b Instruct: 19.6 (#255), Gemma 2 9B: 15.9 (#309)

Reasoning benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Hard Prompts10321171
LiveBench Reasoning—15.2%
LiveBench Data Analysis—36.4%
Epoch Capabilities Index—119.83
LiveBench—28.7%
PIQA—83.7%

Math Codellama 34b Instruct leads

Codellama 34b Instruct: 31.0 (#230), Gemma 2 9B: 9.9 (#318)

Math benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Math10561183
OTIS Mock AIME 2024-2025—0.6%
LiveBench Math—19.8%
MATH Level 5—21%
GSM8K—84.9%

Knowledge Not comparable

Codellama 34b Instruct: —, Gemma 2 9B: 9.7 (#305)

Knowledge benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
GPQA Diamond—27.5%
LMArena Expert—1147
BoolQ—85.7%
MMLU—72.1%

Multilingual Gemma 2 9B leads

Codellama 34b Instruct: 25.8 (#284), Gemma 2 9B: 36.6 (#238)

Multilingual benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Non-English10111188
LMArena Chinese9761185
LMArena French—1190
LMArena German—1186
LMArena Japanese—1144
LMArena Korean—1137
LMArena Russian—1200
LMArena Spanish—1200

Instruction Following Gemma 2 9B leads

Codellama 34b Instruct: 52.2 (#291), Gemma 2 9B: 57.6 (#269)

Instruction Following benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Instruction Following10281178
LiveBench Instruction Following—52.6%

Long Context Gemma 2 9B leads

Codellama 34b Instruct: 30.9 (#284), Gemma 2 9B: 36.3 (#233)

Long Context benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Longer Query10131197

Writing & Preference Gemma 2 9B leads

Codellama 34b Instruct: 28.2 (#297), Gemma 2 9B: 32.1 (#281)

Writing & Preference benchmarks
BenchmarkCodellama 34b InstructGemma 2 9B
LMArena Text10661207
LMArena Creative Writing10321206
LMArena Multi-Turn10151193
EQ-Bench Creative Writing—841
LiveBench Language—25.5%

Frequently asked questions

Is Codellama 34b Instruct better than Gemma 2 9B?

Codellama 34b Instruct is the stronger model overall, scoring 30.8 to 25.9 on the Noometry Index.

Is Codellama 34b Instruct or Gemma 2 9B better for coding?

They score almost the same on coding (28.5 vs 29.4); test both on your own repository before choosing.

How many benchmarks do Codellama 34b Instruct and Gemma 2 9B share?

12 benchmarks have published results for both models. Codellama 34b Instruct has 14 scored results on Noometry and Gemma 2 9B has 35.

Related comparisons

Go deeper