Model comparison

Gemma 2 9B vs StarCoder 2 7B

Gemma 2 9B has enough public results to be ranked (#341); StarCoder 2 7B does not yet, so treat this comparison as directional.

Last verified . 4 shared benchmarks.

Gemma 2 9B Google

25.9

Rank #341 Confirmed

StarCoder 2 7B NVIDIA

37.0

Unranked Sparse

Summary

  • They share 4 benchmarks with published results for both. Gemma 2 9B scores higher in 0 categories and StarCoder 2 7B in 1 category; one gap is clear of the uncertainty.
  • The widest gap is in coding, where StarCoder 2 7B leads 34.8 to 29.4.
  • The biggest single-benchmark swing is BigCodeBench Complete: 40.6% for Gemma 2 9B and 27.7% for StarCoder 2 7B.

Side by side

Gemma 2 9B and StarCoder 2 7B specifications
Gemma 2 9BStarCoder 2 7B
ProviderGoogleNVIDIA
Noometry Index25.937.0
Released2024-06-242024-02-20
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked357

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

Category by category

Coding StarCoder 2 7B leads

Gemma 2 9B: 29.4 (#304), StarCoder 2 7B: 34.8

Coding benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
BigCodeBench Complete40.6%27.7%
BigCodeBench Instruct34.7%—
LiveBench Coding22.5%—
LMArena Coding1173—
HumanEval+—29.9%

Reasoning Not comparable

Gemma 2 9B: 15.9 (#309), StarCoder 2 7B: —

Reasoning benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
Epoch Capabilities Index119.8393.56
LiveBench Reasoning15.2%—
LMArena Hard Prompts1171—
LiveBench Data Analysis36.4%—
LiveBench28.7%—
PIQA83.7%—
WinoGrande—57.1%

Math Not comparable

Gemma 2 9B: 9.9 (#318), StarCoder 2 7B: —

Math benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
GSM8K84.9%32.7%
OTIS Mock AIME 2024-20250.6%—
LiveBench Math19.8%—
LMArena Math1183—
MATH Level 521%—

Knowledge Not comparable

Gemma 2 9B: 9.7 (#305), StarCoder 2 7B: —

Knowledge benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
MMLU72.1%38.8%
GPQA Diamond27.5%—
LMArena Expert1147—
ARC (AI2) Challenge—38.7%
BoolQ85.7%—

Multilingual Not comparable

Gemma 2 9B: 36.6 (#238), StarCoder 2 7B: —

Multilingual benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
LMArena Non-English1188—
LMArena Chinese1185—
LMArena French1190—
LMArena German1186—
LMArena Japanese1144—
LMArena Korean1137—
LMArena Russian1200—
LMArena Spanish1200—

Instruction Following Not comparable

Gemma 2 9B: 57.6 (#269), StarCoder 2 7B: —

Instruction Following benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
LiveBench Instruction Following52.6%—
LMArena Instruction Following1178—

Long Context Not comparable

Gemma 2 9B: 36.3 (#233), StarCoder 2 7B: —

Long Context benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
LMArena Longer Query1197—

Writing & Preference Not comparable

Gemma 2 9B: 32.1 (#281), StarCoder 2 7B: —

Writing & Preference benchmarks
BenchmarkGemma 2 9BStarCoder 2 7B
LMArena Text1207—
LMArena Creative Writing1206—
EQ-Bench Creative Writing841—
LMArena Multi-Turn1193—
LiveBench Language25.5%—

Frequently asked questions

Is Gemma 2 9B better than StarCoder 2 7B?

Gemma 2 9B has enough public results to be ranked (#341); StarCoder 2 7B does not yet, so treat this comparison as directional.

Is Gemma 2 9B or StarCoder 2 7B better for coding?

StarCoder 2 7B scores higher on coding benchmarks: 34.8 versus 29.4 in the Noometry coding category.

How many benchmarks do Gemma 2 9B and StarCoder 2 7B share?

4 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and StarCoder 2 7B has 7.

Related comparisons

Go deeper