// RUN โ€” FITS

Can the Apple M4 Max 48GB run ERNIE 3.0?

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

ERNIE 3.0 on the Apple M4 Max 48GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 132k 18.6-22.4 t/s ~0.3-0.4 (slow)
Q8 yes 193k 37.1-44.8 t/s ~0.7-0.8 (slow)
Q4 yes 220k 66.3-80 t/s ~1.2-1.5 (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 48GB run ERNIE 3.0?โ–ถ

Yes. At Q4 it generates ~66.3-80 tok/s and fits up to 220k context; beyond that it spills to SSD swap and slows to ~1.2-1.5 tok/s.

How much context fits?โ–ถ

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