Can MacBook Pro M1 Pro (32 GB) run Qwen 2.5 Coder 32B?

Only with tuning. At Q4_K_M Qwen 2.5 Coder 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on MacBook Pro M1 Pro (32 GB). It loads after raising the memory limit, but expect swapping and about 2.6–6.1 tok/s.

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

Open in calculator
Over GPU memory limitQ4_K_M · 16K context
2.6–6.1 tok/s
24.1 GBof 24.0 GB usable memory
100% used
Weights18.5 GBKV cache4.0 GBOverhead1.6 GB
+0.1 GB over limit

Every quantization on M1 Pro 32GB

Q4_K_M (4-bit)
qwen2.5-coder:32b
18.5 GB
real file size
24.1 GBPartial offload8K
2.6–6.1 tok/s
Estimate
Q6_K (6-bit)
qwen2.5-coder:32b-base-q6_K
25.0 GB
real file size
30.9 GBToo large—
—
Q8_0 (8-bit)
qwen2.5-coder:32b-base-q8_0
32.4 GB
real file size
38.6 GBToo large—
—
FP16 / BF16 (16-bit)
qwen2.5-coder:32b-base-fp16
61.0 GB
real file size
68.5 GBToo large—
—

MacBook Pro M1 Pro (32 GB) has 24.0 GB usable for models out of 32 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.

Qwen 2.5 Coder 32B on M1 Pro 32GB by runtime

Command
Ollama
Q4_K_M
qwen2.5-coder:32b
18.5 GB
real file size
24.1 GBPartial offload2.6–6.1 tok/s
LM Studio
Q4_K_M
unsloth/Qwen2.5-Coder-32B-Instruct-GGUF
18.5 GB
real file size
24.1 GBPartial offload2.6–6.1 tok/s
llama.cpp
Q4_K_M
unsloth/Qwen2.5-Coder-32B-Instruct-GGUF
18.5 GB
real file size
24.1 GBPartial offload2.6–6.1 tok/s
MLX
4-bit
mlx-community/Qwen2.5-Coder-32B-Instruct-4bit
17.2 GB
real file size
22.7 GBTight fit6.7–11.1 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 M1 Pro 32GB
—

Does not fit

Rented cloud GPU
$1.16

1x RTX A6000 (48 GB) on RunPod at $0.33/hr

OpenRouter API
$0.75

$0.66 in / $1.00 out per 1M

Local cost is not shown because the model does not fit. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter

Questions and answers

Can MacBook Pro M1 Pro (32 GB) run Qwen 2.5 Coder 32B?

Only with tuning. At Q4_K_M Qwen 2.5 Coder 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on MacBook Pro M1 Pro (32 GB). It loads after raising the memory limit, but expect swapping and about 2.6–6.1 tok/s.

How fast is Qwen 2.5 Coder 32B on MacBook Pro M1 Pro (32 GB)?

It does not run at a usable speed: Qwen 2.5 Coder 32B does not fit into the memory of MacBook Pro M1 Pro (32 GB).

How much context can Qwen 2.5 Coder 32B use on MacBook Pro M1 Pro (32 GB)?

None of the standard quantizations fit MacBook Pro M1 Pro (32 GB), so there is no usable context length.