DeepSeek-Coder-V2 236B (MoE) VRAM Requirements, Quantization Sizing & GPU Benchmarks
Interactive memory calculator and hardware sizing guide for DeepSeek's DeepSeek-Coder-V2 236B (MoE) (Mixture-of-Experts (MoE) architecture with 236.0B total parameters and only 21.0B active parameters per token, up to 128K context, MIT license).
Interactive DeepSeek-Coder-V2 236B (MoE) Memory & Throughput Calculator
Total VRAM Needed143.72 GB
Model Weights133.25 GB
KV Cache Memory1.88 GB
CUDA / Activation Buffer8.59 GB
Quick Deploy: ollama run deepseek-coder-v2:236b
DeepSeek-Coder-V2 236B (MoE) Quantization Breakdown (at 8K Context)
| Format | Bits/Weight | Weights | 8K KV Cache | Total VRAM | Minimum Recommended GPU |
|---|---|---|---|---|---|
| FP16 / BF16 (Unquantized) | 16.00 bpw | 439.58 GB | 1.88 GB | 468.43 GB | Multi-Node H100/H200 Cluster (4x–8x 80GB) |
| FP8 / Q8_0 (8-bit) | 8.50 bpw | 233.53 GB | 1.88 GB | 250.02 GB | Multi-Node H100/H200 Cluster (4x–8x 80GB) |
| Q6_K / EXL2 6bpw | 6.56 bpw | 180.23 GB | 1.88 GB | 193.52 GB | Multi-Node H100/H200 Cluster (4x–8x 80GB) |
| Q5_K_M (5-bit) | 5.69 bpw | 156.33 GB | 1.88 GB | 168.18 GB | Multi-Node H100/H200 Cluster (4x–8x 80GB) |
| Q4_K_M / AWQ / GPTQ-4bit | 4.85 bpw | 133.25 GB | 1.88 GB | 143.72 GB | 2x 80GB H100 / MI300X 192GB |
| IQ3_XS (3.3-bit imatrix) | 3.30 bpw | 90.66 GB | 1.88 GB | 98.58 GB | 2x 80GB H100 / MI300X 192GB |
| IQ2_XXS (2.1-bit extreme) | 2.15 bpw | 59.07 GB | 1.88 GB | 65.09 GB | 80GB (A100 / H100) or Mac 128GB |
GPU Compatibility & Estimated Generation Speed (Tokens/sec)
| GPU Accelerator | VRAM | Bandwidth | Compatibility | Est. Speed | Ref. Cost |
|---|---|---|---|---|---|
| NVIDIA RTX 5090 (32GB GDDR7) | 32 GB | 1792 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.89/hr |
| NVIDIA RTX 4090 (24GB GDDR6X) | 24 GB | 1008 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.44/hr |
| NVIDIA RTX 3090 / 3090 Ti (24GB) | 24 GB | 936 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.22/hr |
| NVIDIA RTX 4080 Super (16GB) | 16 GB | 736 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.30/hr |
| NVIDIA RTX 4060 Ti (16GB) | 16 GB | 288 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.18/hr |
| Dual RTX 3090 (48GB Combined) | 48 GB | 936 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.45/hr |
| Dual RTX 4090 (48GB Combined) | 48 GB | 1008 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.88/hr |
| NVIDIA RTX 6000 Ada (48GB ECC) | 48 GB | 960 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.99/hr |
| NVIDIA L40S (48GB GDDR6) | 48 GB | 864 GB/s | Insufficient VRAM | Offload / Multi-GPU | $0.86/hr |
| NVIDIA A100 SXM4/PCIe (80GB HBM2e) | 80 GB | 2039 GB/s | Needs 2x GPUs (4-bit TP=2) | ~204.3 tok/s | $1.39/hr |
| NVIDIA H100 SXM5 (80GB HBM3) | 80 GB | 3350 GB/s | Needs 2x GPUs (4-bit TP=2) | ~335.7 tok/s | $2.49/hr |
| NVIDIA H200 SXM (141GB HBM3e) | 141 GB | 4800 GB/s | Needs 2x GPUs (4-bit TP=2) | ~480.9 tok/s | $3.69/hr |
| AMD Instinct MI300X (192GB HBM3) | 192 GB | 5300 GB/s | Fits 4-bit (Q4_K_M / AWQ) | ~321.8 tok/s | $2.19/hr |
| Apple Mac Studio M4 Max (128GB Unified) | 128 GB | 546 GB/s | Insufficient VRAM | Offload / Multi-GPU | $3499 local |
| Apple Mac Studio M2 Ultra (192GB Unified) | 192 GB | 800 GB/s | Fits 4-bit (Q4_K_M / AWQ) | ~48.6 tok/s | $5599 local |
Engineering Notes & Frequently Asked Questions
How much VRAM do I need to run DeepSeek-Coder-V2 236B (MoE) locally?
In 4-bit quantization (Q4_K_M, AWQ, or GPTQ) with an 8K token context window, DeepSeek-Coder-V2 236B (MoE) requires approximately 143.72 GB of total GPU VRAM (133.25 GB for model weights, 1.88 GB for FP16 KV cache, plus 8.59 GB CUDA/runtime buffer). Unquantized BF16/FP16 inference requires 468.43 GB VRAM.
Can DeepSeek-Coder-V2 236B (MoE) run on a single NVIDIA RTX 4090 or RTX 3090 (24GB)?
A single 24GB GPU cannot hold all weights in VRAM (143.72 GB needed at 4-bit). Use Dual RTX 3090/4090 (48GB), an RTX 6000 Ada / L40S, Mac Studio Unified Memory, or cloud A100/H100.
What is the exact KV cache memory growth for DeepSeek-Coder-V2 236B (MoE) at long context?
With 60 layers, 8 KV heads, and head dimension 128, DeepSeek-Coder-V2 236B (MoE) consumes 234.4 MB of FP16 KV cache per 1,000 context tokens (or half that when enabling FP8 KV cache in vLLM / Ollama).