// RUN โ€” FITS

Can the Apple M4 Max 36GB run CodeGeeX?

Yes โ€” here's how fast and up to what context, with real measured numbers.

CodeGeeX on the Apple M4 Max 36GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 30k 14.3-17.2 t/s ~0.3-0.3 (slow)
Q8 yes 109k 28.6-34.4 t/s ~0.5-0.6 (slow)
Q4 yes 144k 51-61.5 t/s ~0.9-1.1 (slow)

Estimate (memory-bound). Beyond "max context" the KV cache spills to SSD swap and speed drops to the "beyond" figure.

FAQ

Can the Apple M4 Max 36GB run CodeGeeX?โ–ถ

Yes. At Q4 it generates ~51-61.5 tok/s and fits up to 144k context; beyond that it spills to SSD swap and slows to ~0.9-1.1 tok/s.

How much context fits?โ–ถ

At Q4, up to about 144k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.