Model comparison

Gemma 7B vs Llama 2-13B

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

Last verified . 24 shared benchmarks.

Gemma 7B Google

30.0

Rank #299 Confirmed

Llama 2-13B Meta

29.6

Rank #309 Confirmed

Summary

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

Side by side

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

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

Category by category

Coding Too close to call

Gemma 7B: 30.5 (#294), Llama 2-13B: 30.9 (#291)

Coding benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Coding10481062
HumanEval+28.7%—
MBPP+43.4%—

Reasoning Gemma 7B leads

Gemma 7B: 19.9 (#249), Llama 2-13B: 12.8 (#337)

Reasoning benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Hard Prompts10421051
BIG-Bench Hard55.1%58.2%
Epoch Capabilities Index111.99106.17
HellaSwag82.2%80.7%
PIQA81.2%80.8%
WinoGrande79%72.8%
Chess Puzzles—0%
DTBench—42.2%
Adversarial NLI48.7%—
LAMBADA—76.5%

Math Too close to call

Gemma 7B: 31.2 (#228), Llama 2-13B: 31.1 (#229)

Math benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Math10661065
GSM8K46.4%36.9%

Knowledge Too close to call

Gemma 7B: 27.3 (#252), Llama 2-13B: 28.1 (#249)

Knowledge benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Expert10011030
ARC (AI2) Challenge78.3%60.3%
BoolQ83.2%82.4%
MMLU66.1%55.6%
OpenBookQA78.6%57%
TriviaQA72.3%79.6%

Multimodal Not comparable

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

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

Multilingual Llama 2-13B leads

Gemma 7B: 25.1 (#287), Llama 2-13B: 26.5 (#279)

Multilingual benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Non-English9991024
LMArena Chinese10351001
LMArena French10251044
LMArena Russian9931055
LMArena German—1009
LMArena Japanese—894
LMArena Korean—953
LMArena Spanish—1087

Instruction Following Llama 2-13B leads

Gemma 7B: 51.5 (#295), Llama 2-13B: 53.3 (#287)

Instruction Following benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Instruction Following10171045

Long Context Llama 2-13B leads

Gemma 7B: 31.1 (#282), Llama 2-13B: 32.3 (#269)

Long Context benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Longer Query10221064

Writing & Preference Llama 2-13B leads

Gemma 7B: 27.1 (#302), Llama 2-13B: 29.8 (#289)

Writing & Preference benchmarks
BenchmarkGemma 7BLlama 2-13B
LMArena Text10561084
LMArena Creative Writing10241047
LMArena Multi-Turn9631050

Frequently asked questions

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

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

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

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

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

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

Related comparisons

Go deeper