Updated minutes ago
Qwen 3 4B
Alibaba · dense · 4B parameters · 131,072 context
Quality57.0
Architecture Details
TypeDENSE
Total Parameters4B
Active Parameters4B
Layers36
Hidden Dimension2,560
Attention Heads32
KV Heads8
Head Dimension128
Vocab Size151,936
Memory Requirements
BF16 Weights
8.0 GB
FP8 Weights
4.0 GB
INT4 Weights
2.0 GB
KV-Cache per Token147456 bytes
Activation Estimate0.50 GB
Fits on (single-node)
B200 SXM BF16B100 SXM BF16GB200 NVL72 (per GPU) BF16GB300 NVL72 (per GPU) BF16H200 SXM BF16H100 SXM BF16H100 PCIe BF16H100 NVL BF16
GPU Recommendations
A4000optimal
BF16 · 1 GPU · vllm
100/100
score
Throughput
302.4 tok/s
Cost/Month
$161
Cost/M Tokens
$0.20
RTX 4080optimal
BF16 · 1 GPU · vllm
100/100
score
Throughput
483.9 tok/s
Cost/Month
$304
Cost/M Tokens
$0.24
RTX 4070 Tioptimal
BF16 · 1 GPU · vllm
100/100
score
Throughput
340.2 tok/s
Cost/Month
$237
Cost/M Tokens
$0.27
API Pricing Comparison
| Provider | Input $/M | Output $/M | Badges |
|---|---|---|---|
| together | $0.10 | $0.10 | Cheapest |
Quality Benchmarks
MMLU64.0
HumanEval35.0
GSM8K65.0
MT-Bench73.0
Capabilities
Features
✓ Tool Use✗ Vision✓ Code✓ Math✓ Reasoning✓ Multilingual✓ Structured Output
Supported Frameworks
vllmsglangtgitensorrt-llmollama
Supported Precisions
BF16 (default)FP8INT4