← CanIRunLocal · All hardware · All models

Can Qwen3-Coder-Next 80B-A3B (MoE) Run on M4 Max (40c GPU) 64GB?

Qwen3-Coder-Next 80B-A3B (MoE) at Q4_K_M on M4 Max (40c GPU) 64GB: 54.4 GB needed versus 48.0 GB usable; try ollama run qwen3-coder-next:latest.

Yes, if the Mac GPU limit is raised. Qwen3-Coder-Next 80B-A3B (MoE) on M4 Max (40c GPU) 64GB at Q4_K_M needs sudo sysctl iogpu.wired_limit_mb=57754 (54.4 GB needed, 48.0 GB usable), about 96 tok/s (estimate).

Hardware: M4 Max (40c GPU) 64GB · Model: Qwen3-Coder-Next 80B-A3B (MoE)

M4 Max (40c GPU) 64GB has 64 GB of unified memory and 546 GB/s of memory bandwidth. Mac Studio M4 Max (40c GPU) 64GB has the same memory and bandwidth, so the fit numbers match; this page is M4 Max (40c GPU) 64GB. The checker leaves macOS a share of unified memory, so Ollama can use 48.0 GB. Qwen3-Coder-Next 80B-A3B (MoE) (80B, 3B active, Alibaba) at Q4_K_M is a 52 GB download and needs 54.4 GB with headroom for about 8k tokens.

Best quantQ4_K_M
Download size52 GB
Memory needed54.4 GB
Usable fast memory48.0 GB
Fitfits if the Mac GPU limit is raised
Estimated speed~96 tok/s (estimate)
Mac GPU limitsudo sysctl iogpu.wired_limit_mb=57754
Commandollama run qwen3-coder-next:latest

Memory breakdown

Weights at Q4_K_M52 GB
Context / KV cache (~8k tokens)2.35 GB
Total needed54.4 GB
Usable unified memory48.0 GB
Headroom6.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.

Safe context length

The Q4_K_M weights (52 GB) are larger than the 48.0 GB of usable memory, so this page does not estimate a safe context length in fast memory.

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_085 GBno—
Q4_K_M picked52 GBtight~96

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/Qwen3-Coder-Next-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 M4 Max (40c GPU) 64GB 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