TextDense4B params41K max context

Qwen 3 4B VRAM Requirements: How Many GPUs & What It Costs

Qwen 3 4B needs 8.0 GB of VRAM for its weights at FP16 — 8.6 GB once a KV cache is loaded. Below is the full breakdown: which GPUs fit, how many you need, what it serves, and what it costs per million tokens. Every figure comes from tokcalc's open-source capacity model.

Weights (FP16)
8.0 GB
8.6 GB with KV cache
Fits on 1 GPU?
Yes
A10G 24GB or larger
Cheapest config
$0.0441
2× RTX 3080 10GB / 1M tokens
Fastest config
19500
tok/s on 1× Cerebras CS-3 (WSE-3)
VRAM requirement by quantization
Weight footprint = params × bytes per param. The “with KV cache” column adds one request at 4K context.
QuantizationWeightsWith KV cacheSmallest single GPU
FP16recommended8.0 GB8.6 GBRTX 3080 10GB (10 GB)
FP8 (E4M3)4.0 GB4.6 GBRTX 3080 10GB (10 GB)
AWQ 4-bit2.2 GB2.8 GBRTX 3080 10GB (10 GB)
Which GPU should you use?
Reference workload: 8K context, 8 concurrent users, continuous batching, FP16. Ranked by fitting first, then by tokens per dollar-hour.
GPUGPUsTotal VRAMDecode tok/sAggregate tok/sCost / 1M tokens
RTX 3080 10GB2×20 GB105.02519$0.0441
RTX 4080 16GB2×32 GB99.042377$0.0701
RTX 3090 24GB1×24 GB76.05912.6$0.0761
RTX 5090 32GB1×32 GB145.61747$0.0795
T4 16GB2×32 GB44.201061$0.1047
RTX A4000 16GB2×32 GB61.881485$0.1122
RTX 4090 24GB1×24 GB81.90982.8$0.1131
AMD MI300X 192GB1×192 GB430.65168$0.1344
V100 SXM2 32GB1×32 GB73.13877.5$0.1583
A100 40GB SXM41×40 GB125.91511$0.1654
AMD MI325X 288GB1×288 GB487.55850$0.1662
A100 80GB SXM41×80 GB162.51950$0.1709

RTX 3080 10GB has no NVLink, so 2-way tensor parallelism runs over PCIe. tokcalc applies a flat 0.85× multi-GPU efficiency factor for this, which is realistic for NVLink-equipped datacenter cards but optimistic for PCIe scale-out — treat the throughput and cost figures for this configuration as an upper bound, and measure before committing.

How concurrency changes with context length
On 2× RTX 3080 10GB at FP16. KV cache scales linearly with context, so long contexts cut the number of users you can serve from the same GPUs.
ContextConcurrent usersKV per requestFits?
4K19618.5 MB✓ fits
8K91.21 GB✓ fits
33K24.83 GB✓ fits
66K19.66 GB✓ fits
131K019.33 GB✗ does not fit
Frequently asked questions

Can Qwen 3 4B run on a single GPU?

Yes. At FP16 the model needs 8.6 GB of VRAM, so it fits on a single A10G 24GB or anything with more VRAM. At full FP16 it needs 8.6 GB, which fits on one RTX 3080 10GB or larger.

How many GPUs does Qwen 3 4B need?

At FP16 with 8,192-token context and 8 concurrent users, the cheapest configuration that fits is 2× RTX 3080 10GB (20 GB total VRAM). $0.0441 per 1M output tokens.

How fast can Qwen 3 4B be served?

On 1× Cerebras CS-3 (WSE-3) at FP16, the aggregate throughput is 19500 tokens/sec with continuous batching. That hardware has no published rental price, so its cost per million tokens is not comparable.

How much VRAM does Qwen 3 4B need?

Weights alone: 8.0 GB at FP16, 8.0 GB at FP16. Add KV cache for your context length and concurrency — every concurrent request at 8,192 tokens costs extra VRAM, so budget headroom above the weight figure.

Is it cheaper to self-host Qwen 3 4B than to call an API?

At 2× RTX 3080 10GB the marginal cost is $0.0441 per 1M output tokens, before you add idle capacity, ops staff, or egress. That is typically cheaper than frontier API pricing at sustained volume, but API calls win when your load is bursty or too small to keep a GPU busy. The Build vs Buy tab on tokcalc prices this against a specific provider for you.

Try Qwen 3 4B with your own context and concurrency

The calculator uses the exact same formulas as this page — change the workload and watch every number update.

Open in calculator
Model architecture
The numbers behind the KV-cache and throughput math.
Total parameters4.00B
Active parameters per token4.00B
ArchitectureDense
Attention layoutFull attention (GQA)
Transformer layers36
Hidden dimension2560
Attention heads32 query / 8 KV (GQA)
Head dimension128
Vocabulary size151,936
Max context (catalog)41K
KV cache per token @ 8K144.0 KB

Every layer caches keys and values for the whole context, so the KV cache grows linearly with conversation length.