Model comparison

Gemma 2 9B vs Llama 3-8B

Gemma 2 9B and Llama 3-8B score almost the same on the Noometry Index (25.9 vs 25.5), so choose on price, context window or the category you care about most.

Last verified . 24 shared benchmarks.

Gemma 2 9B Google

25.9

Rank #341 Confirmed

Llama 3-8B Meta

25.5

Rank #344 Confirmed

Summary

  • They share 24 benchmarks with published results for both. Gemma 2 9B scores higher in 5 categories and Llama 3-8B in 3 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in multilingual, where Gemma 2 9B leads 36.6 to 30.8.
  • The biggest single-benchmark swing is MATH Level 5: 21% for Gemma 2 9B and 6.1% for Llama 3-8B.

Side by side

Gemma 2 9B and Llama 3-8B specifications
Gemma 2 9BLlama 3-8B
ProviderGoogleMeta
Noometry Index25.925.5
Released2024-06-242024-04-18
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked3534

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

Category by category

Coding Llama 3-8B leads

Gemma 2 9B: 29.4 (#304), Llama 3-8B: 31.0 (#289)

Coding benchmarks
BenchmarkGemma 2 9BLlama 3-8B
BigCodeBench Instruct34.7%31.9%
LMArena Coding11731152
BigCodeBench Complete40.6%36.9%
LiveBench Coding22.5%—
HumanEval+—56.7%
MBPP+—54.8%

Reasoning Gemma 2 9B leads

Gemma 2 9B: 15.9 (#309), Llama 3-8B: 14.3 (#326)

Reasoning benchmarks
BenchmarkGemma 2 9BLlama 3-8B
LMArena Hard Prompts11711133
Epoch Capabilities Index119.83116.45
Chess Puzzles—0%
LiveBench Reasoning15.2%—
DTBench—43.9%
LiveBench Data Analysis36.4%—
Adversarial NLI—57.3%
ForecastBench—58.6
LiveBench28.7%—
PIQA83.7%—
WinoGrande—75.7%

Math Gemma 2 9B leads

Gemma 2 9B: 9.9 (#318), Llama 3-8B: 8.8 (#323)

Math benchmarks
BenchmarkGemma 2 9BLlama 3-8B
OTIS Mock AIME 2024-20250.6%1.9%
LMArena Math11831151
MATH Level 521%6.1%
LiveBench Math19.8%—
GSM8K84.9%—

Knowledge Gemma 2 9B leads

Gemma 2 9B: 9.7 (#305), Llama 3-8B: 7.8 (#308)

Knowledge benchmarks
BenchmarkGemma 2 9BLlama 3-8B
GPQA Diamond27.5%26.1%
LMArena Expert11471113
MMLU72.1%68.8%
ARC (AI2) Challenge—82.8%
BoolQ85.7%—
OpenBookQA—82.6%
TriviaQA—67.7%

Multilingual Gemma 2 9B leads

Gemma 2 9B: 36.6 (#238), Llama 3-8B: 30.8 (#261)

Multilingual benchmarks
BenchmarkGemma 2 9BLlama 3-8B
LMArena Non-English11881098
LMArena Chinese11851076
LMArena French11901159
LMArena German11861104
LMArena Japanese1144967
LMArena Korean11371004
LMArena Russian12001109
LMArena Spanish12001173

Instruction Following Too close to call

Gemma 2 9B: 57.6 (#269), Llama 3-8B: 58.4 (#260)

Instruction Following benchmarks
BenchmarkGemma 2 9BLlama 3-8B
LMArena Instruction Following11781127
LiveBench Instruction Following52.6%—

Long Context Gemma 2 9B leads

Gemma 2 9B: 36.3 (#233), Llama 3-8B: 34.2 (#251)

Long Context benchmarks
BenchmarkGemma 2 9BLlama 3-8B
LMArena Longer Query11971128

Writing & Preference Llama 3-8B leads

Gemma 2 9B: 32.1 (#281), Llama 3-8B: 37.5 (#256)

Writing & Preference benchmarks
BenchmarkGemma 2 9BLlama 3-8B
LMArena Text12071166
LMArena Creative Writing12061150
LMArena Multi-Turn11931152
EQ-Bench Creative Writing841—
LiveBench Language25.5%—

Frequently asked questions

Is Gemma 2 9B better than Llama 3-8B?

Gemma 2 9B and Llama 3-8B score almost the same on the Noometry Index (25.9 vs 25.5), so choose on price, context window or the category you care about most.

Is Gemma 2 9B or Llama 3-8B better for coding?

Llama 3-8B scores higher on coding benchmarks: 31.0 versus 29.4 in the Noometry coding category.

How many benchmarks do Gemma 2 9B and Llama 3-8B share?

24 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and Llama 3-8B has 34.

Related comparisons

Go deeper