Model comparison

Gemma 2B vs Llama 2-7B

Gemma 2B and Llama 2-7B score almost the same on the Noometry Index (29.6 vs 29.1), 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-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 21 benchmarks with published results for both. Gemma 2B scores higher in 2 categories and Llama 2-7B in 5 categories; 3 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where Llama 2-7B leads 28.0 to 24.0.

Side by side

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

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

Category by category

Coding Too close to call

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

Coding benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Coding10101002
HumanEval+20.7%—
MBPP+34.1%—

Reasoning Gemma 2B leads

Gemma 2B: 18.8 (#275), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Hard Prompts9891009
BIG-Bench Hard35.2%39.2%
Epoch Capabilities Index94.299.06
HellaSwag71.4%77.2%
PIQA77.3%78.8%
WinoGrande65.4%69.2%
Chess Puzzles—0%
LAMBADA—73.3%

Math Too close to call

Gemma 2B: 30.0 (#239), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Math10091042
GSM8K17.7%16.7%

Knowledge Not comparable

Gemma 2B: —, Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkGemma 2BLlama 2-7B
ARC (AI2) Challenge42.1%45.9%
BoolQ69.4%77.9%
MMLU42.3%45.8%
TriviaQA53.2%73.7%
LMArena Expert—1036
OpenBookQA—58.6%

Multimodal Not comparable

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

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

Multilingual Too close to call

Gemma 2B: 23.0 (#294), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Non-English958973
LMArena Chinese986973
LMArena Russian937995
LMArena French—970
LMArena German—978
LMArena Spanish—1007

Instruction Following Llama 2-7B leads

Gemma 2B: 48.5 (#302), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Instruction Following9701006

Long Context Too close to call

Gemma 2B: 29.9 (#291), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Longer Query981999

Writing & Preference Llama 2-7B leads

Gemma 2B: 24.0 (#308), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkGemma 2BLlama 2-7B
LMArena Text10021053
LMArena Creative Writing9871033
LMArena Multi-Turn9451029

Frequently asked questions

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

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

Is Gemma 2B 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 2B and Llama 2-7B share?

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

Related comparisons

Go deeper