Model comparison

Gemma 4 31B IT vs Llama 2-7B

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.1 on the Noometry Index.

Last verified . 16 shared benchmarks.

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Llama 2-7B Meta

29.1

Rank #317 Confirmed

Summary

  • They share 16 benchmarks with published results for both. Gemma 4 31B IT scores higher in 8 categories and Llama 2-7B in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where Gemma 4 31B IT leads 60.5 to 28.0.
  • The biggest single-benchmark swing is Chess Puzzles: 5% for Gemma 4 31B IT and 0% for Llama 2-7B.

Side by side

Gemma 4 31B IT and Llama 2-7B specifications
Gemma 4 31B ITLlama 2-7B
ProviderGoogleMeta
Noometry Index43.529.1
Released2026-04-022023-07-18
WeightsOpenOpen
Context window262K—
Max output33K—
Input $ / M tokens$0.09—
Output $ / M tokens$0.34—
Results tracked3529

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

Category by category

Coding Gemma 4 31B IT leads

Gemma 4 31B IT: 42.3 (#108), Llama 2-7B: 29.2 (#307)

Coding benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Coding14591002
LMArena WebDev1366—
SciCode43.4%—
WeirdML52.3%—
ALE-Bench925.5—

Reasoning Gemma 4 31B IT leads

Gemma 4 31B IT: 27.2 (#122), Llama 2-7B: 15.7 (#312)

Reasoning benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
Chess Puzzles5%0%
LMArena Hard Prompts14481009
Epoch Capabilities Index142.7499.06
Kagi LLM Benchmark63.5%—
NYT Connections (extended)70.6%—
CritPt1.4%—
Thematic Generalization53%—
DTBench82.7%—
LMCA39.3%—
Surface Evolver Bench30.6%—
BIG-Bench Hard—39.2%
HellaSwag—77.2%
LAMBADA—73.3%
PIQA—78.8%
WinoGrande—69.2%

Math Gemma 4 31B IT leads

Gemma 4 31B IT: 43.2 (#81), Llama 2-7B: 30.7 (#233)

Math benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Math14651042
OTIS Mock AIME 2024-202573.3%—
GSM8K—16.7%

Knowledge Gemma 4 31B IT leads

Gemma 4 31B IT: 37.9 (#151), Llama 2-7B: 28.2 (#248)

Knowledge benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Expert14651036
GPQA Diamond75.8%—
SimpleQA Verified10.4%—
Vectara Hallucination Rate7.4%—
ARC (AI2) Challenge—45.9%
BoolQ—77.9%
MMLU—45.8%
OpenBookQA—58.6%
TriviaQA—73.7%

Multimodal Not comparable

Gemma 4 31B IT: 41.6 (#34), Llama 2-7B: —

Multimodal benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Vision1277—
LMArena Document1425—
ScienceQA—43.1%

Multilingual Gemma 4 31B IT leads

Gemma 4 31B IT: 53.8 (#57), Llama 2-7B: 23.8 (#293)

Multilingual benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Non-English1431973
LMArena Chinese1476973
LMArena French1435970
LMArena Russian1460995
LMArena Spanish14441007
LMArena German—978

Instruction Following Gemma 4 31B IT leads

Gemma 4 31B IT: 75.5 (#61), Llama 2-7B: 50.8 (#298)

Instruction Following benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Instruction Following14331006

Long Context Gemma 4 31B IT leads

Gemma 4 31B IT: 44.2 (#71), Llama 2-7B: 30.4 (#287)

Long Context benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Longer Query1446999

Writing & Preference Gemma 4 31B IT leads

Gemma 4 31B IT: 60.5 (#96), Llama 2-7B: 28.0 (#298)

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITLlama 2-7B
LMArena Text14431053
LMArena Creative Writing14151033
LMArena Multi-Turn14521029
EQ-Bench Creative Writing1368—
EQ-Bench 41120—

Frequently asked questions

Is Gemma 4 31B IT better than Llama 2-7B?

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 29.1 on the Noometry Index.

Is Gemma 4 31B IT or Llama 2-7B better for coding?

Gemma 4 31B IT scores higher on coding benchmarks: 42.3 versus 29.2 in the Noometry coding category.

How many benchmarks do Gemma 4 31B IT and Llama 2-7B share?

16 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and Llama 2-7B has 29.

Related comparisons

Go deeper