Model comparison

Gemma 4 31B IT vs Llama 2-13B

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

Last verified . 17 shared benchmarks.

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Llama 2-13B Meta

29.6

Rank #309 Confirmed

Summary

  • They share 17 benchmarks with published results for both. Gemma 4 31B IT scores higher in 8 categories and Llama 2-13B 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 29.8.
  • The biggest single-benchmark swing is DTBench: 82.7% for Gemma 4 31B IT and 42.2% for Llama 2-13B.

Side by side

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

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-13B: 30.9 (#291)

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

Reasoning Gemma 4 31B IT leads

Gemma 4 31B IT: 27.2 (#122), Llama 2-13B: 12.8 (#337)

Reasoning benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
Chess Puzzles5%0%
LMArena Hard Prompts14481051
DTBench82.7%42.2%
Epoch Capabilities Index142.74106.17
Kagi LLM Benchmark63.5%—
NYT Connections (extended)70.6%—
CritPt1.4%—
Thematic Generalization53%—
LMCA39.3%—
Surface Evolver Bench30.6%—
BIG-Bench Hard—58.2%
HellaSwag—80.7%
LAMBADA—76.5%
PIQA—80.8%
WinoGrande—72.8%

Math Gemma 4 31B IT leads

Gemma 4 31B IT: 43.2 (#81), Llama 2-13B: 31.1 (#229)

Math benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Math14651065
OTIS Mock AIME 2024-202573.3%—
GSM8K—36.9%

Knowledge Gemma 4 31B IT leads

Gemma 4 31B IT: 37.9 (#151), Llama 2-13B: 28.1 (#249)

Knowledge benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Expert14651030
GPQA Diamond75.8%—
SimpleQA Verified10.4%—
Vectara Hallucination Rate7.4%—
ARC (AI2) Challenge—60.3%
BoolQ—82.4%
MMLU—55.6%
OpenBookQA—57%
TriviaQA—79.6%

Multimodal Not comparable

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

Multimodal benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Vision1277—
LMArena Document1425—
ScienceQA—55.8%

Multilingual Gemma 4 31B IT leads

Gemma 4 31B IT: 53.8 (#57), Llama 2-13B: 26.5 (#279)

Multilingual benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Non-English14311024
LMArena Chinese14761001
LMArena French14351044
LMArena Russian14601055
LMArena Spanish14441087
LMArena German—1009
LMArena Japanese—894
LMArena Korean—953

Instruction Following Gemma 4 31B IT leads

Gemma 4 31B IT: 75.5 (#61), Llama 2-13B: 53.3 (#287)

Instruction Following benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Instruction Following14331045

Long Context Gemma 4 31B IT leads

Gemma 4 31B IT: 44.2 (#71), Llama 2-13B: 32.3 (#269)

Long Context benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Longer Query14461064

Writing & Preference Gemma 4 31B IT leads

Gemma 4 31B IT: 60.5 (#96), Llama 2-13B: 29.8 (#289)

Writing & Preference benchmarks
BenchmarkGemma 4 31B ITLlama 2-13B
LMArena Text14431084
LMArena Creative Writing14151047
LMArena Multi-Turn14521050
EQ-Bench Creative Writing1368—
EQ-Bench 41120—

Frequently asked questions

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

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

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

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

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

17 benchmarks have published results for both models. Gemma 4 31B IT has 35 scored results on Noometry and Llama 2-13B has 32.

Related comparisons

Go deeper