Model comparison

Gemma 2 9B vs Llama 2-13B

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

Last verified . 22 shared benchmarks.

Gemma 2 9B Google

25.7

Rank #334 Confirmed

Llama 2-13B Meta

29.1

Rank #304 Confirmed

Summary

  • They share 22 benchmarks with published results for both. Gemma 2 9B scores higher in 5 categories and Llama 2-13B in 3 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in math, where Llama 2-13B leads 28.7 to 9.3.

Side by side

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

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

Category by category

Coding Llama 2-13B leads

Gemma 2 9B: 29.0 (#299), Llama 2-13B: 30.4 (#287)

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

Reasoning Gemma 2 9B leads

Gemma 2 9B: 15.3 (#306), Llama 2-13B: 12.3 (#333)

Reasoning benchmarks
BenchmarkGemma 2 9BLlama 2-13B
LMArena Hard Prompts11721051
Epoch Capabilities Index119.78105.8
PIQA83.7%80.8%
Chess Puzzles—0%
LiveBench Reasoning15.2%—
DTBench—42.2%
LiveBench Data Analysis36.4%—
BIG-Bench Hard—58.2%
HellaSwag—80.7%
LAMBADA—76.5%
LiveBench28.7%—
WinoGrande—72.8%

Math Llama 2-13B leads

Gemma 2 9B: 9.3 (#312), Llama 2-13B: 28.7 (#226)

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

Knowledge Llama 2-13B leads

Gemma 2 9B: 9.7 (#300), Llama 2-13B: 27.5 (#244)

Knowledge benchmarks
BenchmarkGemma 2 9BLlama 2-13B
LMArena Expert11471030
BoolQ85.7%82.4%
MMLU72.1%55.6%
GPQA Diamond27.5%—
ARC (AI2) Challenge—60.3%
OpenBookQA—57%
TriviaQA—79.6%

Multimodal Not comparable

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

Multimodal benchmarks
BenchmarkGemma 2 9BLlama 2-13B
ScienceQA—55.8%

Multilingual Gemma 2 9B leads

Gemma 2 9B: 36.8 (#233), Llama 2-13B: 26.7 (#274)

Multilingual benchmarks
BenchmarkGemma 2 9BLlama 2-13B
LMArena Non-English11881024
LMArena Chinese11851001
LMArena French11891043
LMArena German11861009
LMArena Japanese1144894
LMArena Korean1137953
LMArena Russian12001055
LMArena Spanish12001086

Instruction Following Gemma 2 9B leads

Gemma 2 9B: 57.8 (#264), Llama 2-13B: 53.5 (#282)

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

Long Context Gemma 2 9B leads

Gemma 2 9B: 36.3 (#228), Llama 2-13B: 32.3 (#264)

Long Context benchmarks
BenchmarkGemma 2 9BLlama 2-13B
LMArena Longer Query11971064

Writing & Preference Gemma 2 9B leads

Gemma 2 9B: 32.3 (#276), Llama 2-13B: 30.0 (#284)

Writing & Preference benchmarks
BenchmarkGemma 2 9BLlama 2-13B
LMArena Text12071085
LMArena Creative Writing12061047
LMArena Multi-Turn11931050
EQ-Bench Creative Writing841—
LiveBench Language25.5%—

Frequently asked questions

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

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

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

Llama 2-13B scores higher on coding benchmarks: 30.4 versus 29.0 in the Noometry coding category.

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

22 benchmarks have published results for both models. Gemma 2 9B has 35 scored results on Noometry and Llama 2-13B has 32.

Related comparisons

Go deeper