Local AI Bench

Can You Run Qwen3-4B on M4 Max 64 GB?

8bit · mlx · 512-token input · 8,192-token context window

Ran successfully

Measured Run recorded 2026-11-29 UTC with mlx mlx-lm 0.32.2 / mlx 0.32.5. The estimated working allocation is 6.8 GB for Qwen3-4B in 8bit.

88.4 tok/s measured in mlx mlx-lm 0.32.2 / mlx 0.32.5 on 2026-11-29 The GPU shares its 64 GB pool with macOS.

Adjust configuration
Estimated weights
4.3 GB
Estimated FP16 cache
1.2 GB
Estimated overhead
1.3 GB
Estimated GPU budget
41.6–48.0 GB

Context sensitivity

Estimated
Context capacityCacheTotal allocation
4,096 tokens0.60 GB6.12 GB
8,192 tokens1.21 GB6.78 GB
16,384 tokens2.42 GB8.11 GB
32,768 tokens4.83 GB10.77 GB

Recorded tests

Model / hardwareRuntimePrompt / windowDecodeSource
Qwen3-4BM4 Max 64 GBmlxmlx-lm 0.32.2 / mlx 0.32.58bit512 / 8,19288.4 tok/sMeasured2026-11-29 UTC
Qwen3-4BM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q8_0512 / 64084.8 tok/sMeasured2026-11-29 UTC
Qwen3-4BM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q5_K_M512 / 640103.1 tok/sMeasured2026-11-29 UTC
Qwen3-4BM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q4_K_M512 / 640133.4 tok/sMeasured2026-11-29 UTC
Qwen3-4BM4 Max 64 GBmlxmlx-lm 0.32.2 / mlx 0.32.54bit512 / 8,192159.3 tok/sMeasured2026-11-29 UTC
Qwen3-4BM4 Max 64 GBollama0.40.16Q4_K_M512 / 8,192116.8 tok/sMeasured2026-11-29 UTC

Related profiles

Frequently asked questions

Does Qwen3-4B fit on M4 Max?

Ran successfully for 8bit with 8,192 context tokens. The verdict comes from an observed run.

How fast is generation?

88.4 tok/s measured in mlx mlx-lm 0.32.2 / mlx 0.32.5 on 2026-11-29

How much difference does context make?

At 8,192 tokens, the estimated FP16 attention cache is 1.21 GB. The weight allocation stays around 4.27 GB when only context changes.