Model comparison

Gemma 2B vs Llama 3.1-8B

Gemma 2B is the stronger model overall, scoring 29.1 to 22.8 on the Noometry Index.

Last verified . 18 shared benchmarks.

Gemma 2B Google

29.1

Rank #305 Confirmed

Llama 3.1-8B Meta

22.8

Rank #347 Confirmed

Summary

  • They share 18 benchmarks with published results for both. Gemma 2B scores higher in 3 categories and Llama 3.1-8B in 4 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in math, where Gemma 2B leads 27.6 to 9.5.

Side by side

Gemma 2B and Llama 3.1-8B specifications
Gemma 2BLlama 3.1-8B
ProviderGoogleMeta
Noometry Index29.122.8
Released2024-02-212024-07-23
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.05
Output $ / M tokens—$0.08
Results tracked2343

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

Category by category

Coding Gemma 2B leads

Gemma 2B: 28.9 (#300), Llama 3.1-8B: 19.9 (#335)

Coding benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Coding10101195
HumanEval+20.7%62.8%
MBPP+34.1%55.6%
SciCode—13.2%
WeirdML—1.7%
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%

Agentic & Tool Use Not comparable

Gemma 2B: —, Llama 3.1-8B: 22.3 (#123)

Agentic & Tool Use benchmarks
BenchmarkGemma 2BLlama 3.1-8B
Berkeley Function Calling Leaderboard—25.8%
BALROG—15.1%

Reasoning Gemma 2B leads

Gemma 2B: 17.9 (#275), Llama 3.1-8B: 14.5 (#316)

Reasoning benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Hard Prompts9891175
Epoch Capabilities Index93.57116.48
PIQA77.3%81.2%
CritPt—0%
Chess Puzzles—0%
DTBench—50.9%
LMCA—5.4%
BIG-Bench Hard35.2%—
HellaSwag71.4%—
WinoGrande65.4%—

Math Gemma 2B leads

Gemma 2B: 27.6 (#237), Llama 3.1-8B: 9.5 (#311)

Math benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Math10091179
GSM8K17.7%82.4%
OTIS Mock AIME 2024-2025—1.7%
Omni-MATH—13.7%
MATH Level 5—22.9%

Knowledge Not comparable

Gemma 2B: —, Llama 3.1-8B: 8.0 (#302)

Knowledge benchmarks
BenchmarkGemma 2BLlama 3.1-8B
BoolQ69.4%82.8%
MMLU42.3%56.1%
GPQA Diamond—27%
MMLU-Pro—40.6%
GPQA (HELM)—24.7%
LMArena Expert—1144
ARC (AI2) Challenge42.1%—
TriviaQA53.2%—

Multilingual Llama 3.1-8B leads

Gemma 2B: 23.1 (#289), Llama 3.1-8B: 34.2 (#244)

Multilingual benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Non-English9581148
LMArena Chinese9861151
LMArena Russian9371158
LMArena French—1176
LMArena German—1144
LMArena Japanese—1061
LMArena Korean—1053
LMArena Spanish—1169

Instruction Following Llama 3.1-8B leads

Gemma 2B: 48.8 (#297), Llama 3.1-8B: 59.1 (#253)

Instruction Following benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Instruction Following9711159
IFEval—74.3%

Long Context Llama 3.1-8B leads

Gemma 2B: 29.9 (#286), Llama 3.1-8B: 35.8 (#233)

Long Context benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Longer Query9811182

Writing & Preference Llama 3.1-8B leads

Gemma 2B: 24.1 (#303), Llama 3.1-8B: 29.9 (#285)

Writing & Preference benchmarks
BenchmarkGemma 2BLlama 3.1-8B
LMArena Text10021187
LMArena Creative Writing9861154
LMArena Multi-Turn9451172
EQ-Bench Creative Writing—713
WildBench—68.7%

Frequently asked questions

Is Gemma 2B better than Llama 3.1-8B?

Gemma 2B is the stronger model overall, scoring 29.1 to 22.8 on the Noometry Index.

Is Gemma 2B or Llama 3.1-8B better for coding?

Gemma 2B scores higher on coding benchmarks: 28.9 versus 19.9 in the Noometry coding category.

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

18 benchmarks have published results for both models. Gemma 2B has 23 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper