Model comparison

Gemma 2 9B vs Llama 3.1-8B

Gemma 2 9B is the stronger model overall, scoring 25.9 to 23.0 on the Noometry Index.

Last verified . 28 shared benchmarks.

Gemma 2 9B Google

25.9

Rank #341 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 28 benchmarks with published results for both. Gemma 2 9B scores higher in 6 categories and Llama 3.1-8B in 2 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in coding, where Gemma 2 9B leads 29.4 to 20.2.

Side by side

Gemma 2 9B and Llama 3.1-8B specifications
Gemma 2 9BLlama 3.1-8B
ProviderGoogleMeta
Noometry Index25.923.0
Released2024-06-242024-07-23
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.05
Output $ / M tokens—$0.08
Results tracked3543

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

Category by category

Coding Gemma 2 9B leads

Gemma 2 9B: 29.4 (#304), Llama 3.1-8B: 20.2 (#340)

Coding benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
BigCodeBench Instruct34.7%32.8%
LMArena Coding11731195
BigCodeBench Complete40.6%40.5%
SciCode—13.2%
WeirdML—1.7%
LiveBench Coding22.5%—
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use Not comparable

Gemma 2 9B: —, Llama 3.1-8B: 22.5 (#131)

Agentic & Tool Use benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
Berkeley Function Calling Leaderboard—25.8%
BALROG—15.1%

Reasoning Gemma 2 9B leads

Gemma 2 9B: 15.9 (#309), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
LMArena Hard Prompts11711175
Epoch Capabilities Index119.83116.57
PIQA83.7%81.2%
CritPt—0%
Chess Puzzles—0%
LiveBench Reasoning15.2%—
DTBench—50.9%
LiveBench Data Analysis36.4%—
LMCA—5.4%
LiveBench28.7%—

Math Too close to call

Gemma 2 9B: 9.9 (#318), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
OTIS Mock AIME 2024-20250.6%1.7%
LMArena Math11831179
MATH Level 521%22.9%
GSM8K84.9%82.4%
Omni-MATH—13.7%
LiveBench Math19.8%—

Knowledge Gemma 2 9B leads

Gemma 2 9B: 9.7 (#305), Llama 3.1-8B: 8.0 (#307)

Knowledge benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
GPQA Diamond27.5%27%
LMArena Expert11471144
BoolQ85.7%82.8%
MMLU72.1%56.1%
MMLU-Pro—40.6%
GPQA (HELM)—24.7%

Multilingual Gemma 2 9B leads

Gemma 2 9B: 36.6 (#238), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
LMArena Non-English11881148
LMArena Chinese11851151
LMArena French11901177
LMArena German11861144
LMArena Japanese11441061
LMArena Korean11371053
LMArena Russian12001158
LMArena Spanish12001169

Instruction Following Llama 3.1-8B leads

Gemma 2 9B: 57.6 (#269), Llama 3.1-8B: 58.9 (#258)

Instruction Following benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
LMArena Instruction Following11781159
LiveBench Instruction Following52.6%—
IFEval—74.3%

Long Context Too close to call

Gemma 2 9B: 36.3 (#233), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
LMArena Longer Query11971182

Writing & Preference Gemma 2 9B leads

Gemma 2 9B: 32.1 (#281), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGemma 2 9BLlama 3.1-8B
LMArena Text12071187
LMArena Creative Writing12061154
EQ-Bench Creative Writing841713
LMArena Multi-Turn11931172
WildBench—68.7%
LiveBench Language25.5%—

Frequently asked questions

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

Gemma 2 9B is the stronger model overall, scoring 25.9 to 23.0 on the Noometry Index.

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

Gemma 2 9B scores higher on coding benchmarks: 29.4 versus 20.2 in the Noometry coding category.

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

28 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper