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 88 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Canada that runs DeepSeek V4 Flash 0731 fully in memory at 8k context is the Mac Studio M3 Ultra 512GB, $28,000 at eBay, at about 18 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Canada today
Mac Studio M3 Ultra 512GB, used at eBay
Runs DeepSeek V4 Flash 0731 at MXFP4 fully in memory at 8k context, about 18 tok/sest.
$28,000
In stock, checked
What to run it on in Canada
Fully in memory at 8k context, priced at retailers today.
Cheapest
Mac Studio M3 Ultra 512GB18tok/sest.MXFP4
$28,000
Best value
Mac Studio M3 Ultra 512GB18tok/sest.MXFP4
$28,000
Fastest
Mac Studio M3 Ultra 512GB18tok/sest.MXFP4
$28,000
Mac
Mac Studio M3 Ultra 512GB18tok/sest.MXFP4
$28,000
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 512GB | MXFP4 | fits | 18 tok/s | $28,000 | 0.6 |
| Mac Studio M3 Ultra 256GB | MXFP4 | fits | 18 tok/s | – | – |
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 88 GB at 8k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running DeepSeek V4 Flash 0731 locally?
- The cheapest hardware in Canada that runs DeepSeek V4 Flash 0731 fully in memory at 8k context is the Mac Studio M3 Ultra 512GB, $28,000 at eBay, at about 18 tok/s (estimated).
- What is the cheapest way to run DeepSeek V4 Flash 0731 in Canada today?
- The Mac Studio M3 Ultra 512GB, $28,000 used at eBay, in stock: it runs DeepSeek V4 Flash 0731 at MXFP4 fully in memory at 8k context, at about 18 tok/s (estimated).
- Can I run DeepSeek V4 Flash 0731 on a 16 GB GPU?
- No: it does not fit in 16 GB at 8k 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 8k 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.