Model comparison

Gemma 3 4B vs Llama 3-8B

Gemma 3 4B is the stronger model overall, scoring 27.9 to 25.3 on the Noometry Index.

Last verified . 17 shared benchmarks.

Gemma 3 4B Google

27.9

Rank #320 Confirmed

Llama 3-8B Meta

25.3

Rank #338 Confirmed

Summary

  • They share 17 benchmarks with published results for both. Gemma 3 4B scores higher in 7 categories and Llama 3-8B in 1 category; 8 gaps are clear of the uncertainty.
  • The widest gap is in multilingual, where Gemma 3 4B leads 42.7 to 31.0.
  • The biggest single-benchmark swing is DTBench: 50.9% for Gemma 3 4B and 43.9% for Llama 3-8B.
  • Gemma 3 4B is cheaper at $0.04 / $0.08 per million input/output tokens, against $0.14 / $0.14 for Llama 3-8B.
  • Gemma 3 4B accepts more context: 131K tokens versus 8K.

Side by side

Gemma 3 4B and Llama 3-8B specifications
Gemma 3 4BLlama 3-8B
ProviderGoogleMeta
Noometry Index27.925.3
Released2025-03-122024-04-18
WeightsOpenOpen
Context window131K8K
Max output4K8K
Input $ / M tokens$0.04$0.14
Output $ / M tokens$0.08$0.14
Results tracked2234

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

Category by category

Coding Gemma 3 4B leads

Gemma 3 4B: 35.3 (#214), Llama 3-8B: 30.5 (#285)

Coding benchmarks
BenchmarkGemma 3 4BLlama 3-8B
LMArena Coding12301152
BigCodeBench Instruct—31.9%
BigCodeBench Complete—36.9%
HumanEval+—56.7%
MBPP+—54.8%

Agentic & Tool Use Not comparable

Gemma 3 4B: 20.7 (#134), Llama 3-8B: —

Agentic & Tool Use benchmarks
BenchmarkGemma 3 4BLlama 3-8B
Berkeley Function Calling Leaderboard19.6%—

Reasoning Llama 3-8B leads

Gemma 3 4B: 12.7 (#330), Llama 3-8B: 13.8 (#321)

Reasoning benchmarks
BenchmarkGemma 3 4BLlama 3-8B
Chess Puzzles0%0%
LMArena Hard Prompts12531133
DTBench50.9%43.9%
Epoch Capabilities Index116.02116.33
Kagi LLM Benchmark25.2%—
LMCA2.8%—
Adversarial NLI—57.3%
ForecastBench—58.6
WinoGrande—75.7%

Math Gemma 3 4B leads

Gemma 3 4B: 15.8 (#286), Llama 3-8B: 8.3 (#317)

Math benchmarks
BenchmarkGemma 3 4BLlama 3-8B
OTIS Mock AIME 2024-20257.5%1.9%
LMArena Math12391151
MATH Level 5—6.1%

Knowledge Gemma 3 4B leads

Gemma 3 4B: 11.8 (#294), Llama 3-8B: 7.8 (#303)

Knowledge benchmarks
BenchmarkGemma 3 4BLlama 3-8B
GPQA Diamond23.2%26.1%
LMArena Expert12231113
Vectara Hallucination Rate6.4%—
ARC (AI2) Challenge—82.8%
MMLU—68.8%
OpenBookQA—82.6%
TriviaQA—67.7%

Multilingual Gemma 3 4B leads

Gemma 3 4B: 42.7 (#189), Llama 3-8B: 31.0 (#256)

Multilingual benchmarks
BenchmarkGemma 3 4BLlama 3-8B
LMArena Non-English12731098
LMArena German12811104
LMArena Russian12941109
LMArena Chinese—1076
LMArena French—1158
LMArena Japanese—967
LMArena Korean—1003
LMArena Spanish—1172

Instruction Following Gemma 3 4B leads

Gemma 3 4B: 65.4 (#219), Llama 3-8B: 58.7 (#255)

Instruction Following benchmarks
BenchmarkGemma 3 4BLlama 3-8B
LMArena Instruction Following12391127

Long Context Gemma 3 4B leads

Gemma 3 4B: 38.6 (#189), Llama 3-8B: 34.2 (#246)

Long Context benchmarks
BenchmarkGemma 3 4BLlama 3-8B
LMArena Longer Query12741128

Writing & Preference Gemma 3 4B leads

Gemma 3 4B: 42.2 (#234), Llama 3-8B: 37.7 (#251)

Writing & Preference benchmarks
BenchmarkGemma 3 4BLlama 3-8B
LMArena Text12911166
LMArena Creative Writing12701150
LMArena Multi-Turn12551152
EQ-Bench Creative Writing1068—

Frequently asked questions

Is Gemma 3 4B better than Llama 3-8B?

Gemma 3 4B is the stronger model overall, scoring 27.9 to 25.3 on the Noometry Index.

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

Gemma 3 4B is cheaper. It lists at $0.04 per million input tokens and $0.08 per million output tokens; Llama 3-8B lists at $0.14 and $0.14.

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

Gemma 3 4B scores higher on coding benchmarks: 35.3 versus 30.5 in the Noometry coding category.

Which has the bigger context window?

Gemma 3 4B does, with 131K tokens against 8K.

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

17 benchmarks have published results for both models. Gemma 3 4B has 22 scored results on Noometry and Llama 3-8B has 34.

Related comparisons

Go deeper