Model comparison

Gemma 2 2b IT vs Llama 3.1-8B

Gemma 2 2b IT is the stronger model overall, scoring 32.5 to 22.8 on the Noometry Index.

Last verified . 17 shared benchmarks.

Gemma 2 2b IT Google

32.5

Rank #244 Confirmed

Llama 3.1-8B Meta

22.8

Rank #347 Confirmed

Summary

  • They share 17 benchmarks with published results for both. Gemma 2 2b IT scores higher in 5 categories and Llama 3.1-8B in 3 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Gemma 2 2b IT leads 29.3 to 8.0.

Side by side

Gemma 2 2b IT and Llama 3.1-8B specifications
Gemma 2 2b ITLlama 3.1-8B
ProviderGoogleMeta
Noometry Index32.522.8
Released—2024-07-23
WeightsOpenOpen
Context window—128K
Max output—4K
Input $ / M tokens—$0.05
Output $ / M tokens—$0.08
Results tracked1743

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

Category by category

Coding Gemma 2 2b IT leads

Gemma 2 2b IT: 31.8 (#268), Llama 3.1-8B: 19.9 (#335)

Coding benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Coding11121195
SciCode—13.2%
WeirdML—1.7%
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use Not comparable

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

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

Reasoning Gemma 2 2b IT leads

Gemma 2 2b IT: 20.5 (#219), Llama 3.1-8B: 14.5 (#316)

Reasoning benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Hard Prompts11131175
CritPt—0%
Chess Puzzles—0%
DTBench—50.9%
LMCA—5.4%
Epoch Capabilities Index—116.48
PIQA—81.2%

Math Gemma 2 2b IT leads

Gemma 2 2b IT: 30.1 (#212), Llama 3.1-8B: 9.5 (#311)

Math benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Math11351179
OTIS Mock AIME 2024-2025—1.7%
Omni-MATH—13.7%
MATH Level 5—22.9%
GSM8K—82.4%

Knowledge Gemma 2 2b IT leads

Gemma 2 2b IT: 29.3 (#229), Llama 3.1-8B: 8.0 (#302)

Knowledge benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Expert10961144
GPQA Diamond—27%
MMLU-Pro—40.6%
GPQA (HELM)—24.7%
BoolQ—82.8%
MMLU—56.1%

Multilingual Llama 3.1-8B leads

Gemma 2 2b IT: 32.5 (#252), Llama 3.1-8B: 34.2 (#244)

Multilingual benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Non-English11211148
LMArena Chinese11321151
LMArena French11561176
LMArena German11141144
LMArena Japanese10831061
LMArena Korean10551053
LMArena Russian11181158
LMArena Spanish11401169

Instruction Following Llama 3.1-8B leads

Gemma 2 2b IT: 58.1 (#258), Llama 3.1-8B: 59.1 (#253)

Instruction Following benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Instruction Following11181159
IFEval—74.3%

Long Context Llama 3.1-8B leads

Gemma 2 2b IT: 34.2 (#245), Llama 3.1-8B: 35.8 (#233)

Long Context benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Longer Query11301182

Writing & Preference Gemma 2 2b IT leads

Gemma 2 2b IT: 36.6 (#258), Llama 3.1-8B: 29.9 (#285)

Writing & Preference benchmarks
BenchmarkGemma 2 2b ITLlama 3.1-8B
LMArena Text11561187
LMArena Creative Writing11471154
LMArena Multi-Turn11181172
EQ-Bench Creative Writing—713
WildBench—68.7%

Frequently asked questions

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

Gemma 2 2b IT is the stronger model overall, scoring 32.5 to 22.8 on the Noometry Index.

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

Gemma 2 2b IT scores higher on coding benchmarks: 31.8 versus 19.9 in the Noometry coding category.

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

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

Related comparisons

Go deeper