Skip to content
Updated minutes ago
Alibaba

Qwen 3 8B

Alibaba · dense · 8.2B parameters · 131,072 context

Quality
70.0

Parameters

8.2B

Context Window

128K tokens

Architecture

Dense

Best GPU

A30

Cheapest API

$0.20/M

Quality Score

70/100

Intelligence Brief

Qwen 3 8B is a 8.2B parameter DENSE model from Alibaba, featuring Grouped Query Attention (GQA) with 36 layers and 4,096 hidden dimensions. With a 131,072 token context window, it supports tools, structured output, code, math, multilingual, reasoning. On standardized benchmarks, it achieves MMLU 72, HumanEval 60, GSM8K 74. The most cost-effective API deployment is via together at $0.20/M output tokens. For self-hosted inference, A30 delivers optimal throughput at $332/month.

Architecture Details

TypeDENSE
Total Parameters8.2B
Active Parameters8.2B
Layers36
Hidden Dimension4,096
Attention Heads32
KV Heads8
Head Dimension128
Vocab Size151,936

Memory Requirements

BF16 Weights

16.4 GB

FP8 Weights

8.2 GB

INT4 Weights

4.1 GB

KV-Cache per Token147456 bytes
Activation Estimate1.00 GB

GPU Compatibility Matrix

Qwen 3 8B is compatible with 90% of GPU configurations across 41 GPUs at 3 precision levels.

BF16 (Full)
FP8 (Half)
INT4 (Quarter)
Blackwell(7 GPUs)
B200 NVL (pair)360GB
B300288GB
B100 SXM192GB
GB200 NVL72 (per GPU)192GB
Hopper(7 GPUs)
H100 NVL 94GB (per GPU pair)188GB
H200 SXM141GB
H2096GB
GH20096GB
Ada Lovelace(11 GPUs)
L40S48GB
L4048GB
RTX 6000 Ada48GB
L2048GB
Ampere(16 GPUs)
A100 80GB SXM80GB
A100 80GB PCIe80GB
A1664GB
RTX A600048GB
Legend:No fitVery tightTightModerateGoodExcellent

GPU Recommendations

A30optimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

307.2 tok/s

Latency (ITL)

3.3ms

Est. TTFT

1ms

Cost/Month

$332

Cost/M Tokens

$0.41

Use this config →
RTX 4090optimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

331.9 tok/s

Latency (ITL)

3.0ms

Est. TTFT

1ms

Cost/Month

$370

Cost/M Tokens

$0.42

Use this config →
RTX 3090optimal

BF16 · 1 GPU · vllm

100/100

score

Throughput

308.2 tok/s

Latency (ITL)

3.2ms

Est. TTFT

1ms

Cost/Month

$180

Cost/M Tokens

$0.22

Use this config →

Deployment Options

API

API Deployment

together

$0.20/M

output tokens

Self-Hosted

Single GPU

A30

$332/mo

Min VRAM: 8 GB

Scale

Multi-GPU

RTX 3060 x2

186.2 tok/s

TP· $114/mo

API Pricing Comparison

ProviderInput $/MOutput $/MBadges
together$0.20$0.20
Cheapest
fireworks$0.20$0.20

Cost Analysis

ProviderInput $/MOutput $/M~Monthly Cost
togetherBest Value$0.20$0.20$2
fireworks$0.20$0.20$2

Cost per 1,000 Requests

Short (500 tok)

$0.14

via together

Medium (2K tok)

$0.56

via together

Long (8K tok)

$2.00

via together

Performance Estimates

Throughput by GPU

A30
307.2 tok/s
RTX 4090
331.9 tok/s
RTX 3090
308.2 tok/s

VRAM Breakdown (A30, BF16)

Weights
Act
Weights 16.4 GBKV-Cache 2.4 GBActivations 8.0 GBOverhead 1.3 GB

Precision Impact

bf16

16.4 GB

weights/GPU

~307.2 tok/s

fp8

8.2 GB

weights/GPU

int4

4.1 GB

weights/GPU

Quality Benchmarks

Average
73th percentile across all models
MMLU
72.0
Below Average (36th pctile)
HumanEval
60.0
Average (70th pctile)
GSM8K
74.0
Below Average (35th pctile)

Capabilities

Features

Tool Use Vision Code Math Reasoning Multilingual Structured Output

Supported Frameworks

vllmsglangtgitensorrt-llmollama

Supported Precisions

BF16 (default)FP8INT4

Where to Deploy Qwen 3 8B

Similar Models

Qwen 3 4B

4B params · dense

Quality: 57

from $0.10/M

Lower quality, Cheaper, Smaller modelCompare →
Similar specsCompare →

Llama 3.1 8B

8.03B params · dense

Quality: 58

from $0.08/M

Lower quality, CheaperCompare →

Hermes 3 8B

8.03B params · dense

Quality: 50

from $0.18/M

Lower qualityCompare →

Aya 23 8B

8B params · dense

Quality: 50

from $0.60/M

Smaller context, Lower quality, More expensiveCompare →

Frequently Asked Questions

How much VRAM does Qwen 3 8B need for inference?

Qwen 3 8B requires approximately 16.4 GB of VRAM at BF16 precision, 8.2 GB at FP8, or 4.1 GB at INT4 quantization. Additional VRAM is needed for KV-cache (147456 bytes per token) and activations (~1.00 GB).

What is the best GPU for Qwen 3 8B?

The top recommended GPU for Qwen 3 8B is the A30 using BF16 precision. It achieves approximately 307.2 tokens/sec at an estimated cost of $332/month ($0.41/M tokens). Score: 100/100.

How much does Qwen 3 8B inference cost?

Qwen 3 8B API inference starts from $0.20/M input tokens and $0.20/M output tokens. Self-hosted inference costs depend on your GPU configuration — use our ROI calculator for a detailed breakdown.