Can Mac Studio M5 Ultra (512 GB) run DeepSeek V3.2 (671B MoE)?

Yes, but it is tight. Mac Studio M5 Ultra (512 GB) runs DeepSeek V3.2 (671B MoE) at Q4_K_M with a 16K context, using 383 GB of 430 GB usable memory at an estimated 13.5–28 tok/s. The largest context that still fits at Q4_K_M is 128K.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Tight fitQ4_K_M · 16K context
13.5–28 tok/s
383 GBof 430 GB usable memory
89% used
Weights377 GBKV cache1.1 GBOverhead5.3 GB
47.0 GB free

Every quantization on Studio M5 Ultra 512GB

Q4_K_M (4-bit)
deepseek-v3:671b
377 GB
real file size
383 GBTight fit128K
13.5–28 tok/s
Estimate
Q6_K (6-bit)
513 GB
estimate
520 GBToo large—
—
Q8_0 (8-bit)
deepseek-v3:671b-q8_0
664 GB
real file size
671 GBToo large—
—
FP16 / BF16 (16-bit)
deepseek-v3:671b-fp16
1250 GB
real file size
1256 GBToo large—
—

Mac Studio M5 Ultra (512 GB) has 430 GB usable for models out of 512 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

DeepSeek V3.2 (671B MoE) on Studio M5 Ultra 512GB by runtime

Command
Ollama
Q4_K_M
deepseek-v3:671b
377 GB
real file size
383 GBTight fit13.5–28 tok/s
LM Studio
Q4_K_M
unsloth/DeepSeek-V3.2-GGUF
378 GB
real file size
384 GBTight fit13.5–28 tok/sNot in LM Studio's catalog. Search for unsloth/DeepSeek-V3.2-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
unsloth/DeepSeek-V3.2-GGUF
378 GB
real file size
384 GBTight fit13.5–28 tok/s
MLX
4-bit
mlx-community/DeepSeek-V3.2-4bit
352 GB
real file size
358 GBFits comfortably15.1–31 tok/s

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on Studio M5 Ultra 512GB
$20.82

$5.27/mo power + $22,300 hardware over 36 months

Rented cloud GPU
$119.94

8x A100 (640 GB) on Lambda at $25.52/hr

OpenRouter API
$0.29

$0.26 in / $0.38 out per 1M

Counting the hardware, the API stays cheaper at every volume this machine can serve. Local still wins on privacy and offline use. Assumes 75% input and 25% output tokens, one request at a time. Rent on Lambda · Open on OpenRouter

Questions and answers

Can Mac Studio M5 Ultra (512 GB) run DeepSeek V3.2 (671B MoE)?

Yes, but it is tight. Mac Studio M5 Ultra (512 GB) runs DeepSeek V3.2 (671B MoE) at Q4_K_M with a 16K context, using 383 GB of 430 GB usable memory at an estimated 13.5–28 tok/s. The largest context that still fits at Q4_K_M is 128K.

How fast is DeepSeek V3.2 (671B MoE) on Mac Studio M5 Ultra (512 GB)?

About 13.5–28 tok/s at Q4_K_M. Modelled from memory bandwidth and model size. No published measurement covers this setup.

How much context can DeepSeek V3.2 (671B MoE) use on Mac Studio M5 Ultra (512 GB)?

At Q4_K_M the largest context that fits is 128K tokens.