// RUN โ€” FITS

Can the Apple M3 Max 36GB run CodeGen-Mono 16.1B?

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

CodeGen-Mono 16.1B on the Apple M3 Max 36GB

QuantFits?Max contextSpeedBeyond context
FP16 no โ€” โ€” โ€”
Q8 yes 56k 12.7-15.3 t/s ~0.4-0.5 (slow)
Q4 yes 83k 22.6-27.3 t/s ~0.8-0.9 (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 M3 Max 36GB run CodeGen-Mono 16.1B?โ–ถ

Yes. At Q4 it generates ~22.6-27.3 tok/s and fits up to 83k context; beyond that it spills to SSD swap and slows to ~0.8-0.9 tok/s.

How much context fits?โ–ถ

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