DeepSeek-R1-Distill-Qwen-32B — VRAM Requirements, Quantization Matrix & GPU Guide
DeepSeek-R1-Distill-Qwen-32B (DeepSeek, MIT) is a Dense Transformer architecture with 32.8B resident parameters (32.8B active per token), 64 layers, and Grouped-Query Attention (GQA) supporting up to 131,072 context tokens.
Interactive DeepSeek-R1-Distill-Qwen-32B Memory & Context Simulator
Precision & Quantization VRAM Matrix (8K / 32K / 128K Context)
| Precision / Format | Effective bpw | Weights Only | Total @ 8K ctx | Total @ 32K ctx | Total @ 128K ctx | Recommended Tier (@ 32K) |
|---|---|---|---|---|---|---|
| FP16 / BF16 | 16.00 bpw | 61.09 GB | 66.13 GB | 72.13 GB | 96.13 GB | NVIDIA A100 80GB |
| FP8 | 8.50 bpw | 32.46 GB | 36.63 GB | 42.63 GB | 66.63 GB | NVIDIA L40S 48GB |
| Q8_0 | 8.50 bpw | 32.46 GB | 36.63 GB | 42.63 GB | 66.63 GB | NVIDIA L40S 48GB |
| Q6_K | 6.56 bpw | 25.05 GB | 29.00 GB | 35.00 GB | 59.00 GB | Apple M4 Pro 48GB |
| Q5_K_M | 5.69 bpw | 21.73 GB | 25.58 GB | 31.58 GB | 55.58 GB | Apple M4 Pro 48GB |
| Q4_K_M | 4.85 bpw | 18.52 GB | 22.28 GB | 28.28 GB | 52.28 GB | RTX 5090 32GB |
| AWQ INT4 | 4.50 bpw | 17.18 GB | 20.90 GB | 26.90 GB | 50.90 GB | RTX 5090 32GB |
| IQ4_XS | 4.25 bpw | 16.23 GB | 19.92 GB | 25.92 GB | 49.92 GB | RTX 5090 32GB |
Hardware Compatibility & Decode Speed (DeepSeek-R1-Distill-Qwen-32B @ Q4_K_M, 32K Context)
| Hardware Tier | Memory & Bandwidth | Required (32K) | Fit Verdict | Est. Decode Speed |
|---|---|---|---|---|
| RTX 3090 24GB | 24 GB · 936 GB/s | 28.28 GB (118%) | Out of Memory (OOM) | — |
| RTX 4090 24GB | 24 GB · 1008 GB/s | 28.28 GB (118%) | Out of Memory (OOM) | — |
| RTX 5090 32GB | 32 GB · 1792 GB/s | 28.28 GB (88%) | Tight Fit (>90% Usable) | 39.4 tok/s |
| Apple M-Max 64GB | 64 GB · 546 GB/s | 27.66 GB (43%) | Fits Comfortably | 11.3 tok/s |
| Mac Studio 128GB | 128 GB · 546 GB/s | 27.66 GB (22%) | Fits Comfortably | 11.3 tok/s |
| Mac Studio 192GB | 192 GB · 800 GB/s | 27.66 GB (14%) | Fits Comfortably | 16.5 tok/s |
| NVIDIA A100 80GB | 80 GB · 2039 GB/s | 28.28 GB (35%) | Fits Comfortably | 47.4 tok/s |
| NVIDIA H100 80GB | 80 GB · 3350 GB/s | 28.28 GB (35%) | Fits Comfortably | 77.9 tok/s |
Verified Transformer Architecture Parameters
- Checkpoint ID
- deepseek-ai/DeepSeek-R1-Distill-Qwen-32B
- Ollama Tag
- deepseek-r1:32b
- License / Release
- MIT · 2025-Q1
- Topology & Attention
- Dense Transformer
- Attention Mechanism
- Grouped-Query Attention (GQA)
- Total Params (B)
- 32.8B
- Active Params / Token (B)
- 32.8B
- Hidden Layers / Hidden Size
- 64 / 5120
- Query Heads / KV Heads
- 40Q / 8KV (d=128)
- Vocab / Max Position
- 152,064 / 131,072
Quantized formats store per-block scale factors and zero-points alongside packed integer weights. A 4-bit GGUF Q4_K_M checkpoint averages 4.85 effective bits per parameter (not 4.00), while Q8_0 averages 8.50 bpw. For Mixture-of-Experts models, all routed and shared experts remain resident in memory to prevent token-by-token host paging.
Standard Grouped-Query Attention allocates 2 × L × H_kv × d_head × S × B × bytes_kv across layers. DeepSeek Multi-head Latent Attention (MLA) compresses keys and values into L × (d_kv_lora + d_qk_rope) × S × B × bytes_kv, slashing long-context memory by over 90%. Hybrid sliding-window models cap local-attention layers at min(S, window_size) while scaling global layers linearly with S.
Quick-Start vLLM & Ollama Commands for DeepSeek-R1-Distill-Qwen-32B
vllm serve deepseek-ai/DeepSeek-R1-Distill-Qwen-32B \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--max-num-seqs 8 \
--gpu-memory-utilization 0.95 \
--kv-cache-dtype fp8 \
--enable-prefix-caching \
--port 8000
# Save as Modelfile, then run: ollama create deepseek-r1-distill-qwen-32b-custom -f Modelfile
FROM deepseek-r1:32b
PARAMETER num_ctx 32768
PARAMETER num_batch 512
PARAMETER flash_attn true
# Environment variables for ollama serve:
# OLLAMA_NUM_PARALLEL=8 OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama serve
Compare Sibling & Similar-Scale Open-Weight Models
DeepSeek-R1-Distill-Llama-70B
DeepSeek · 70.6B (GQA)
DeepSeek-R1 (671B MoE)
DeepSeek · 671B (MLA)
DeepSeek-V3-0324 (671B MoE)
DeepSeek · 671B (MLA)
Qwen3-32B
Qwen · 32.8B (GQA)
QwQ-32B (Reasoning)
Qwen · 32.8B (GQA)
Qwen2.5-Coder-32B-Instruct
Qwen · 32.8B (GQA)