// RUN โ€” FITS

Can the Apple M4 Max 64GB run gpt-sw3-40b?

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

gpt-sw3-40b on the Apple M4 Max 64GB

QuantFits?Max contextSpeedBeyond context
FP16 no โ€” โ€” โ€”
Q8 yes 49k 9.3-11.2 t/s ~0.2-0.2 (slow)
Q4 yes 103k 16.6-20 t/s ~0.3-0.4 (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 64GB run gpt-sw3-40b?โ–ถ

Yes. At Q4 it generates ~16.6-20 tok/s and fits up to 103k context; beyond that it spills to SSD swap and slows to ~0.3-0.4 tok/s.

How much context fits?โ–ถ

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