// RUN โ€” FITS

Can the Apple M4 Max 36GB run ERNIE-GEN (large)?

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

ERNIE-GEN (large) on the Apple M4 Max 36GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 461k 546-658.4 t/s ~10-12.1 (slow)
Q8 yes 466k 1092-1316.8 t/s ~20-24.1 (slow)
Q4 yes 469k 1950-2351.5 t/s ~35.7-43.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 ERNIE-GEN (large)?โ–ถ

Yes. At Q4 it generates ~1950-2351.5 tok/s and fits up to 469k context; beyond that it spills to SSD swap and slows to ~35.7-43.1 tok/s.

How much context fits?โ–ถ

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