← CanIRunLocal · All hardware · All models
DeepSeek V3.1 671B (MoE) at Q4_K_M on Mac Studio M5 Ultra (80c GPU) 512GB: 406.4 GB needed versus 384.0 GB usable; try ollama run deepseek-v3.1:671b.
Yes, if the Mac GPU limit is raised. DeepSeek V3.1 671B (MoE) on Mac Studio M5 Ultra (80c GPU) 512GB at Q4_K_M needs sudo sysctl iogpu.wired_limit_mb=418202 (406.4 GB needed, 384.0 GB usable), about 22 tok/s (estimate).
Hardware: Mac Studio M5 Ultra (80c GPU) 512GB · Model: DeepSeek V3.1 671B (MoE)
Mac Studio M5 Ultra (80c GPU) 512GB has 512 GB of unified memory and 1200 GB/s of memory bandwidth. The checker leaves macOS a share of unified memory, so Ollama can use 384.0 GB. DeepSeek V3.1 671B (MoE) (671B, 37B active, DeepSeek) at Q4_K_M is a 404 GB download and needs 406.4 GB with headroom for about 8k tokens.
| Best quant | Q4_K_M |
|---|---|
| Download size | 404 GB |
| Memory needed | 406.4 GB |
| Usable fast memory | 384.0 GB |
| Fit | fits if the Mac GPU limit is raised |
| Estimated speed | ~22 tok/s (estimate) |
| Mac GPU limit | sudo sysctl iogpu.wired_limit_mb=418202 |
| Command | ollama run deepseek-v3.1:671b |
| Weights at Q4_K_M | 404 GB |
|---|---|
| Context / KV cache (~8k tokens) | 2.35 GB |
| Total needed | 406.4 GB |
| Usable unified memory | 384.0 GB |
| Headroom | 22.4 GB over |
Weights are the listed download size. The context line is the checker's allowance for about 8,192 tokens, not a measured KV cache. Total needed rounds that sum to 0.1 GB.
The Q4_K_M weights (404 GB) are larger than the 384.0 GB of usable memory, so this page does not estimate a safe context length in fast memory.
Every quant this checker lists for the command below. Yes fits in fast memory with at least 1 GB spare. Tight means under 1 GB spare, partial offload, or a raised Mac GPU limit. Speeds are estimates from memory bandwidth, not measured benchmarks. How we estimate
| Quant | Size | Fits | Est. tok/s |
|---|---|---|---|
| Q8_0 | 713 GB | no | — |
| Q4_K_M picked | 404 GB | tight | ~22 |
Tip: pair it with a small draft model for 1.1–1.5× faster replies with identical output, e.g. mlx_lm.generate --model mlx-community/DeepSeek-V3.1-4bit --draft-model mlx-community/Qwen2.5-0.5B-Instruct-4bit. The draft must share the tokenizer. Measured on an M4: Qwen 2.5 3B 1.24–1.48×, 7B 1.13–1.19×.
Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Speeds are for short chats. Long conversations (around 8k tokens) run about 10–15% slower because the model rereads its memory of the chat for every word. How we estimate. Data updated 2026-11-25.
A project by OnDevice Labs · llms.txt · How we estimate