Model comparison

Gemma 2 27B vs Llama 3.1-405B

Llama 3.1-405B is the stronger model overall, scoring 30.7 to 29.4 on the Noometry Index.

Last verified . 24 shared benchmarks.

Gemma 2 27B Google

29.4

Rank #312 Confirmed

Llama 3.1-405B Meta

30.7

Rank #288 Confirmed

Summary

  • They share 24 benchmarks with published results for both. Gemma 2 27B scores higher in 2 categories and Llama 3.1-405B in 6 categories; 7 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Llama 3.1-405B leads 30.4 to 19.0.
  • The biggest single-benchmark swing is MATH Level 5: 27.9% for Gemma 2 27B and 49.8% for Llama 3.1-405B.

Side by side

Gemma 2 27B and Llama 3.1-405B specifications
Gemma 2 27BLlama 3.1-405B
ProviderGoogleMeta
Noometry Index29.430.7
Released2024-06-242024-07-23
WeightsOpenOpen
Context window8K—
Max output2K—
Input $ / M tokens$0.65—
Output $ / M tokens$0.65—
Results tracked3442

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

Category by category

Coding Too close to call

Gemma 2 27B: 34.1 (#246), Llama 3.1-405B: 33.1 (#262)

Coding benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Coding12111291
WeirdML—21.4%
BigCodeBench Instruct42.8%—
LiveBench Coding36%—
BigCodeBench Complete52.5%—

Agentic & Tool Use Not comparable

Gemma 2 27B: —, Llama 3.1-405B: 21.0 (#140)

Agentic & Tool Use benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
TheAgentCompany—7.4%
Cybench—7.5%

Reasoning Llama 3.1-405B leads

Gemma 2 27B: 15.3 (#315), Llama 3.1-405B: 16.8 (#300)

Reasoning benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Hard Prompts11981269
DTBench48%61.4%
Epoch Capabilities Index122.08128.75
SimpleBench—23%
Kagi LLM Benchmark—45%
LiveBench Reasoning28.1%—
LiveBench Data Analysis47.9%—
LMCA7.1%—
BIG-Bench Hard—82.9%
ForecastBench—59.9
HellaSwag—89.2%
LiveBench38.2%—
PIQA—85.9%
WinoGrande—89.2%

Math Llama 3.1-405B leads

Gemma 2 27B: 10.7 (#311), Llama 3.1-405B: 18.4 (#290)

Math benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
OTIS Mock AIME 2024-20251.4%9.7%
LMArena Math12121281
MATH Level 527.9%49.8%
Omni-MATH—24.9%
LiveBench Math26.5%—

Knowledge Llama 3.1-405B leads

Gemma 2 27B: 19.0 (#280), Llama 3.1-405B: 30.4 (#227)

Knowledge benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
GPQA Diamond36.5%50.9%
Confabulations27.1%17.6%
LMArena Expert11721243
MMLU75.7%84.5%
MMLU-Pro—72.3%
GPQA (HELM)—52.2%
ARC (AI2) Challenge—95.3%
TriviaQA—82.7%

Multilingual Llama 3.1-405B leads

Gemma 2 27B: 38.6 (#226), Llama 3.1-405B: 40.7 (#214)

Multilingual benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Non-English12171248
LMArena Chinese12211242
LMArena French12471279
LMArena German12091252
LMArena Japanese11751208
LMArena Korean11741184
LMArena Russian12341265
LMArena Spanish12281260

Instruction Following Llama 3.1-405B leads

Gemma 2 27B: 60.5 (#249), Llama 3.1-405B: 65.9 (#214)

Instruction Following benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Instruction Following12061259
LiveBench Instruction Following58.1%—
IFEval—81.1%

Long Context Llama 3.1-405B leads

Gemma 2 27B: 37.3 (#218), Llama 3.1-405B: 38.4 (#197)

Long Context benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Longer Query12311266

Writing & Preference Gemma 2 27B leads

Gemma 2 27B: 44.2 (#225), Llama 3.1-405B: 38.9 (#251)

Writing & Preference benchmarks
BenchmarkGemma 2 27BLlama 3.1-405B
LMArena Text12311284
LMArena Creative Writing12411262
LMArena Multi-Turn12241297
EQ-Bench Creative Writing—870
WildBench—78.3%
LiveBench Language32.6%—

Frequently asked questions

Is Gemma 2 27B better than Llama 3.1-405B?

Llama 3.1-405B is the stronger model overall, scoring 30.7 to 29.4 on the Noometry Index.

Is Gemma 2 27B or Llama 3.1-405B better for coding?

They score almost the same on coding (34.1 vs 33.1); test both on your own repository before choosing.

How many benchmarks do Gemma 2 27B and Llama 3.1-405B share?

24 benchmarks have published results for both models. Gemma 2 27B has 34 scored results on Noometry and Llama 3.1-405B has 42.

Related comparisons

Go deeper