DeepSeek V4 Flash

290.9B total, 20.4B active · 1024k context · mit · released 2026-04-22

chatcodingagenticreasoning

In short

DeepSeek V4 Flash is an open model from DeepSeek with 290.9B parameters (20.4B active per token). At UD-Q4_K_XL, DeepSeek V4 Flash needs about 146 GB of memory at 8k context and 148 GB at 32k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the US that runs DeepSeek V4 Flash fully in memory at 32k context is the Mac Studio M4 Max 128GB, $5,400 at eBay, at about 22 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in the US today

Mac Studio M4 Max 128GB, used at eBay

Runs DeepSeek V4 Flash at UD-Q2_K_XL fully in memory at 32k context, about 22 tok/sest.

$4,750

In stock, checked

What to run it on in the US

Fully in memory at 32k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBUD-Q2_K_XLfits9 tok/s$3,5002.5
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBUD-Q2_K_XLfits9 tok/s$3,8002.3
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBUD-Q2_K_XLfits9 tok/s$3,9592.2
Mac Studio M4 Max 128GBUD-Q2_K_XLfits22 tok/s$5,4004.1
ASUS Ascent GX10 128GBUD-Q2_K_XLfits11 tok/s$6,1001.7
NVIDIA DGX Spark 128GBUD-Q2_K_XLfits11 tok/s$7,8001.3
Mac Studio M3 Ultra 256GBMXFP4fits23 tok/s$9,5002.4
NVIDIA RTX PRO 6000 BlackwellUD-Q2_K_XLfits69 tok/s$16,0004.3
Mac Studio M3 Ultra 512GBMXFP4fits23 tok/s$30,0000.8
Framework Desktop Ryzen AI Max+ 395 128GBUD-Q2_K_XLfits9 tok/s––
Lenovo ThinkStation PGX GB10 128GBUD-Q2_K_XLfits11 tok/s––
Dell Pro Max with GB10 128GBUD-Q2_K_XLfits11 tok/s––
NVIDIA RTX PRO 5000 Blackwell 72GBUD-Q2_K_XLoffload12 tok/s$8,4991.4

50 other cards and machines we price cannot hold it at this context.

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k@64k@128k
UD-Q4_K_XLgguf144.4 GB145.9 GB148.0 GB150.9 GB156.6 GB
UD-Q2_K_XLgguf90.2 GB91.6 GB93.8 GB96.6 GB102.4 GB
mlx-3bitmlx116.1 GB117.5 GB119.6 GB122.5 GB128.3 GB
UD-Q3_K_Mgguf119.3 GB120.7 GB122.9 GB125.7 GB131.5 GB
mlx-4bitmlx141.1 GB142.5 GB144.7 GB147.5 GB153.3 GB
MXFP4gguf145.3 GB146.7 GB148.9 GB151.7 GB157.5 GB
mlx-6bitmlx215.3 GB216.7 GB218.9 GB221.8 GB227.5 GB
mlx-8bitmlx281.5 GB282.9 GB285.1 GB288.0 GB293.7 GB

Run it

Copy a command for the runtime you use.

  • UD-Q4_K_XL
    • Ollamaollama run hf.co/unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q4_K_XL
    • LM Studiolms get unsloth/DeepSeek-V4-Flash-0731-GGUF@ud-q4_k_xl
    • llama.cppllama-server -hf unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q4_K_XL
  • UD-Q2_K_XL
    • Ollamaollama run hf.co/unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q2_K_XL
    • LM Studiolms get unsloth/DeepSeek-V4-Flash-0731-GGUF@ud-q2_k_xl
    • llama.cppllama-server -hf unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q2_K_XL
  • mlx-3bit
    • LM Studiolms get mlx-community/deepseek-ai-DeepSeek-V4-Flash-3bit
    • MLXmlx_lm.server --model mlx-community/deepseek-ai-DeepSeek-V4-Flash-3bit
  • UD-Q3_K_M
    • Ollamaollama run hf.co/unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q3_K_M
    • LM Studiolms get unsloth/DeepSeek-V4-Flash-0731-GGUF@ud-q3_k_m
    • llama.cppllama-server -hf unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q3_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/DeepSeek-V4-Flash-4bit
    • MLXmlx_lm.server --model mlx-community/DeepSeek-V4-Flash-4bit
  • MXFP4
    • Ollamaollama run hf.co/bartowski/DeepSeek-V4-Flash-GGUF:MXFP4
    • LM Studiolms get bartowski/DeepSeek-V4-Flash-GGUF@mxfp4
    • llama.cppllama-server -hf bartowski/DeepSeek-V4-Flash-GGUF:MXFP4
  • mlx-6bit
    • LM Studiolms get mlx-community/deepseek-ai-DeepSeek-V4-Flash-6bit
    • MLXmlx_lm.server --model mlx-community/deepseek-ai-DeepSeek-V4-Flash-6bit
  • mlx-8bit
    • LM Studiolms get mlx-community/deepseek-ai-DeepSeek-V4-Flash-8bit
    • MLXmlx_lm.server --model mlx-community/deepseek-ai-DeepSeek-V4-Flash-8bit

Notes

Estimates are approximate. Sparse or compressed attention: KV read per token is estimated as full attention. deepseek_v4 layout is new; verify against measured results.

Questions

How much VRAM does DeepSeek V4 Flash need?
At UD-Q4_K_XL, DeepSeek V4 Flash needs about 146 GB of memory at 8k context and 148 GB at 32k, counting the weights, the KV cache and runtime buffers.
What is the best GPU for running DeepSeek V4 Flash locally?
The cheapest hardware in the US that runs DeepSeek V4 Flash fully in memory at 32k context is the Mac Studio M4 Max 128GB, $5,400 at eBay, at about 22 tok/s (estimated). The best value is the NVIDIA RTX PRO 6000 Blackwell (about 69 tok/s for $16,000). The fastest we price is the NVIDIA RTX PRO 6000 Blackwell, at about 69 tok/s.
What is the cheapest way to run DeepSeek V4 Flash in the US today?
The Mac Studio M4 Max 128GB, $4,750 used at eBay, in stock: it runs DeepSeek V4 Flash at UD-Q2_K_XL fully in memory at 32k context, at about 22 tok/s (estimated).
Can I run DeepSeek V4 Flash on a 16 GB GPU?
No: it does not fit in 16 GB at 32k context, even with system RAM.
Can I run DeepSeek V4 Flash on a 24 GB GPU?
No: it does not fit in 24 GB at 32k context, even with system RAM.
How do I run DeepSeek V4 Flash locally?
With Ollama: ollama run hf.co/unsloth/DeepSeek-V4-Flash-0731-GGUF:UD-Q4_K_XL (the UD-Q4_K_XL build). LM Studio and llama.cpp commands are on this page.
What licence is DeepSeek V4 Flash released under?
mit, which allows commercial use.

More hardware for local AI