Enter opens the highlighted result. Esc closes.

Gemma 3 4B vs Llama 3.1 70B Instruct

Llama 3.1 70B Instruct leads Gemma 3 4B on the Artificial Analysis Intelligence Index, 6.6 to 4.8, and Gemma 3 4B costs 7.5x less per output token ($0.075 vs $0.56 per million). Updated October 22, 2026; 37 benchmarks have a result for both.

Gemma 3 4BGoogle
Coding
No data
Overall
22.6
Output $/M
$0.075
22
Llama 3.1 70B InstructMeta Llama
Coding
No data
Overall
24.3
Output $/M
$0.56
15
vs boards won of 37 shared

Gemma 3 4B 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 3 4B for output tokens 7.5x cheaper ($0.075 vs $0.56 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
37
Gemma 3 4B only
5
Llama 3.1 70B Instruct only
10
Like-for-like categories
7 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 3 4B not benchmarked, Llama 3.1 70B Instruct not benchmarked.
Widest category
Knowledge, 13.0 points apart on average over 5 shared benchmarks.
Widest single gap
MMLU Pro (Artificial Analysis run): Gemma 3 4B 41.7% against Llama 3.1 70B Instruct 67.6%, 25.9 points apart on a 0 to 100 scale.
Output price
Gemma 3 4B $0.075 against Llama 3.1 70B Instruct $0.56 per million output tokens, 7.5x apart.
Context window
Both take 131K tokens.

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 3 4BBarsLlama 3.1 70B InstructTies
Coding13
Intelligence02
Agentic work01
Reasoning33
Math41
Knowledge41
General104
All shared boards2215
CodingLike-for-likeSix of these boards feed the Vibe Coding Index13
Coding benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
AA Coding Index2.7Not measuredOnly Gemma 3 4B measured
LiveCodeBench (Artificial Analysis run)11.2%23.2%Llama 3.1 70B Instruct
Terminal-Bench Hard (Artificial Analysis run)0.8%3.0%Llama 3.1 70B Instruct
WeirdMLNot measured9.0%Only Llama 3.1 70B Instruct measured
LMArena Text: coding12301260Llama 3.1 70B Instruct
LMArena Text: software and IT12691260Gemma 3 4B
SciCode0.0%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 32 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
AA Intelligence Index4.86.6Llama 3.1 70B Instruct
Epoch Capabilities Index115.9125.9Llama 3.1 70B Instruct
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
τ²-Bench Telecom5.0%15.2%Llama 3.1 70B Instruct
BALROGNot measured27.9%Only Llama 3.1 70B Instruct measured
TheAgentCompanyNot measured6.9%Only Llama 3.1 70B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)19.6%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index33
Reasoning benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
GPQA Diamond (Artificial Analysis run)29.1%40.9%Llama 3.1 70B Instruct
Humanity's Last Exam (Artificial Analysis run)5.3%4.5%Gemma 3 4B
GPQA Diamond (Epoch AI run)23.2%44.2%Llama 3.1 70B Instruct
LMArena Text: hard prompts12531241Gemma 3 4B
LMArena Text: expert12231209Gemma 3 4B
LMArena Text: hard prompts in English12531261Llama 3.1 70B Instruct
Kagi LLM Benchmark25.2%Not measuredOnly Gemma 3 4B measured
Neither model has a result on the other 15 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index41
Math benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
AA Math Index12.74.0Gemma 3 4B
AIME 2025 (Artificial Analysis run)12.7%4.0%Gemma 3 4B
OTIS Mock AIME7.5%3.6%Gemma 3 4B
MATH level 5Not measured36.7%Only Llama 3.1 70B Instruct measured
LMArena Text: math12391252Llama 3.1 70B Instruct
LMArena Text: mathematical work12561253Gemma 3 4B
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
Knowledge benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
MMLU Pro (Artificial Analysis run)41.7%67.6%Llama 3.1 70B Instruct
MMLUNot measured80.1%Only Llama 3.1 70B Instruct measured
LMArena Text: science13061276Gemma 3 4B
LMArena Text: medicine and healthcare13421257Gemma 3 4B
LMArena Text: legal and government13271283Gemma 3 4B
LMArena Text: business and finance13111235Gemma 3 4B
Neither model has a result on the other 12 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index104
General benchmarks for Gemma 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 3.1 70B InstructLeader
IFBench28.3%34.4%Llama 3.1 70B Instruct
Long context reasoning (AA-LCR)6.7%Not measuredOnly Gemma 3 4B measured
DTBench50.9%60.0%Llama 3.1 70B Instruct
LMCA2.8%14.8%Llama 3.1 70B Instruct
LMArena Text12911261Gemma 3 4B
LMArena Text: instruction following12391231Gemma 3 4B
LMArena Text: creative writing12701232Gemma 3 4B
LMArena Text: English13001294Gemma 3 4B
LMArena Text: non-English12731219Gemma 3 4B
LMArena Text: ChineseNot measured1215Only Llama 3.1 70B Instruct measured
LMArena Text: German12811222Gemma 3 4B
LMArena Text: JapaneseNot measured1132Only Llama 3.1 70B Instruct measured
LMArena Text: KoreanNot measured1140Only Llama 3.1 70B Instruct measured
LMArena Text: FrenchNot measured1262Only Llama 3.1 70B Instruct measured
LMArena Text: SpanishNot measured1253Only Llama 3.1 70B Instruct measured
LMArena Text: Russian12941234Gemma 3 4B
LMArena Text: multi-turn12551256Llama 3.1 70B Instruct
LMArena Text: longer queries12731241Gemma 3 4B
LMArena Text: writing and language12881236Gemma 3 4B
LMArena Text: entertainment and media12331230Gemma 3 4B
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 3 4B and Llama 3.1 70B Instruct
BenchmarkGemma 3 4BLlama 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 3 4B$0.0001Fits in one request
Llama 3.1 70B Instruct$0.0008Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Gemma 3 4B$0.0025Fits in one request
Llama 3.1 70B Instruct$0.030Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Gemma 3 4B$0.0097Exceeds the context window
Llama 3.1 70B Instruct$0.118Exceeds the context window

Gemma 3 4B 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 3 4B and Llama 3.1 70B Instruct
SpecificationGoogle Gemma 3 4BMeta Llama 3.1 70B Instruct
MakerGoogleMeta Llama
WeightsOpen weightsOpen weights
ReleasedMarch 13, 2025July 23, 2024
Context window131K131K
Input $/Mtok$0.045$0.56
Output $/Mtok$0.075$0.56
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 3 4B 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 3 4B for output tokens 7.5x cheaper ($0.075 vs $0.56 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Which is cheaper, Gemma 3 4B or Llama 3.1 70B Instruct?

Gemma 3 4B costs $0.045 per million input tokens and $0.075 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 3 4B or Llama 3.1 70B Instruct?

Neither: both take 131K tokens.

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

37 benchmarks have a result for both models as of October 22, 2026. Gemma 3 4B'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