Model comparison

Gemma 2B vs Llama 2-13B

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

Last verified . 21 shared benchmarks.

Gemma 2B Google

29.6

Rank #307 Confirmed

Llama 2-13B Meta

29.6

Rank #309 Confirmed

Summary

  • They share 21 benchmarks with published results for both. Gemma 2B scores higher in 1 category and Llama 2-13B in 6 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where Gemma 2B leads 18.8 to 12.8.

Side by side

Gemma 2B and Llama 2-13B specifications
Gemma 2BLlama 2-13B
ProviderGoogleMeta
Noometry Index29.629.6
Released2024-02-212023-07-18
WeightsOpenOpen
Context window——
Max output——
Input $ / M tokens——
Output $ / M tokens——
Results tracked2332

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

Category by category

Coding Llama 2-13B leads

Gemma 2B: 29.4 (#305), Llama 2-13B: 30.9 (#291)

Coding benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Coding10101062
HumanEval+20.7%—
MBPP+34.1%—

Reasoning Gemma 2B leads

Gemma 2B: 18.8 (#275), Llama 2-13B: 12.8 (#337)

Reasoning benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Hard Prompts9891051
BIG-Bench Hard35.2%58.2%
Epoch Capabilities Index94.2106.17
HellaSwag71.4%80.7%
PIQA77.3%80.8%
WinoGrande65.4%72.8%
Chess Puzzles—0%
DTBench—42.2%
LAMBADA—76.5%

Math Llama 2-13B leads

Gemma 2B: 30.0 (#239), Llama 2-13B: 31.1 (#229)

Math benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Math10091065
GSM8K17.7%36.9%

Knowledge Not comparable

Gemma 2B: —, Llama 2-13B: 28.1 (#249)

Knowledge benchmarks
BenchmarkGemma 2BLlama 2-13B
ARC (AI2) Challenge42.1%60.3%
BoolQ69.4%82.4%
MMLU42.3%55.6%
TriviaQA53.2%79.6%
LMArena Expert—1030
OpenBookQA—57%

Multimodal Not comparable

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

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

Multilingual Llama 2-13B leads

Gemma 2B: 23.0 (#294), Llama 2-13B: 26.5 (#279)

Multilingual benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Non-English9581024
LMArena Chinese9861001
LMArena Russian9371055
LMArena French—1044
LMArena German—1009
LMArena Japanese—894
LMArena Korean—953
LMArena Spanish—1087

Instruction Following Llama 2-13B leads

Gemma 2B: 48.5 (#302), Llama 2-13B: 53.3 (#287)

Instruction Following benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Instruction Following9701045

Long Context Llama 2-13B leads

Gemma 2B: 29.9 (#291), Llama 2-13B: 32.3 (#269)

Long Context benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Longer Query9811064

Writing & Preference Llama 2-13B leads

Gemma 2B: 24.0 (#308), Llama 2-13B: 29.8 (#289)

Writing & Preference benchmarks
BenchmarkGemma 2BLlama 2-13B
LMArena Text10021084
LMArena Creative Writing9871047
LMArena Multi-Turn9451050

Frequently asked questions

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

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

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

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

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

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

Related comparisons

Go deeper