← CanIRunLocal · All hardware · All models

Can DeepSeek Coder V2 Lite 16B (MoE) Run on Mac Studio M5 Ultra (80c GPU) 512GB?

DeepSeek Coder V2 Lite 16B (MoE) at Q8_0 on Mac Studio M5 Ultra (80c GPU) 512GB: 18 GB needed versus 384.0 GB usable; try ollama run deepseek-coder-v2:16b-lite-instruct-q8_0.

Yes. DeepSeek Coder V2 Lite 16B (MoE) fits in fast memory on Mac Studio M5 Ultra (80c GPU) 512GB at Q8_0 (18 GB needed, 384.0 GB usable), about 141 tok/s (estimate).

Hardware: Mac Studio M5 Ultra (80c GPU) 512GB · Model: DeepSeek Coder V2 Lite 16B (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 Coder V2 Lite 16B (MoE) (15.7B, 2.4B active, DeepSeek) at Q8_0 is a 17 GB download and needs 18 GB with headroom for about 8k tokens.

Best quantQ8_0
Download size17 GB
Memory needed18 GB
Usable fast memory384.0 GB
Fitfits in fast memory
Estimated speed~141 tok/s (estimate)
Commandollama run deepseek-coder-v2:16b-lite-instruct-q8_0

Memory breakdown

Weights at Q8_017 GB
Context / KV cache (~8k tokens)0.99 GB
Total needed18 GB
Usable unified memory384.0 GB
Headroom366.0 GB left

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.

Safe context length

About 163,840 tokens (estimate). 8,192 × (367 GB left after the weights ÷ 0.99 GB for about 8,192 tokens). That product is past the model's own context, so the safe length stops at 163,840 tokens (160K). This scales the checker's context allowance. It is not a measured run.

Quants

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

QuantSizeFitsEst. tok/s
Q8_0 picked17 GByes~141
Q5_K_M12 GByes~179
Q4_K_M10 GByes~200
Q4_08.9 GByes~214

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-Coder-V2-Lite-Instruct-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×.

Open Mac Studio M5 Ultra (80c GPU) 512GB in the checker

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-20.

A project by OnDevice Labs · llms.txt · How we estimate