Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct vs Qwen3.8 27B

Qwen3.8 27B leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 33.7 to 6.9, and Llama 3.1 8B Instruct costs 31.9x less per output token ($0.08 vs $2.55 per million). Updated October 22, 2026; 35 benchmarks have a result for both.

Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
Qwen3.8 27BQwen
Coding
74.2
Overall
59.6
Output $/M
$2.55
35
vs boards won of 35 shared

Llama 3.1 8B Instruct or Qwen3.8 27B: which to pick

Only Qwen3.8 27B has a coding score, 74.2 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding.

Pick Llama 3.1 8B Instruct for output tokens 31.9x cheaper ($0.08 vs $2.55 per million).

Shared results
35
Llama 3.1 8B Instruct only
16
Qwen3.8 27B only
50
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
Llama 3.1 8B Instruct not benchmarked, Qwen3.8 27B 74.2 from 4 benchmarks.
Widest category
Coding, 52.7 points apart on average over 3 shared benchmarks.
Widest single gap
GPQA Diamond (Artificial Analysis run): Llama 3.1 8B Instruct 25.9% against Qwen3.8 27B 90.5%, 64.6 points apart on a 0 to 100 scale.
Output price
Llama 3.1 8B Instruct $0.08 against Qwen3.8 27B $2.55 per million output tokens, 31.9x apart.
Context window
Llama 3.1 8B Instruct takes 131K tokens, Qwen3.8 27B 1M.

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
CategoryLlama 3.1 8B InstructBarsQwen3.8 27BTies
Coding03
Intelligence02
Reasoning05
Math02
Knowledge04
General019
All shared boards035
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
LiveBench codingNot measured86.8%Only Qwen3.8 27B measured
LMArena WebDevNot measured1593Only Qwen3.8 27B measured
AA Coding Index5.468.1Qwen3.8 27B
LiveCodeBench (Vals AI)Not measured84.0%Only Qwen3.8 27B measured
SWE-bench Verified (Vals AI)Not measured86.0%Only Qwen3.8 27B measured
Vibe Code Bench (Vals AI)Not measured64.8%Only Qwen3.8 27B measured
Code migration (Vals AI)Not measured14.2%Only Qwen3.8 27B measured
ProgramBench (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
IOI (Vals AI)Not measured39.1%Only Qwen3.8 27B measured
Terminal-Bench 2.1 (Vals AI)Not measured58.4%Only Qwen3.8 27B measured
SkillsBench (Vals AI)Not measured38.1%Only Qwen3.8 27B measured
CyberBench (Vals AI)Not measured67.8%Only Qwen3.8 27B measured
LiveCodeBench (Artificial Analysis run)11.6%Not measuredOnly Llama 3.1 8B Instruct measured
SciCodeNot measured46.6%Only Qwen3.8 27B measured
Terminal-Bench Hard (Artificial Analysis run)0.8%Not measuredOnly Llama 3.1 8B Instruct measured
WeirdML1.7%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: coding11951483Qwen3.8 27B
LMArena Text: software and IT11951478Qwen3.8 27B
LMArena WebDev: ReactNot measured1602Only Qwen3.8 27B measured
LMArena WebDev: HTMLNot measured1570Only Qwen3.8 27B measured
LMArena WebDev: from an imageNot measured1577Only Qwen3.8 27B measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
AA Intelligence Index6.933.7Qwen3.8 27B
Epoch Capabilities Index116.5151.7Qwen3.8 27B
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Agentic work benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
AA Agentic IndexNot measured45.8Only Qwen3.8 27B measured
LiveBench researchNot measured59.4%Only Qwen3.8 27B measured
LiveBench browserNot measured32.0%Only Qwen3.8 27B measured
LiveBench long agenticNot measured27.9%Only Qwen3.8 27B measured
Finance Agent (Vals AI)Not measured48.5%Only Qwen3.8 27B measured
Tax Agent Bench (Vals AI)Not measured30.9%Only Qwen3.8 27B measured
Legal Research Bench (Vals AI)Not measured36.1%Only Qwen3.8 27B measured
Excel Modeling Benchmark (Vals AI)Not measured59.7%Only Qwen3.8 27B measured
Terminal-Bench-Science (Vals AI)Not measured0.0%Only Qwen3.8 27B measured
τ²-Bench Telecom16.4%Not measuredOnly Llama 3.1 8B Instruct measured
APEX-AgentsNot measured47.5%Only Qwen3.8 27B measured
BALROG15.1%Not measuredOnly Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)25.8%Not measuredOnly Llama 3.1 8B Instruct measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index05
Reasoning benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
GPQA DiamondNot measured88.9%Only Qwen3.8 27B measured
LiveBench reasoningNot measured80.0%Only Qwen3.8 27B measured
MMMU Pro (Vals AI)Not measured83.9%Only Qwen3.8 27B measured
GPQA Diamond (Artificial Analysis run)25.9%90.5%Qwen3.8 27B
Humanity's Last Exam (Artificial Analysis run)5.3%33.9%Qwen3.8 27B
GPQA Diamond (Epoch AI run)27.0%Not measuredOnly Llama 3.1 8B Instruct measured
ARC-AGINot measured87.5%Only Qwen3.8 27B measured
ARC-AGI-2Not measured42.4%Only Qwen3.8 27B measured
LMArena Text: hard prompts11751459Qwen3.8 27B
LMArena Text: expert11441479Qwen3.8 27B
LMArena Text: hard prompts in English11961461Qwen3.8 27B
LMArena Vision: diagramsNot measured1285Only Qwen3.8 27B measured
LMArena Vision: homeworkNot measured1295Only Qwen3.8 27B measured
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
AA Math Index4.3Not measuredOnly Llama 3.1 8B Instruct measured
AIME 2025 (Artificial Analysis run)4.3%Not measuredOnly Llama 3.1 8B Instruct measured
OTIS Mock AIME1.7%Not measuredOnly Llama 3.1 8B Instruct measured
ProofBenchNot measured16.0%Only Qwen3.8 27B measured
MATH level 522.9%Not measuredOnly Llama 3.1 8B Instruct measured
GSM8K82.4%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: math11791455Qwen3.8 27B
LMArena Text: mathematical work11801458Qwen3.8 27B
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
Knowledge benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
MMLU ProNot measured84.3%Only Qwen3.8 27B measured
LegalBench (Vals AI)Not measured82.4%Only Qwen3.8 27B measured
TaxEval (Vals AI)Not measured70.8%Only Qwen3.8 27B measured
MortgageTax (Vals AI)Not measured64.9%Only Qwen3.8 27B measured
MedCode (Vals AI)Not measured28.7%Only Qwen3.8 27B measured
MMLU Pro (Artificial Analysis run)47.6%Not measuredOnly Llama 3.1 8B Instruct measured
MMLU56.1%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: science11931467Qwen3.8 27B
LMArena Text: medicine and healthcare11821437Qwen3.8 27B
LMArena Text: legal and government12061447Qwen3.8 27B
LMArena Text: business and finance11661438Qwen3.8 27B
Neither model has a result on the other 7 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Web design benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
LiveBench designNot measured75.9%Only Qwen3.8 27B measured
Neither model has a result on the other 8 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index019
General benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
LiveBench data analysisNot measured76.6%Only Qwen3.8 27B measured
SAGE (Vals AI)Not measured52.4%Only Qwen3.8 27B measured
MedScribe (Vals AI)Not measured83.8%Only Qwen3.8 27B measured
IFBench28.6%Not measuredOnly Llama 3.1 8B Instruct measured
Long context reasoning (AA-LCR)18.0%82.0%Qwen3.8 27B
DTBench50.9%88.0%Qwen3.8 27B
LMCA5.4%41.4%Qwen3.8 27B
Surface Evolver BenchNot measured45.0%Only Qwen3.8 27B measured
PIQA81.2%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text11871440Qwen3.8 27B
LMArena Text: instruction following11591436Qwen3.8 27B
LMArena Text: creative writing11541383Qwen3.8 27B
LMArena VisionNot measured1269Only Qwen3.8 27B measured
LMArena Text: English12181448Qwen3.8 27B
LMArena Text: non-English11481428Qwen3.8 27B
LMArena Text: Chinese11511501Qwen3.8 27B
LMArena Text: German11441443Qwen3.8 27B
LMArena Text: Japanese10611387Qwen3.8 27B
LMArena Text: Korean10531384Qwen3.8 27B
LMArena Text: French11781465Qwen3.8 27B
LMArena Text: Spanish11691449Qwen3.8 27B
LMArena Text: Russian11581415Qwen3.8 27B
LMArena Text: PolishNot measured1439Only Qwen3.8 27B measured
LMArena Text: multi-turn11721440Qwen3.8 27B
LMArena Text: longer queries11811448Qwen3.8 27B
LMArena Text: writing and language11621405Qwen3.8 27B
LMArena Text: entertainment and media11451393Qwen3.8 27B
LMArena Vision: EnglishNot measured1267Only Qwen3.8 27B measured
LMArena Vision: ChineseNot measured1326Only Qwen3.8 27B measured
LMArena Vision: reading textNot measured1281Only Qwen3.8 27B measured
LMArena Vision: humorNot measured1235Only Qwen3.8 27B measured
LMArena Vision: creative writingNot measured1237Only Qwen3.8 27B measured
Neither model has a result on the other 14 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Llama 3.1 8B Instruct and Qwen3.8 27B
BenchmarkLlama 3.1 8B InstructQwen3.8 27BLeader
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

Llama 3.1 8B Instruct$0.0001Fits in one request
Qwen3.8 27B$0.0017Fits in one request

Llama 3.1 8B Instruct costs less

Repository review

50K input + 3K output tokens

Llama 3.1 8B Instruct$0.0027Fits in one request
Qwen3.8 27B$0.029Fits in one request

Llama 3.1 8B Instruct costs less

Agent loop

200K input + 10K output tokens

Llama 3.1 8B Instruct$0.011Exceeds the context window
Qwen3.8 27B$0.111Fits in one request

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 Llama 3.1 8B Instruct and Qwen3.8 27B
SpecificationMeta Llama 3.1 8B InstructQwen3.8 27B
MakerMeta LlamaQwen
WeightsOpen weightsOpen weights
ReleasedJuly 23, 2024August 14, 2026
Context window131K1M
Input $/Mtok$0.05$0.425
Output $/Mtok$0.08$2.55
Coding indexNot benchmarked74.2
Independent measurements behind it04
Cost per solved taskNot computable$1.26
SourceOpenRouter listingOpenRouter listing

Questions

Is Llama 3.1 8B Instruct better than Qwen3.8 27B for coding?

Only Qwen3.8 27B has a coding score, 74.2 on the Vibe Coding Index; Llama 3.1 8B Instruct has none, so the two cannot be ranked on coding. Pick Llama 3.1 8B Instruct for output tokens 31.9x cheaper ($0.08 vs $2.55 per million).

Which is cheaper, Llama 3.1 8B Instruct or Qwen3.8 27B?

Llama 3.1 8B Instruct costs $0.05 per million input tokens and $0.08 per million output tokens; Qwen3.8 27B costs $0.425 and $2.55. Cost per solved task is known for Qwen3.8 27B only.

Which has the bigger context window, Llama 3.1 8B Instruct or Qwen3.8 27B?

Qwen3.8 27B, with 1M tokens against 131K.

How many benchmarks is the Llama 3.1 8B Instruct vs Qwen3.8 27B comparison based on?

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

Compare next