Can MacBook Air M4 (32 GB) run QwQ 32B?

Only with tuning. At Q4_K_M QwQ 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on MacBook Air M4 (32 GB). It loads after raising the memory limit, but expect swapping and about 1.6–3.7 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
1.6–3.7 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 Air M4 32GB

Q4_K_M (4-bit)
qwq:32b
18.5 GB
real file size
24.1 GBPartial offload8K
1.6–3.7 tok/s
Estimate
Q6_K (6-bit)
25.0 GB
estimate
30.9 GBToo large—
—
Q8_0 (8-bit)
qwq:32b-q8_0
32.4 GB
real file size
38.6 GBToo large—
—
FP16 / BF16 (16-bit)
qwq:32b-fp16
61.0 GB
real file size
68.5 GBToo large—
—

MacBook Air M4 (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.

QwQ 32B on Air M4 32GB by runtime

Command
Ollama
Q4_K_M
qwq:32b
18.5 GB
real file size
24.1 GBPartial offload1.6–3.7 tok/s
LM Studio
Q4_K_M
unsloth/QwQ-32B-GGUF
18.5 GB
real file size
24.1 GBPartial offload1.6–3.7 tok/s
llama.cpp
Q4_K_M
unsloth/QwQ-32B-GGUF
18.5 GB
real file size
24.1 GBPartial offload1.6–3.7 tok/s
MLX
4-bit
mlx-community/QwQ-32B-4bit
17.2 GB
real file size
22.7 GBTight fit4.1–6.8 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 Air M4 32GB
—

Does not fit

Rented cloud GPU
$1.16

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

OpenRouter API
—

Not listed on OpenRouter

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

Questions and answers

Can MacBook Air M4 (32 GB) run QwQ 32B?

Only with tuning. At Q4_K_M QwQ 32B needs 24.1 GB, more than the 24.0 GB macOS gives the GPU by default on MacBook Air M4 (32 GB). It loads after raising the memory limit, but expect swapping and about 1.6–3.7 tok/s.

How fast is QwQ 32B on MacBook Air M4 (32 GB)?

It does not run at a usable speed: QwQ 32B does not fit into the memory of MacBook Air M4 (32 GB).

How much context can QwQ 32B use on MacBook Air M4 (32 GB)?

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