Enter opens the highlighted result. Esc closes.

Granite 4.2 8B vs Llama 3.1 8B Instruct

Granite 4.2 8B leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 11.1 to 6.9, and Llama 3.1 8B Instruct costs 2.5x less per output token ($0.08 vs $0.20 per million). Updated October 22, 2026; 25 benchmarks have a result for both.

Granite 4.2 8BIBM Granite
Coding
No data
Overall
No data
Output $/M
$0.20
25
Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
vs boards won of 25 shared

Granite 4.2 8B or Llama 3.1 8B Instruct: which to pick

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

Compare them on price, context and the boards below.

Shared results
25
Granite 4.2 8B only
2
Llama 3.1 8B Instruct only
26
Like-for-like categories
5 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
Granite 4.2 8B not benchmarked, Llama 3.1 8B Instruct not benchmarked.
Widest category
Reasoning, 26.4 points apart on average over 5 shared benchmarks.
Widest single gap
LMArena Text: expert: Granite 4.2 8B 1386 against Llama 3.1 8B Instruct 1144, 40.3 points apart on a 0 to 100 scale.
Output price
Granite 4.2 8B $0.20 against Llama 3.1 8B Instruct $0.08 per million output tokens, 2.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
CategoryGranite 4.2 8BBarsLlama 3.1 8B InstructTies
Coding30
Intelligence10
Reasoning50
Knowledge40
General120
All shared boards250
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
AA Coding Index22.45.4Granite 4.2 8B
LiveCodeBench (Artificial Analysis run)Not measured11.6%Only Llama 3.1 8B Instruct measured
SciCode31.5%Not measuredOnly Granite 4.2 8B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Llama 3.1 8B Instruct measured
WeirdMLNot measured1.7%Only Llama 3.1 8B Instruct measured
LMArena Text: coding13781195Granite 4.2 8B
LMArena Text: software and IT13671195Granite 4.2 8B
Neither model has a result on the other 36 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
AA Intelligence Index11.16.9Granite 4.2 8B
Epoch Capabilities IndexNot measured116.5Only Llama 3.1 8B Instruct measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index4 boards, none shared
Agentic work benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
AA Agentic Index1.3Not measuredOnly Granite 4.2 8B measured
τ²-Bench TelecomNot measured16.4%Only Llama 3.1 8B Instruct measured
BALROGNot measured15.1%Only Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)Not measured25.8%Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index50
Reasoning benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
GPQA Diamond (Artificial Analysis run)63.1%25.9%Granite 4.2 8B
Humanity's Last Exam (Artificial Analysis run)9.7%5.3%Granite 4.2 8B
GPQA Diamond (Epoch AI run)Not measured27.0%Only Llama 3.1 8B Instruct measured
LMArena Text: hard prompts13271175Granite 4.2 8B
LMArena Text: expert13861144Granite 4.2 8B
LMArena Text: hard prompts in English13451196Granite 4.2 8B
Neither model has a result on the other 17 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Math benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
AA Math IndexNot measured4.3Only Llama 3.1 8B Instruct measured
AIME 2025 (Artificial Analysis run)Not measured4.3%Only Llama 3.1 8B Instruct measured
OTIS Mock AIMENot measured1.7%Only Llama 3.1 8B Instruct measured
MATH level 5Not measured22.9%Only Llama 3.1 8B Instruct measured
GSM8KNot measured82.4%Only Llama 3.1 8B Instruct measured
LMArena Text: mathNot measured1179Only Llama 3.1 8B Instruct measured
LMArena Text: mathematical workNot measured1180Only Llama 3.1 8B Instruct measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
MMLU Pro (Artificial Analysis run)Not measured47.6%Only Llama 3.1 8B Instruct measured
MMLUNot measured56.1%Only Llama 3.1 8B Instruct measured
LMArena Text: science13361193Granite 4.2 8B
LMArena Text: medicine and healthcare13361182Granite 4.2 8B
LMArena Text: legal and government13271206Granite 4.2 8B
LMArena Text: business and finance13221166Granite 4.2 8B
Neither model has a result on the other 14 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index120
General benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B InstructLeader
IFBenchNot measured28.6%Only Llama 3.1 8B Instruct measured
Long context reasoning (AA-LCR)45.0%18.0%Granite 4.2 8B
DTBenchNot measured50.9%Only Llama 3.1 8B Instruct measured
LMCANot measured5.4%Only Llama 3.1 8B Instruct measured
PIQANot measured81.2%Only Llama 3.1 8B Instruct measured
LMArena Text13191187Granite 4.2 8B
LMArena Text: instruction following13001159Granite 4.2 8B
LMArena Text: creative writing12361154Granite 4.2 8B
LMArena Text: English13371218Granite 4.2 8B
LMArena Text: non-English13011148Granite 4.2 8B
LMArena Text: Chinese13671151Granite 4.2 8B
LMArena Text: GermanNot measured1144Only Llama 3.1 8B Instruct measured
LMArena Text: JapaneseNot measured1061Only Llama 3.1 8B Instruct measured
LMArena Text: KoreanNot measured1053Only Llama 3.1 8B Instruct measured
LMArena Text: FrenchNot measured1178Only Llama 3.1 8B Instruct measured
LMArena Text: SpanishNot measured1169Only Llama 3.1 8B Instruct measured
LMArena Text: Russian12821158Granite 4.2 8B
LMArena Text: multi-turn13011172Granite 4.2 8B
LMArena Text: longer queries13251181Granite 4.2 8B
LMArena Text: writing and language12691162Granite 4.2 8B
LMArena Text: entertainment and media12711145Granite 4.2 8B
Neither model has a result on the other 27 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Granite 4.2 8B and Llama 3.1 8B Instruct
BenchmarkGranite 4.2 8BLlama 3.1 8B 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

Granite 4.2 8B$0.0002Fits in one request
Llama 3.1 8B Instruct$0.0001Fits in one request

Llama 3.1 8B Instruct costs less

Repository review

50K input + 3K output tokens

Granite 4.2 8B$0.0046Fits in one request
Llama 3.1 8B Instruct$0.0027Fits in one request

Llama 3.1 8B Instruct costs less

Agent loop

200K input + 10K output tokens

Granite 4.2 8B$0.018Exceeds the context window
Llama 3.1 8B Instruct$0.011Exceeds the context window

Llama 3.1 8B 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 Granite 4.2 8B and Llama 3.1 8B Instruct
SpecificationIBM Granite 4.2 8BMeta Llama 3.1 8B Instruct
MakerIBM GraniteMeta Llama
WeightsOpen weightsOpen weights
ReleasedAugust 31, 2026July 23, 2024
Context window131K131K
Input $/Mtok$0.08$0.05
Output $/Mtok$0.20$0.08
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Granite 4.2 8B better than Llama 3.1 8B Instruct for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Compare them on price, context and the boards below.

Which is cheaper, Granite 4.2 8B or Llama 3.1 8B Instruct?

Granite 4.2 8B costs $0.08 per million input tokens and $0.20 per million output tokens; Llama 3.1 8B Instruct costs $0.05 and $0.08. Cost per solved task is known for neither of them.

Which has the bigger context window, Granite 4.2 8B or Llama 3.1 8B Instruct?

Neither: both take 131K tokens.

How many benchmarks is the Granite 4.2 8B vs Llama 3.1 8B Instruct comparison based on?

25 benchmarks have a result for both models as of October 22, 2026. Granite 4.2 8B's coding index rests on 0 independent benchmarks and Llama 3.1 8B Instruct's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next