Skip to content
llmmodels

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

Qwen/Qwen2.5-7B-Instruct wins 3 of 3 benchmarks both models report. Llama-3.1-8B-Instruct is about 2.0× cheaper on a blended (3:1 input:output) token price. Llama-3.1-8B-Instruct has the larger context window (128K vs 33K).

SpecLlama-3.1-8B-InstructQwen/Qwen2.5-7B-Instruct
ProviderMetaAlibaba (Qwen)
ReleasedJul 23, 2024Sep 19, 2024 (better)
TypeChat LLMChat LLM
Parameters8B7.6B
Context window128K (better)33K
Max output16K (better)4K
Input price / 1M$0.02 (better)$0.05
Output price / 1M$0.04 (better)$0.05
Input modalitiestexttext
Open weightsYesYes
Licensellama3.1apache-2.0
Reasoning modeNoNo
Tool callingYesYes
API providers19 (better)5
Epoch Capabilities Index110.9—
GPQA Diamond27.0%35.5% (better)
OTIS Mock AIME1.7%2.5% (better)
MATH Level 522.9%—
MMLU56.1%72.9% (better)
GSM8K82.4%—

Cost example

For a workload of 10M input + 2M output tokens per month: Llama-3.1-8B-Instruct costs $0.28 and Qwen/Qwen2.5-7B-Instruct costs $0.60 at list price (openrouter / siliconflow pricing).

About Llama-3.1-8B-Instruct

Llama-3.1-8B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 8B parameters and a 128K-token context window. API pricing starts at $0.02 per million input tokens and $0.04 per million output tokens. It is available from 19 API providers. It scores 110.9 on the Epoch Capabilities Index. Full Llama-3.1-8B-Instruct specs →

About Qwen/Qwen2.5-7B-Instruct

Qwen/Qwen2.5-7B-Instruct is an open-weight chat llm from Alibaba (Qwen), released Sep 19, 2024. It has 7.6B parameters and a 33K-token context window. API pricing starts at $0.05 per million input tokens and $0.05 per million output tokens. It is available from 5 API providers. Full Qwen/Qwen2.5-7B-Instruct specs →

Compare other models

FAQ

Which is better, Llama-3.1-8B-Instruct or Qwen/Qwen2.5-7B-Instruct?

Qwen/Qwen2.5-7B-Instruct wins 3 of 3 benchmarks both models report. Llama-3.1-8B-Instruct is about 2.0× cheaper on a blended (3:1 input:output) token price. Llama-3.1-8B-Instruct has the larger context window (128K vs 33K).

Is Llama-3.1-8B-Instruct cheaper than Qwen/Qwen2.5-7B-Instruct?

Llama-3.1-8B-Instruct costs $0.02 input / $0.04 output per 1M tokens; Qwen/Qwen2.5-7B-Instruct costs $0.05 / $0.05. Llama-3.1-8B-Instruct is cheaper overall.

Which has a bigger context window?

Llama-3.1-8B-Instruct: 131,072 tokens. Qwen/Qwen2.5-7B-Instruct: 33,000 tokens.

Are Llama-3.1-8B-Instruct and Qwen/Qwen2.5-7B-Instruct open source?

Llama-3.1-8B-Instruct is open-weight; Qwen/Qwen2.5-7B-Instruct is open-weight.