DeepSeek V4 Flash 0731
304.2B total, 33.6B active · 1024k context · MIT License · released 2026-07-31
chatcodingagenticreasoning
In short
DeepSeek V4 Flash 0731 is an open model from DeepSeek with 304.2B parameters (33.6B active per token). At mlx-2bit, DeepSeek V4 Flash 0731 needs about 88 GB of memory at 8k context and 98 GB at 128k, counting the weights, the KV cache and runtime buffers. Nothing we price in the US runs DeepSeek V4 Flash 0731 fully in memory at 128k context at a usable speed; see the table for what comes closest.
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in the US today
Nothing in stock in the US today runs DeepSeek V4 Flash 0731 fully in memory at 128k context at 15 tok/s or more. A shorter context needs less memory; the table below shows what comes closest.
What to run it on in the US
Fully in memory at 128k context, priced at retailers today.
Something we price holds it fully in memory, but none reaches 15 tok/s, our bar for recommending it. The table below has the speeds.
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| Mac Studio M3 Ultra 256GB | MXFP4 | fits | 11 tok/s | $9,500 | 1.2 |
| Mac Studio M3 Ultra 512GB | MXFP4 | fits | 11 tok/s | $30,000 | 0.4 |
61 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).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| mlx-2bitmlx | 86.1 GB | 87.5 GB | 89.7 GB | 92.6 GB | 98.3 GB |
| MXFP4gguf | 145.6 GB | 147.1 GB | 149.2 GB | 152.1 GB | 157.8 GB |
Run it
Copy a command for the runtime you use.
- mlx-2bit
- LM Studio
lms get mlx-community/DeepSeek-V4-Flash-0731-OptiQ-2bit - MLX
mlx_lm.server --model mlx-community/DeepSeek-V4-Flash-0731-OptiQ-2bit
- LM Studio
- MXFP4
- Ollama
ollama run hf.co/lmstudio-community/DeepSeek-V4-Flash-0731-GGUF:MXFP4 - LM Studio
lms get lmstudio-community/DeepSeek-V4-Flash-0731-GGUF@mxfp4 - llama.cpp
llama-server -hf lmstudio-community/DeepSeek-V4-Flash-0731-GGUF:MXFP4
- Ollama
Notes
The card ships no Jinja chat template, so prompts must be encoded with the Python scripts in the provided `encoding` folder. It includes a DSpark speculative decoding module; the example vLLM setup uses a 4×GB300 node, and the card recommends a maximum output length of 384K tokens at the high and max reasoning effort levels. 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 0731 need?
- At mlx-2bit, DeepSeek V4 Flash 0731 needs about 88 GB of memory at 8k context and 98 GB at 128k, counting the weights, the KV cache and runtime buffers.
- Can I run DeepSeek V4 Flash 0731 on a 16 GB GPU?
- No: it does not fit in 16 GB at 128k context, even with system RAM.
- Can I run DeepSeek V4 Flash 0731 on a 24 GB GPU?
- No: it does not fit in 24 GB at 128k context, even with system RAM.
- How do I run DeepSeek V4 Flash 0731 locally?
- With Ollama: ollama run hf.co/lmstudio-community/DeepSeek-V4-Flash-0731-GGUF:MXFP4 (the MXFP4 build). LM Studio and llama.cpp commands are on this page.
- What licence is DeepSeek V4 Flash 0731 released under?
- MIT License, which allows commercial use.