Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct vs Qwen3.5 397B A17B

Qwen3.5 397B A17B leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 21.4 to 6.9, and Llama 3.1 8B Instruct costs 29.2x less per output token ($0.08 vs $2.34 per million). Updated October 22, 2026; 39 benchmarks have a result for both.

Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
Qwen3.5 397B A17BQwen
Coding
No data
Overall
57.1
Output $/M
$2.34
39
vs boards won of 39 shared

Llama 3.1 8B Instruct or Qwen3.5 397B A17B: which to pick

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

Pick Llama 3.1 8B Instruct for output tokens 29.2x cheaper ($0.08 vs $2.34 per million) and work measured by Terminal-Bench Hard (Artificial Analysis run) or LMArena Text: coding, where it leads.

Shared results
39
Llama 3.1 8B Instruct only
12
Qwen3.5 397B A17B only
26
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
Llama 3.1 8B Instruct not benchmarked, Qwen3.5 397B A17B not benchmarked.
Widest category
Agentic work, 79.2 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: Llama 3.1 8B Instruct 1.7% against Qwen3.5 397B A17B 88.9%, 87.2 points apart on a 0 to 100 scale.
Output price
Llama 3.1 8B Instruct $0.08 against Qwen3.5 397B A17B $2.34 per million output tokens, 29.2x apart.
Context window
Llama 3.1 8B Instruct takes 131K tokens, Qwen3.5 397B A17B 262K.

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.5 397B A17BTies
Coding03
Intelligence02
Agentic work01
Reasoning06
Math03
Knowledge04
General020
All shared boards039
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
LMArena WebDevNot measured1400Only Qwen3.5 397B A17B measured
AA Coding Index5.4Not measuredOnly Llama 3.1 8B Instruct measured
LiveCodeBench (Artificial Analysis run)11.6%Not measuredOnly Llama 3.1 8B Instruct measured
SciCodeNot measured44.8%Only Qwen3.5 397B A17B measured
Terminal-Bench Hard (Artificial Analysis run)0.8%40.9%Qwen3.5 397B A17B
WeirdML1.7%Not measuredOnly Llama 3.1 8B Instruct measured
ALE-BenchNot measured621.9Only Qwen3.5 397B A17B measured
LMArena Text: coding11951464Qwen3.5 397B A17B
LMArena Text: software and IT11951463Qwen3.5 397B A17B
LMArena WebDev: ReactNot measured1388Only Qwen3.5 397B A17B measured
LMArena WebDev: HTMLNot measured1410Only Qwen3.5 397B A17B measured
Neither model has a result on the other 28 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
AA Intelligence Index6.921.4Qwen3.5 397B A17B
Epoch Capabilities Index116.5146.8Qwen3.5 397B A17B
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
τ²-Bench Telecom16.4%95.6%Qwen3.5 397B A17B
APEX-AgentsNot measured24.9%Only Qwen3.5 397B A17B 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 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
GPQA Diamond (Artificial Analysis run)25.9%89.3%Qwen3.5 397B A17B
Humanity's Last Exam (Artificial Analysis run)5.3%29.0%Qwen3.5 397B A17B
GPQA Diamond (Epoch AI run)27.0%86.4%Qwen3.5 397B A17B
Mystery game puzzlesNot measured18.0%Only Qwen3.5 397B A17B measured
LMArena Text: hard prompts11751448Qwen3.5 397B A17B
LMArena Text: expert11441462Qwen3.5 397B A17B
LMArena Text: hard prompts in English11961450Qwen3.5 397B A17B
LMArena Vision: diagramsNot measured1277Only Qwen3.5 397B A17B measured
LMArena Vision: homeworkNot measured1292Only Qwen3.5 397B A17B measured
Neither model has a result on the other 13 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
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%88.9%Qwen3.5 397B A17B
FrontierMath, tiers 1 to 3Not measured31.2%Only Qwen3.5 397B A17B 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: math11791453Qwen3.5 397B A17B
LMArena Text: mathematical work11801454Qwen3.5 397B A17B
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.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
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: science11931457Qwen3.5 397B A17B
LMArena Text: medicine and healthcare11821455Qwen3.5 397B A17B
LMArena Text: legal and government12061441Qwen3.5 397B A17B
LMArena Text: business and finance11661435Qwen3.5 397B A17B
Neither model has a result on the other 12 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Web design benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
Design Arena: websitesNot measured1190Only Qwen3.5 397B A17B measured
Design Arena: UI componentsNot measured1160Only Qwen3.5 397B A17B measured
Design Arena: game devNot measured1140Only Qwen3.5 397B A17B measured
Design Arena: data vizNot measured1175Only Qwen3.5 397B A17B measured
Design Arena: 3DNot measured1160Only Qwen3.5 397B A17B measured
Design Arena: all code categoriesNot measured1179Only Qwen3.5 397B A17B measured
Design Arena: SVGNot measured1139Only Qwen3.5 397B A17B measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index020
General benchmarks for Llama 3.1 8B Instruct and Qwen3.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
IFBench28.6%78.8%Qwen3.5 397B A17B
Long context reasoning (AA-LCR)18.0%77.3%Qwen3.5 397B A17B
DTBench50.9%87.5%Qwen3.5 397B A17B
LMCA5.4%37.9%Qwen3.5 397B A17B
PIQA81.2%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text11871437Qwen3.5 397B A17B
LMArena Text: instruction following11591424Qwen3.5 397B A17B
LMArena Text: creative writing11541402Qwen3.5 397B A17B
LMArena VisionNot measured1262Only Qwen3.5 397B A17B measured
LMArena Text: English12181443Qwen3.5 397B A17B
LMArena Text: non-English11481430Qwen3.5 397B A17B
LMArena Text: Chinese11511498Qwen3.5 397B A17B
LMArena Text: German11441445Qwen3.5 397B A17B
LMArena Text: Japanese10611429Qwen3.5 397B A17B
LMArena Text: Korean10531384Qwen3.5 397B A17B
LMArena Text: French11781462Qwen3.5 397B A17B
LMArena Text: Spanish11691441Qwen3.5 397B A17B
LMArena Text: Russian11581430Qwen3.5 397B A17B
LMArena Text: PolishNot measured1447Only Qwen3.5 397B A17B measured
LMArena Text: multi-turn11721446Qwen3.5 397B A17B
LMArena Text: longer queries11811441Qwen3.5 397B A17B
LMArena Text: writing and language11621415Qwen3.5 397B A17B
LMArena Text: entertainment and media11451399Qwen3.5 397B A17B
LMArena Vision: EnglishNot measured1268Only Qwen3.5 397B A17B measured
LMArena Vision: ChineseNot measured1314Only Qwen3.5 397B A17B measured
LMArena Vision: reading textNot measured1271Only Qwen3.5 397B A17B measured
LMArena Vision: humorNot measured1262Only Qwen3.5 397B A17B measured
LMArena Vision: captioningNot measured1230Only Qwen3.5 397B A17B measured
LMArena Vision: recognizing thingsNot measured1265Only Qwen3.5 397B A17B measured
LMArena Vision: creative writingNot measured1260Only Qwen3.5 397B A17B measured
Neither model has a result on the other 16 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.5 397B A17B
BenchmarkLlama 3.1 8B InstructQwen3.5 397B A17BLeader
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.5 397B A17B$0.0016Fits 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.5 397B A17B$0.027Fits 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.5 397B A17B$0.101Fits 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.5 397B A17B
SpecificationMeta Llama 3.1 8B InstructQwen3.5 397B A17B
MakerMeta LlamaQwen
WeightsOpen weightsOpen weights
ReleasedJuly 23, 2024February 16, 2026
Context window131K262K
Input $/Mtok$0.05$0.39
Output $/Mtok$0.08$2.34
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it01
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Llama 3.1 8B Instruct better than Qwen3.5 397B A17B for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick Llama 3.1 8B Instruct for output tokens 29.2x cheaper ($0.08 vs $2.34 per million) and work measured by Terminal-Bench Hard (Artificial Analysis run) or LMArena Text: coding, where it leads.

Which is cheaper, Llama 3.1 8B Instruct or Qwen3.5 397B A17B?

Llama 3.1 8B Instruct costs $0.05 per million input tokens and $0.08 per million output tokens; Qwen3.5 397B A17B costs $0.39 and $2.34. Cost per solved task is known for neither of them.

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

Qwen3.5 397B A17B, with 262K tokens against 131K.

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

39 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.5 397B A17B's on 1. Where only one model has a result, the page says so instead of naming a winner.

Compare next