Enter opens the highlighted result. Esc closes.

Llama 3.1 8B Instruct vs Qwen3 30B A3B Instruct 2507

Qwen3 30B A3B Instruct 2507 leads Llama 3.1 8B Instruct on the Artificial Analysis Intelligence Index, 7.5 to 6.9, and Llama 3.1 8B Instruct costs 3.8x less per output token ($0.08 vs $0.30 per million). Updated October 22, 2026; 43 benchmarks have a result for both.

Llama 3.1 8B InstructMeta Llama
Coding
No data
Overall
17.9
Output $/M
$0.08
0
Qwen3 30B A3B Instruct 2507Qwen
Coding
No data
Overall
41.5
Output $/M
$0.30
43
vs boards won of 43 shared

Llama 3.1 8B Instruct or Qwen3 30B A3B Instruct 2507: 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 3.8x cheaper ($0.08 vs $0.30 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Shared results
43
Llama 3.1 8B Instruct only
8
Qwen3 30B A3B Instruct 2507 only
2
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 30B A3B Instruct 2507 not benchmarked.
Widest category
Math, 51.8 points apart on average over 5 shared benchmarks.
Widest single gap
AA Math Index: Llama 3.1 8B Instruct 4.3 against Qwen3 30B A3B Instruct 2507 66.3, 62.0 points apart on a 0 to 100 scale.
Output price
Llama 3.1 8B Instruct $0.08 against Qwen3 30B A3B Instruct 2507 $0.30 per million output tokens, 3.8x apart.
Context window
Llama 3.1 8B Instruct takes 131K tokens, Qwen3 30B A3B Instruct 2507 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 30B A3B Instruct 2507Ties
Coding04
Intelligence01
Agentic work02
Reasoning06
Math05
Knowledge05
General020
All shared boards043
CodingLike-for-likeSix of these boards feed the Vibe Coding Index04
Coding benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
AA Coding Index5.4Not measuredOnly Llama 3.1 8B Instruct measured
LiveCodeBench (Artificial Analysis run)11.6%70.7%Qwen3 30B A3B Instruct 2507
SciCodeNot measured33.0%Only Qwen3 30B A3B Instruct 2507 measured
Terminal-Bench Hard (Artificial Analysis run)0.8%6.1%Qwen3 30B A3B Instruct 2507
WeirdML1.7%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: coding11951416Qwen3 30B A3B Instruct 2507
LMArena Text: software and IT11951417Qwen3 30B A3B Instruct 2507
Neither model has a result on the other 32 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
AA Intelligence Index6.97.5Qwen3 30B A3B Instruct 2507
Epoch Capabilities Index116.5Not measuredOnly Llama 3.1 8B Instruct measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
τ²-Bench Telecom16.4%28.1%Qwen3 30B A3B Instruct 2507
BALROG15.1%Not measuredOnly Llama 3.1 8B Instruct measured
Berkeley Function Calling Leaderboard (BFCL)25.8%41.4%Qwen3 30B A3B Instruct 2507
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
GPQA Diamond (Artificial Analysis run)25.9%70.7%Qwen3 30B A3B Instruct 2507
Humanity's Last Exam (Artificial Analysis run)5.3%10.3%Qwen3 30B A3B Instruct 2507
GPQA Diamond (Epoch AI run)27.0%55.6%Qwen3 30B A3B Instruct 2507
LMArena Text: hard prompts11751398Qwen3 30B A3B Instruct 2507
LMArena Text: expert11441397Qwen3 30B A3B Instruct 2507
LMArena Text: hard prompts in English11961406Qwen3 30B A3B Instruct 2507
Neither model has a result on the other 16 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index05
Math benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
AA Math Index4.366.3Qwen3 30B A3B Instruct 2507
AIME 2025 (Artificial Analysis run)4.3%66.3%Qwen3 30B A3B Instruct 2507
OTIS Mock AIME1.7%62.2%Qwen3 30B A3B Instruct 2507
MATH level 522.9%Not measuredOnly Llama 3.1 8B Instruct measured
GSM8K82.4%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: math11791394Qwen3 30B A3B Instruct 2507
LMArena Text: mathematical work11801411Qwen3 30B A3B Instruct 2507
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index05
Knowledge benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
MMLU Pro (Artificial Analysis run)47.6%80.5%Qwen3 30B A3B Instruct 2507
MMLU56.1%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text: science11931393Qwen3 30B A3B Instruct 2507
LMArena Text: medicine and healthcare11821392Qwen3 30B A3B Instruct 2507
LMArena Text: legal and government12061387Qwen3 30B A3B Instruct 2507
LMArena Text: business and finance11661389Qwen3 30B A3B Instruct 2507
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 Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index020
General benchmarks for Llama 3.1 8B Instruct and Qwen3 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
IFBench28.6%50.7%Qwen3 30B A3B Instruct 2507
Long context reasoning (AA-LCR)18.0%61.3%Qwen3 30B A3B Instruct 2507
DTBench50.9%67.2%Qwen3 30B A3B Instruct 2507
LMCA5.4%22.4%Qwen3 30B A3B Instruct 2507
PIQA81.2%Not measuredOnly Llama 3.1 8B Instruct measured
LMArena Text11871384Qwen3 30B A3B Instruct 2507
LMArena Text: instruction following11591363Qwen3 30B A3B Instruct 2507
LMArena Text: creative writing11541317Qwen3 30B A3B Instruct 2507
LMArena Text: English12181391Qwen3 30B A3B Instruct 2507
LMArena Text: non-English11481372Qwen3 30B A3B Instruct 2507
LMArena Text: Chinese11511432Qwen3 30B A3B Instruct 2507
LMArena Text: German11441379Qwen3 30B A3B Instruct 2507
LMArena Text: Japanese10611337Qwen3 30B A3B Instruct 2507
LMArena Text: Korean10531330Qwen3 30B A3B Instruct 2507
LMArena Text: French11781419Qwen3 30B A3B Instruct 2507
LMArena Text: Spanish11691404Qwen3 30B A3B Instruct 2507
LMArena Text: Russian11581369Qwen3 30B A3B Instruct 2507
LMArena Text: PolishNot measured1353Only Qwen3 30B A3B Instruct 2507 measured
LMArena Text: multi-turn11721378Qwen3 30B A3B Instruct 2507
LMArena Text: longer queries11811378Qwen3 30B A3B Instruct 2507
LMArena Text: writing and language11621336Qwen3 30B A3B Instruct 2507
LMArena Text: entertainment and media11451334Qwen3 30B A3B Instruct 2507
Neither model has a result on the other 24 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 30B A3B Instruct 2507
BenchmarkLlama 3.1 8B InstructQwen3 30B A3B Instruct 2507Leader
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 30B A3B Instruct 2507$0.0002Fits 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 30B A3B Instruct 2507$0.0054Fits 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 30B A3B Instruct 2507$0.021Fits 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 30B A3B Instruct 2507
SpecificationMeta Llama 3.1 8B InstructQwen3 30B A3B Instruct 2507
MakerMeta LlamaQwen
WeightsOpen weightsOpen weights
ReleasedJuly 23, 2024July 29, 2025
Context window131K262K
Input $/Mtok$0.05$0.09
Output $/Mtok$0.08$0.30
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Llama 3.1 8B Instruct better than Qwen3 30B A3B Instruct 2507 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 3.8x cheaper ($0.08 vs $0.30 per million) and work measured by LiveCodeBench (Artificial Analysis run) or Terminal-Bench Hard (Artificial Analysis run), where it leads.

Which is cheaper, Llama 3.1 8B Instruct or Qwen3 30B A3B Instruct 2507?

Llama 3.1 8B Instruct costs $0.05 per million input tokens and $0.08 per million output tokens; Qwen3 30B A3B Instruct 2507 costs $0.09 and $0.30. Cost per solved task is known for neither of them.

Which has the bigger context window, Llama 3.1 8B Instruct or Qwen3 30B A3B Instruct 2507?

Qwen3 30B A3B Instruct 2507, with 262K tokens against 131K.

How many benchmarks is the Llama 3.1 8B Instruct vs Qwen3 30B A3B Instruct 2507 comparison based on?

43 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 30B A3B Instruct 2507's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next