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 capacity | Cache | Total allocation |
|---|---|---|
| 4,096 tokens | 0.60 GB | 6.12 GB |
| 8,192 tokens | 1.21 GB | 6.78 GB |
| 16,384 tokens | 2.42 GB | 8.11 GB |
| 32,768 tokens | 4.83 GB | 10.77 GB |
Recorded tests
| Model / hardware | Runtime | Prompt / window | Decode | Source |
|---|---|---|---|---|
| Qwen3-4BM4 Max 64 GB | mlxmlx-lm 0.32.2 / mlx 0.32.58bit | 512 / 8,192 | 88.4 tok/s | Measured2026-11-29 UTC |
| Qwen3-4BM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q8_0 | 512 / 640 | 85.0 tok/s | Measured2026-11-29 UTC |
| Qwen3-4BM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q5_K_M | 512 / 640 | 103.2 tok/s | Measured2026-11-29 UTC |
| Qwen3-4BM4 Max 64 GB | llama.cpp1.1.0 (build 12774, commit 171527522)Q4_K_M | 512 / 640 | 134.3 tok/s | Measured2026-11-29 UTC |
| Qwen3-4BM4 Max 64 GB | mlxmlx-lm 0.32.2 / mlx 0.32.54bit | 512 / 8,192 | 159.6 tok/s | Measured2026-11-29 UTC |
| Qwen3-4BM4 Max 64 GB | ollama0.40.16Q4_K_M | 512 / 8,192 | 117.5 tok/s | Measured2026-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.