Can CodeGeeX 4 9B run on MacBook Pro M2 Max 96GB?
YES — Runs Great
CodeGeeX 4 9B needs ~17.4 GB VRAM. MacBook Pro M2 Max 96GB has 69.1 GB. With Q4_K_M quantization, expect ~46 tok/s.
Operating mode
Choose the run profile you care about
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
46.2 tok/s
TTFT
4189 ms
Safe context
131K
Memory
17.4 GB / 69.1 GB
Memory breakdown
See how fast it feels
What limits this setup
This setup is broadly balanced for this model.
Shared-memory contention still exists
The OS, browser, and inference runtime all compete for the same physical memory pool, so real-world headroom is less forgiving than raw capacity suggests.
Best improvement path
Performance by workload
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | A | Runs well | 46.2 tok/s | 2285 ms | 131K |
| Coding | A | Runs well | 46.2 tok/s | 4189 ms | 131K |
| Agentic Coding | A | Runs well | 46.2 tok/s | 6093 ms | 131K |
| Reasoning | A | Runs well | 46.2 tok/s | 4950 ms | 131K |
| RAG | A | Runs well | 46.2 tok/s | 7616 ms | 131K |
Quantization options
How CodeGeeX 4 9B (9B params) fits at each quantization level on MacBook Pro M2 Max 96GB (69.1 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 3.5 GB | Low | B68 |
Q3_K_S | 3 | 4.4 GB | Low | B68 |
NVFP4 | 4 | 5.0 GB | Medium | B68 |
Q4_K_M | 4 | 5.5 GB | Medium | B68 |
Q5_K_M | 5 | 6.5 GB | High | B68 |
Q6_K | 6 | 7.4 GB | High | B68 |
Q8_0 | 8 | 9.6 GB | Very High | B69 |
F16Best for your GPU | 16 | 18.5 GB | Maximum | A70 |
Get started
Copy-paste commands to run CodeGeeX 4 9B on your machine.
Run
docker run --rm -it ghcr.io/ggerganov/llama.cpp:full \
--hf-repo "THUDM/codegeex4-all-9b" \
--hf-file "codegeex4-all-9b-Q4_K_M.gguf" \
-c 4096 -ngl 99Your hardware
