Model comparison

Llama 3.1-8B vs Qwen2.5 7B Instruct

Qwen2.5 7B Instruct is the stronger model overall, scoring 29.0 to 23.0 on the Noometry Index. Llama 3.1-8B costs 5.3× less per token, which makes it the better buy when Qwen2.5 7B Instruct's lead doesn't matter for your workload.

Last verified . 15 shared benchmarks.

Llama 3.1-8B Meta

23.0

Rank #352 Confirmed

Qwen2.5 7B Instruct Alibaba (Qwen)

29.0

Rank #320 Confirmed

Summary

  • They share 15 benchmarks with published results for both. Llama 3.1-8B scores higher in 1 category and Qwen2.5 7B Instruct in 6 categories; 6 gaps are clear of the uncertainty.
  • The widest gap is in writing & preference, where Qwen2.5 7B Instruct leads 48.8 to 29.7.
  • The biggest single-benchmark swing is Omni-MATH: 13.7% for Llama 3.1-8B and 29.4% for Qwen2.5 7B Instruct.
  • Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $0.17 / $0.70 for Qwen2.5 7B Instruct.
  • Qwen2.5 7B Instruct accepts more context: 131K tokens versus 128K.

Side by side

Llama 3.1-8B and Qwen2.5 7B Instruct specifications
Llama 3.1-8BQwen2.5 7B Instruct
ProviderMetaAlibaba (Qwen)
Noometry Index23.029.0
Released2024-07-232024-09
WeightsOpenOpen
Context window128K131K
Max output4K8K
Input $ / M tokens$0.05$0.17
Output $ / M tokens$0.08$0.70
Results tracked4315

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Qwen2.5 7B Instruct leads

Llama 3.1-8B: 20.2 (#340), Qwen2.5 7B Instruct: 36.5 (#208)

Coding benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
BigCodeBench Instruct32.8%37.6%
BigCodeBench Complete40.5%46.1%
SciCode13.2%—
WeirdML1.7%—
LMArena Coding1195—
HumanEval+62.8%—
MBPP+55.6%—

Agentic & Tool Use Qwen2.5 7B Instruct leads

Llama 3.1-8B: 22.5 (#131), Qwen2.5 7B Instruct: 23.8 (#124)

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
BALROG15.1%7.8%
Berkeley Function Calling Leaderboard25.8%—

Reasoning Too close to call

Llama 3.1-8B: 14.9 (#321), Qwen2.5 7B Instruct: 14.8 (#322)

Reasoning benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
Chess Puzzles0%0%
DTBench50.9%47.7%
LMCA5.4%6.4%
Epoch Capabilities Index116.57118.51
CritPt0%—
LMArena Hard Prompts1175—
PIQA81.2%—

Math Qwen2.5 7B Instruct leads

Llama 3.1-8B: 10.2 (#317), Qwen2.5 7B Instruct: 12.6 (#306)

Math benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
OTIS Mock AIME 2024-20251.7%2.5%
Omni-MATH13.7%29.4%
LMArena Math1179—
MATH Level 522.9%—
GSM8K82.4%—

Knowledge Qwen2.5 7B Instruct leads

Llama 3.1-8B: 8.0 (#307), Qwen2.5 7B Instruct: 17.0 (#286)

Knowledge benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
GPQA Diamond27%35.5%
MMLU-Pro40.6%53.9%
GPQA (HELM)24.7%34.1%
MMLU56.1%72.9%
LMArena Expert1144—
BoolQ82.8%—

Multilingual Not comparable

Llama 3.1-8B: 34.0 (#249), Qwen2.5 7B Instruct: —

Multilingual benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
LMArena Non-English1148—
LMArena Chinese1151—
LMArena French1177—
LMArena German1144—
LMArena Japanese1061—
LMArena Korean1053—
LMArena Russian1158—
LMArena Spanish1169—

Instruction Following Qwen2.5 7B Instruct leads

Llama 3.1-8B: 58.9 (#258), Qwen2.5 7B Instruct: 63.2 (#231)

Instruction Following benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
IFEval74.3%74.1%
LMArena Instruction Following1159—

Long Context Not comparable

Llama 3.1-8B: 35.8 (#238), Qwen2.5 7B Instruct: —

Long Context benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
LMArena Longer Query1182—

Writing & Preference Qwen2.5 7B Instruct leads

Llama 3.1-8B: 29.7 (#290), Qwen2.5 7B Instruct: 48.8 (#195)

Writing & Preference benchmarks
BenchmarkLlama 3.1-8BQwen2.5 7B Instruct
WildBench68.7%73.1%
LMArena Text1187—
LMArena Creative Writing1154—
EQ-Bench Creative Writing713—
LMArena Multi-Turn1172—

Frequently asked questions

Is Llama 3.1-8B better than Qwen2.5 7B Instruct?

Qwen2.5 7B Instruct is the stronger model overall, scoring 29.0 to 23.0 on the Noometry Index. Llama 3.1-8B costs 5.3× less per token, which makes it the better buy when Qwen2.5 7B Instruct's lead doesn't matter for your workload.

Which is cheaper, Llama 3.1-8B or Qwen2.5 7B Instruct?

Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; Qwen2.5 7B Instruct lists at $0.17 and $0.70.

Is Llama 3.1-8B or Qwen2.5 7B Instruct better for coding?

Qwen2.5 7B Instruct scores higher on coding benchmarks: 36.5 versus 20.2 in the Noometry coding category.

Which has the bigger context window?

Qwen2.5 7B Instruct does, with 131K tokens against 128K.

How many benchmarks do Llama 3.1-8B and Qwen2.5 7B Instruct share?

15 benchmarks have published results for both models. Llama 3.1-8B has 43 scored results on Noometry and Qwen2.5 7B Instruct has 15.

Related comparisons

Go deeper