Model comparison

Gemma 3 12B vs Llama 3.1-8B

Gemma 3 12B is the stronger model overall, scoring 32.1 to 23.0 on the Noometry Index.

Last verified . 22 shared benchmarks.

Gemma 3 12B Google

32.1

Rank #262 Confirmed

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Summary

  • They share 22 benchmarks with published results for both. Gemma 3 12B scores higher in 9 categories and Llama 3.1-8B in 0 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Gemma 3 12B leads 26.5 to 8.0.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 16.7% for Gemma 3 12B and 1.7% for Llama 3.1-8B.
  • Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $0.05 / $0.15 for Gemma 3 12B.
  • Gemma 3 12B accepts more context: 131K tokens versus 128K.

Side by side

Gemma 3 12B and Llama 3.1-8B specifications
Gemma 3 12BLlama 3.1-8B
ProviderGoogleMeta
Noometry Index32.123.0
Released2025-03-122024-07-23
WeightsOpenOpen
Context window131K128K
Max output8K4K
Input $ / M tokens$0.05$0.05
Output $ / M tokens$0.15$0.08
Results tracked2443

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

Category by category

Coding Gemma 3 12B leads

Gemma 3 12B: 31.7 (#280), Llama 3.1-8B: 20.2 (#340)

Coding benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
SciCode17.4%13.2%
LMArena Coding12811195
WeirdML—1.7%
BigCodeBench Instruct—32.8%
BigCodeBench Complete—40.5%
HumanEval+—62.8%
MBPP+—55.6%

Agentic & Tool Use Gemma 3 12B leads

Gemma 3 12B: 25.5 (#108), Llama 3.1-8B: 22.5 (#131)

Agentic & Tool Use benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
Berkeley Function Calling Leaderboard30.4%25.8%
BALROG—15.1%

Reasoning Too close to call

Gemma 3 12B: 15.7 (#313), Llama 3.1-8B: 14.9 (#321)

Reasoning benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
CritPt0%0%
Chess Puzzles0%0%
LMArena Hard Prompts13091175
DTBench48.8%50.9%
LMCA4.5%5.4%
Epoch Capabilities Index123.5116.57
PIQA—81.2%

Math Gemma 3 12B leads

Gemma 3 12B: 22.3 (#279), Llama 3.1-8B: 10.2 (#317)

Math benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
OTIS Mock AIME 2024-202516.7%1.7%
LMArena Math13071179
Omni-MATH—13.7%
MATH Level 5—22.9%
GSM8K—82.4%

Knowledge Gemma 3 12B leads

Gemma 3 12B: 26.5 (#257), Llama 3.1-8B: 8.0 (#307)

Knowledge benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
GPQA Diamond39.5%27%
LMArena Expert12481144
MMLU-Pro—40.6%
Vectara Hallucination Rate4.4%—
GPQA (HELM)—24.7%
BoolQ—82.8%
MMLU—56.1%

Multimodal Not comparable

Gemma 3 12B: —, Llama 3.1-8B: —

Multimodal benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
MindCube46.7%—

Multilingual Gemma 3 12B leads

Gemma 3 12B: 45.7 (#165), Llama 3.1-8B: 34.0 (#249)

Multilingual benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
LMArena Non-English13181148
LMArena German13701144
LMArena Russian13351158
LMArena Chinese—1151
LMArena French—1177
LMArena Japanese—1061
LMArena Korean—1053
LMArena Spanish—1169

Instruction Following Gemma 3 12B leads

Gemma 3 12B: 68.6 (#186), Llama 3.1-8B: 58.9 (#258)

Instruction Following benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
LMArena Instruction Following12991159
IFEval—74.3%

Long Context Gemma 3 12B leads

Gemma 3 12B: 40.0 (#162), Llama 3.1-8B: 35.8 (#238)

Long Context benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
LMArena Longer Query13171182

Writing & Preference Gemma 3 12B leads

Gemma 3 12B: 47.5 (#209), Llama 3.1-8B: 29.7 (#290)

Writing & Preference benchmarks
BenchmarkGemma 3 12BLlama 3.1-8B
LMArena Text13341187
LMArena Creative Writing13311154
EQ-Bench Creative Writing1126713
LMArena Multi-Turn13341172
WildBench—68.7%

Frequently asked questions

Is Gemma 3 12B better than Llama 3.1-8B?

Gemma 3 12B is the stronger model overall, scoring 32.1 to 23.0 on the Noometry Index.

Which is cheaper, Gemma 3 12B or Llama 3.1-8B?

Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; Gemma 3 12B lists at $0.05 and $0.15.

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

Gemma 3 12B scores higher on coding benchmarks: 31.7 versus 20.2 in the Noometry coding category.

Which has the bigger context window?

Gemma 3 12B does, with 131K tokens against 128K.

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

22 benchmarks have published results for both models. Gemma 3 12B has 24 scored results on Noometry and Llama 3.1-8B has 43.

Related comparisons

Go deeper