Qwen3 32B: how much VRAM does it need?

Qwen3 32B has 32.76B parameters in 64 layers. It uses grouped-query attention: 64 query heads share 8 key-value heads, so its KV cache is 8× smaller than full multi-head attention would need. It takes up to 40,960 tokens of context; one user at that length needs 10.00 GiB of KV cache at FP16 on top of the weights.

BF16 · 8k context · one user
65.64 GiB

61.02 GiB of weights, 2.00 GiB of KV cache and 2.62 GiB of vLLM's overhead. At INT4 the same workload needs 22.96 GiB.

  • 64 layers
  • hidden 5120
  • 64/8 heads
  • head_dim 128
  • 40k max context

Qwen3 32B memory by precision and context

Precision8k context32k context40k context
BF1665.64 GiBKV cache 2.00 GiB71.64 GiBKV cache 8.00 GiB73.64 GiBKV cache 10.00 GiB
FP836.58 GiBKV cache 2.00 GiB42.58 GiBKV cache 8.00 GiB44.58 GiBKV cache 10.00 GiB
INT422.96 GiBKV cache 2.00 GiB28.96 GiBKV cache 8.00 GiB30.96 GiBKV cache 10.00 GiB

One user, FP16 KV cache and vLLM's overhead on one GPU at its defaults for a card under 70 GB. Quantizing shrinks the weights, not the KV cache, so the saving narrows as the context grows.

Which single GPUs hold it

At 8k context for one user, the smallest cards first. A discrete card is budgeted at vLLM's default 92% of its memory, a unified-memory device at the share its GPU can address, and each carries vLLM's overhead at its own defaults.

How many users fit

GPUBF16FP8INT4
RTX 4090does not fitdoes not fitdoes not fit
RTX 5090does not fitdoes not fit3
RTX 6000 Adadoes not fit411
H100 SXM 80GB41825
RTX PRO 6000 Blackwell112632
AMD Ryzen AI Max+ 395 (128GB)122633
H200 141GB324653
B200 180GB486370

Users at 8k context each, on one card. ✗: the weights leave no room for even one.

Fine-tuning Qwen3 32B

MethodMemorySmallest GPU
Full fine-tune490.4 GiBseveral GPUs, sharded
LoRA (rank 16, attention)63.71 GiBRTX PRO 5000 Blackwell (72GB)
QLoRA (rank 16, attention)18.43 GiBNVIDIA L4

Sequence length 2,048, batch size 1, gradient checkpointing on, Adam. Full fine-tuning keeps 16 bytes per parameter before activations; QLoRA stores the frozen base in 4-bit NF4.

Where the numbers come from

Weights are parameters × bytes per parameter. The KV cache is 2 × layers × key-value heads × head dimension × bytes × context × users. For Qwen3 32B that is 256.0 KiB per token at FP16. These are capacity-planning figures: the serving engine — vLLM, TGI, llama.cpp — and its paged-attention efficiency still move the real number.

More on KV cache size and on GQA, MQA and MLA.

Work with Qwen3 32B

Other Qwen models