// RUN โ€” FITS

Can the Apple M2 Ultra 64GB run ERNIE-Doc (247M)?

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

ERNIE-Doc (247M) on the Apple M2 Ultra 64GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 848k 1101.2-1327.9 t/s ~13.8-16.6 (slow)
Q8 yes 852k 2202.4-2655.9 t/s ~27.5-33.2 (slow)
Q4 yes 854k 3932.9-4742.6 t/s ~49.2-59.3 (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 M2 Ultra 64GB run ERNIE-Doc (247M)?โ–ถ

Yes. At Q4 it generates ~3932.9-4742.6 tok/s and fits up to 854k context; beyond that it spills to SSD swap and slows to ~49.2-59.3 tok/s.

How much context fits?โ–ถ

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