Model comparison

Llama 3.1-8B vs Sonar

Sonar is the stronger model overall, scoring 37.8 to 22.8 on the Noometry Index. Llama 3.1-8B costs 17× less per token, which makes it the better buy when Sonar's lead doesn't matter for your workload.

Last verified . 0 shared benchmarks.

Llama 3.1-8B Meta

22.8

Rank #347 Confirmed

Sonar Perplexity

37.8

Rank #184 Confirmed

Summary

  • The widest gap is in writing & preference, where Sonar leads 52.6 to 29.9.
  • Llama 3.1-8B is cheaper at $0.05 / $0.08 per million input/output tokens, against $1 / $1 for Sonar.
  • Llama 3.1-8B has downloadable open weights; the other is API-only.

Side by side

Llama 3.1-8B and Sonar specifications
Llama 3.1-8BSonar
ProviderMetaPerplexity
Noometry Index22.837.8
Released2024-07-232024-01-01
WeightsOpenProprietary
Context window128K128K
Max output4K4K
Input $ / M tokens$0.05$1
Output $ / M tokens$0.08$1
Results tracked437

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

Category by category

Coding Sonar leads

Llama 3.1-8B: 19.9 (#335), Sonar: 35.1 (#217)

Coding benchmarks
BenchmarkLlama 3.1-8BSonar
SciCode13.2%—
WeirdML1.7%—
BigCodeBench Instruct32.8%—
LiveBench Coding—35.1%
LMArena Coding1195—
BigCodeBench Complete40.5%—
HumanEval+62.8%—
MBPP+55.6%—

Agentic & Tool Use Not comparable

Llama 3.1-8B: 22.3 (#123), Sonar: —

Agentic & Tool Use benchmarks
BenchmarkLlama 3.1-8BSonar
Berkeley Function Calling Leaderboard25.8%—
BALROG15.1%—

Reasoning Sonar leads

Llama 3.1-8B: 14.5 (#316), Sonar: 20.3 (#221)

Reasoning benchmarks
BenchmarkLlama 3.1-8BSonar
CritPt0%—
Chess Puzzles0%—
LiveBench Reasoning—46.3%
LMArena Hard Prompts1175—
DTBench50.9%—
LiveBench Data Analysis—37.9%
LMCA5.4%—
Epoch Capabilities Index116.48—
LiveBench—46.9%
PIQA81.2%—

Math Sonar leads

Llama 3.1-8B: 9.5 (#311), Sonar: 31.3 (#197)

Math benchmarks
BenchmarkLlama 3.1-8BSonar
OTIS Mock AIME 2024-20251.7%—
Omni-MATH13.7%—
LiveBench Math—41.6%
LMArena Math1179—
MATH Level 522.9%—
GSM8K82.4%—

Knowledge Not comparable

Llama 3.1-8B: 8.0 (#302), Sonar: —

Knowledge benchmarks
BenchmarkLlama 3.1-8BSonar
GPQA Diamond27%—
MMLU-Pro40.6%—
GPQA (HELM)24.7%—
LMArena Expert1144—
BoolQ82.8%—
MMLU56.1%—

Multilingual Not comparable

Llama 3.1-8B: 34.2 (#244), Sonar: —

Multilingual benchmarks
BenchmarkLlama 3.1-8BSonar
LMArena Non-English1148—
LMArena Chinese1151—
LMArena French1176—
LMArena German1144—
LMArena Japanese1061—
LMArena Korean1053—
LMArena Russian1158—
LMArena Spanish1169—

Instruction Following Sonar leads

Llama 3.1-8B: 59.1 (#253), Sonar: 71.5 (#146)

Instruction Following benchmarks
BenchmarkLlama 3.1-8BSonar
LiveBench Instruction Following—76.2%
IFEval74.3%—
LMArena Instruction Following1159—

Long Context Not comparable

Llama 3.1-8B: 35.8 (#233), Sonar: —

Long Context benchmarks
BenchmarkLlama 3.1-8BSonar
LMArena Longer Query1182—

Writing & Preference Sonar leads

Llama 3.1-8B: 29.9 (#285), Sonar: 52.6 (#166)

Writing & Preference benchmarks
BenchmarkLlama 3.1-8BSonar
LMArena Text1187—
LMArena Creative Writing1154—
EQ-Bench Creative Writing713—
WildBench68.7%—
LMArena Multi-Turn1172—
LiveBench Language—44.1%

Frequently asked questions

Is Llama 3.1-8B better than Sonar?

Sonar is the stronger model overall, scoring 37.8 to 22.8 on the Noometry Index. Llama 3.1-8B costs 17× less per token, which makes it the better buy when Sonar's lead doesn't matter for your workload.

Which is cheaper, Llama 3.1-8B or Sonar?

Llama 3.1-8B is cheaper. It lists at $0.05 per million input tokens and $0.08 per million output tokens; Sonar lists at $1 and $1.

Is Llama 3.1-8B or Sonar better for coding?

Sonar scores higher on coding benchmarks: 35.1 versus 19.9 in the Noometry coding category.

Which has the bigger context window?

Both accept 128K tokens.

How many benchmarks do Llama 3.1-8B and Sonar share?

0 benchmarks have published results for both models. Llama 3.1-8B has 43 scored results on Noometry and Sonar has 7.

Related comparisons

Go deeper