Enter opens the highlighted result. Esc closes.

Gemma 2 27B vs Llama 3.1 70B Instruct

Gemma 2 27B and Llama 3.1 70B Instruct cost about the same per output token ($0.65 vs $0.56 per million). Updated October 21, 2026; 34 benchmarks have a result for both.

Gemma 2 27BGoogle
Coding
No data
Overall
No data
Output $/M
$0.65
6
Llama 3.1 70B InstructMeta Llama
Coding
No data
Overall
24.3
Output $/M
$0.56
28
vs boards won of 34 shared

Gemma 2 27B or Llama 3.1 70B Instruct: which to pick

Neither model has a coding score yet, so the two cannot be ranked on coding.

Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
34
Gemma 2 27B only
2
Llama 3.1 70B Instruct only
13
Like-for-like categories
6 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Gemma 2 27B not benchmarked, Llama 3.1 70B Instruct not benchmarked.
Widest category
Reasoning, 7.6 points apart on average over 4 shared benchmarks.
Widest single gap
DTBench: Gemma 2 27B 48.0% against Llama 3.1 70B Instruct 60.0%, 12.0 points apart on a 0 to 100 scale.
Output price
Gemma 2 27B $0.65 against Llama 3.1 70B Instruct $0.56 per million output tokens, 1.2x apart.
Context window
Gemma 2 27B takes 8K tokens, Llama 3.1 70B Instruct 131K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGemma 2 27BBarsLlama 3.1 70B InstructTies
Coding02
Intelligence01
Reasoning04
Math04
Knowledge05
General612
All shared boards628
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
LiveCodeBench (Artificial Analysis run)Not measured23.2%Only Llama 3.1 70B Instruct measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.0%Only Llama 3.1 70B Instruct measured
WeirdMLNot measured9.0%Only Llama 3.1 70B Instruct measured
LMArena Text: coding12111260Llama 3.1 70B Instruct
LMArena Text: software and IT12281260Llama 3.1 70B Instruct
Neither model has a result on the other 34 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
AA Intelligence IndexNot measured6.6Only Llama 3.1 70B Instruct measured
Epoch Capabilities Index122.1125.9Llama 3.1 70B Instruct
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
Agentic work benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
τ²-Bench TelecomNot measured15.2%Only Llama 3.1 70B Instruct measured
BALROGNot measured27.9%Only Llama 3.1 70B Instruct measured
TheAgentCompanyNot measured6.9%Only Llama 3.1 70B Instruct measured
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
GPQA Diamond (Artificial Analysis run)Not measured40.9%Only Llama 3.1 70B Instruct measured
Humanity's Last Exam (Artificial Analysis run)Not measured4.5%Only Llama 3.1 70B Instruct measured
GPQA Diamond (Epoch AI run)36.5%44.2%Llama 3.1 70B Instruct
LMArena Text: hard prompts11981241Llama 3.1 70B Instruct
LMArena Text: expert11711209Llama 3.1 70B Instruct
LMArena Text: hard prompts in English12061261Llama 3.1 70B Instruct
Neither model has a result on the other 16 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index04
Math benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
AA Math IndexNot measured4.0Only Llama 3.1 70B Instruct measured
AIME 2025 (Artificial Analysis run)Not measured4.0%Only Llama 3.1 70B Instruct measured
OTIS Mock AIME1.4%3.6%Llama 3.1 70B Instruct
MATH level 527.9%36.7%Llama 3.1 70B Instruct
LMArena Text: math12121252Llama 3.1 70B Instruct
LMArena Text: mathematical work12211253Llama 3.1 70B Instruct
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
LegalBench (Vals AI)68.0%Not measuredOnly Gemma 2 27B measured
MMLU Pro (Artificial Analysis run)Not measured67.6%Only Llama 3.1 70B Instruct measured
MMLU75.7%80.1%Llama 3.1 70B Instruct
LMArena Text: science12281276Llama 3.1 70B Instruct
LMArena Text: medicine and healthcare11981257Llama 3.1 70B Instruct
LMArena Text: legal and government12411283Llama 3.1 70B Instruct
LMArena Text: business and finance12081235Llama 3.1 70B Instruct
Neither model has a result on the other 11 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index612
General benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
IFBenchNot measured34.4%Only Llama 3.1 70B Instruct measured
DTBench48.0%60.0%Llama 3.1 70B Instruct
LMCA7.1%14.8%Llama 3.1 70B Instruct
LMArena Text12311261Llama 3.1 70B Instruct
LMArena Text: instruction following12061231Llama 3.1 70B Instruct
LMArena Text: creative writing12401232Gemma 2 27B
LMArena Text: English12421294Llama 3.1 70B Instruct
LMArena Text: non-English12171219Llama 3.1 70B Instruct
LMArena Text: Chinese12211215Gemma 2 27B
LMArena Text: German12091222Llama 3.1 70B Instruct
LMArena Text: Japanese11751132Gemma 2 27B
LMArena Text: Korean11741140Gemma 2 27B
LMArena Text: French12481262Llama 3.1 70B Instruct
LMArena Text: Spanish12281253Llama 3.1 70B Instruct
LMArena Text: Russian12341234Gemma 2 27B
LMArena Text: Polish1277Not measuredOnly Gemma 2 27B measured
LMArena Text: multi-turn12241256Llama 3.1 70B Instruct
LMArena Text: longer queries12301241Llama 3.1 70B Instruct
LMArena Text: writing and language12491236Gemma 2 27B
LMArena Text: entertainment and media12121230Llama 3.1 70B Instruct
Neither model has a result on the other 26 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 2 27B and Llama 3.1 70B Instruct
BenchmarkGemma 2 27BLlama 3.1 70B InstructLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Gemma 2 27B$0.0010Fits in one request
Llama 3.1 70B Instruct$0.0008Fits in one request

Llama 3.1 70B Instruct costs less

Repository review

50K input + 3K output tokens

Gemma 2 27B$0.034Exceeds the context window
Llama 3.1 70B Instruct$0.030Fits in one request

Llama 3.1 70B Instruct costs less

Agent loop

200K input + 10K output tokens

Gemma 2 27B$0.137Exceeds the context window
Llama 3.1 70B Instruct$0.118Exceeds the context window

Llama 3.1 70B Instruct costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Gemma 2 27B and Llama 3.1 70B Instruct
SpecificationGoogle Gemma 2 27BMeta Llama 3.1 70B Instruct
MakerGoogleMeta Llama
WeightsOpen weightsOpen weights
ReleasedJuly 13, 2024July 23, 2024
Context window8K131K
Input $/Mtok$0.65$0.56
Output $/Mtok$0.65$0.56
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 2 27B better than Llama 3.1 70B Instruct for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Gemma 2 27B for work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, Gemma 2 27B or Llama 3.1 70B Instruct?

Gemma 2 27B costs $0.65 per million input tokens and $0.65 per million output tokens; Llama 3.1 70B Instruct costs $0.56 and $0.56. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemma 2 27B or Llama 3.1 70B Instruct?

Llama 3.1 70B Instruct, with 131K tokens against 8K.

How many benchmarks is the Gemma 2 27B vs Llama 3.1 70B Instruct comparison based on?

34 benchmarks have a result for both models as of October 21, 2026. Gemma 2 27B's coding index rests on 0 independent benchmarks and Llama 3.1 70B Instruct's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next