Model comparison

Gemma 2 9B vs Llama 2-7B

Llama 2-7B is the stronger model overall, scoring 29.1 to 25.9 on the Noometry Index.

Last verified . 20 shared benchmarks.

Gemma 2 9B Google

25.9

Rank #341 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 20 benchmarks with published results for both. Gemma 2 9B scores higher in 6 categories and Llama 2-7B in 2 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in math, where Llama 2-7B leads 30.7 to 9.9.

Side by side

Gemma 2 9B and Llama 2-7B specifications
Gemma 2 9BLlama 2-7B
ProviderGoogleMeta
Noometry Index25.929.1
Released2024-06-242023-07-18
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked3529

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

Category by category

Coding Too close to call

Gemma 2 9B: 29.4 (#304), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Coding11731002
BigCodeBench Instruct34.7%—
LiveBench Coding22.5%—
BigCodeBench Complete40.6%—

Reasoning Too close to call

Gemma 2 9B: 15.9 (#309), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Hard Prompts11711009
Epoch Capabilities Index119.8399.06
PIQA83.7%78.8%
Chess Puzzles—0%
LiveBench Reasoning15.2%—
LiveBench Data Analysis36.4%—
BIG-Bench Hard—39.2%
HellaSwag—77.2%
LAMBADA—73.3%
LiveBench28.7%—
WinoGrande—69.2%

Math Llama 2-7B leads

Gemma 2 9B: 9.9 (#318), Llama 2-7B: 30.7 (#233)

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

Knowledge Llama 2-7B leads

Gemma 2 9B: 9.7 (#305), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Expert11471036
BoolQ85.7%77.9%
MMLU72.1%45.8%
GPQA Diamond27.5%—
ARC (AI2) Challenge—45.9%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Gemma 2 9B: —, Llama 2-7B: —

Multimodal benchmarks
BenchmarkGemma 2 9BLlama 2-7B
ScienceQA—43.1%

Multilingual Gemma 2 9B leads

Gemma 2 9B: 36.6 (#238), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Non-English1188973
LMArena Chinese1185973
LMArena French1190970
LMArena German1186978
LMArena Russian1200995
LMArena Spanish12001007
LMArena Japanese1144—
LMArena Korean1137—

Instruction Following Gemma 2 9B leads

Gemma 2 9B: 57.6 (#269), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Instruction Following11781006
LiveBench Instruction Following52.6%—

Long Context Gemma 2 9B leads

Gemma 2 9B: 36.3 (#233), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Longer Query1197999

Writing & Preference Gemma 2 9B leads

Gemma 2 9B: 32.1 (#281), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkGemma 2 9BLlama 2-7B
LMArena Text12071053
LMArena Creative Writing12061033
LMArena Multi-Turn11931029
EQ-Bench Creative Writing841—
LiveBench Language25.5%—

Frequently asked questions

Is Gemma 2 9B better than Llama 2-7B?

Llama 2-7B is the stronger model overall, scoring 29.1 to 25.9 on the Noometry Index.

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

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

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

20 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper