How to Deploy DeepSeek V4 Flash Locally
DeepSeek V4 Flash is a MoE model with 284B total parameters and 13B active per token. At Q4 it needs 160GB of VRAM to sit entirely on the GPU; with experts offloaded to system RAM it needs only 7GB of VRAM plus 155GB of RAM. The cheapest device that holds it is the Mac Studio M3 Ultra 512GB, with no price data yet, at roughly 47.2 tokens/s. In offload mode the cheapest card that runs it is the Tesla V100 16GB, at roughly 12 tokens/s.
DeepSeek V4 Flash details
How much VRAM does DeepSeek V4 Flash need for local deployment?
MoE: all 284B parameters must stay resident in memory, while speed is set by the 13B active per token.
| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| 1-bit | 86.9GGUF | 68.3 | 70.3 | 78.4 |
| 2-bit | 96.8GGUF | 107.2 | 109.2 | 117.3 |
| 3-bit | 128.2GGUF | 137.8 | 139.8 | 147.8 |
| 4-bit | 155.1GGUF | 160 | 162 | 170.1 |
| 5-bit | 191.6est. | 193.3 | 195.3 | 203.4 |
| 8-bit | 161.9GGUF | 296.1 | 298.1 | 306.1 |
| FP16 | 555.4est. | 557.1 | 559.1 | 567.2 |
Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 1M limit show a dash. Each tier takes whichever file of that bit width the repository has, preferring unsloth dynamic quants, so the exact file name varies by model.
Which GPUs can run DeepSeek V4 Flash?
AmazonJP
| Device | VRAMGB | Price | Est. t/s | Suggested context |
|---|---|---|---|---|
| Mac Studio M3 Ultra 512GB | 512 | —No listings | 47.2 | 128K |
Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.
Recommended GPUs for DeepSeek V4 Flash with CPU/GPU offloading
AmazonJP
Expert weights live in system RAM (needs at least 155 GB); VRAM holds only attention layers, shared experts and the KV cache, at least 7 GB at Q4. Speed is bound by RAM bandwidth (estimated at 70 GB/s) and is far slower than a full-VRAM setup.
Deploy DeepSeek V4 Flash locally with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/DeepSeek-V4-Flash-0731-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve deepseek-ai/DeepSeek-V4-Flash-0731
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does DeepSeek V4 Flash need?
At Q4_K_M with an 8K context DeepSeek V4 Flash needs about 160GB of VRAM; 192GB leaves comfortable headroom.
What is the cheapest GPU that runs DeepSeek V4 Flash?
The Mac Studio M3 Ultra 512GB: 512GB of VRAM at roughly 47.2 tokens/s. We have no price data for it yet.
Can you run DeepSeek V4 Flash with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.