Alibaba · Dense · GQA
Qwen3-32B: VRAM by quantization and context
32.8B parameters, 64 layers, 8 KV heads. Here is what that means in gigabytes.
Architecture
| Parameters | 32.8B | Vendor model card |
|---|---|---|
| Layers | 64 | config.json |
| Hidden size | 5120 | config.json |
| Attention heads | 64 | config.json |
| KV heads | 8 | config.json (GQA) |
| Head dim | 128 | config.json |
| Max context | 40960 tokens | config.json |
Source: Qwen/Qwen3-32B config.json
VRAM by quantization
Total includes 8K of KV cache and 1.5 GB runtime overhead.
| Quantization | Weights | KV @ 8K | Total needed | Runs on |
|---|---|---|---|---|
| FP16 / BF16 2.0 B/param | 65.6 GB | 2.1 GB | 69.2 GB | Mac Studio M4 Max 128GB |
| INT8 / Q8_0 1.06 B/param | 34.8 GB | 2.1 GB | 38.4 GB | Mac Studio M4 Max 128GB |
| Q4_K_M (4-bit) 0.6 B/param | 19.7 GB | 2.1 GB | 23.3 GB | Mac Studio M4 Max 128GB |
| Q5_K_M (5-bit) 0.72 B/param | 23.6 GB | 2.1 GB | 27.3 GB | Mac Studio M4 Max 128GB |
KV cache by context length
Q4_K_M weights plus 1.5 GB overhead. KV cache at FP16.
| Context | KV cache | Total needed | Runs on |
|---|---|---|---|
| 4k | 1.1 GB | 22.3 GB | Mac Studio M4 Max 128GB |
| 8k | 2.1 GB | 23.3 GB | Mac Studio M4 Max 128GB |
| 16k | 4.3 GB | 25.5 GB | Mac Studio M4 Max 128GB |
| 32k | 8.6 GB | 29.8 GB | Mac Studio M4 Max 128GB |
| 64k | 17.2 GB | 38.4 GB | Mac Studio M4 Max 128GB |
| 128k | 34.4 GB | 55.5 GB | Mac Studio M4 Max 128GB |
Verdict
At Q4_K_M the weights alone are about 19.7 GB. With 8K of context and 1.5 GB of runtime overhead it lands near 23.3 GB. It fits: RTX 4090, RTX 3090, RTX 5090, Mac Studio M4 Max 128GB.
Back to calculator → · Open the TCO calculator → · Why 70B won't fit in 24 GB →
All throughput figures are estimates derived from memory bandwidth and published measurements. VRAM figures are computed from model architecture and quantization assumptions. Verify against your own runtime before buying hardware.