// RUN โ€” FITS

Can the Apple M4 Max 36GB run Qwen2.5-Coder (7B)?

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

Qwen2.5-Coder (7B) on the Apple M4 Max 36GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 120k 24.4-29.4 t/s ~0.4-0.5 (slow)
Q8 yes 178k 48.8-58.8 t/s ~0.9-1.1 (slow)
Q4 yes 203k 87.1-105.1 t/s ~1.6-1.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 M4 Max 36GB run Qwen2.5-Coder (7B)?โ–ถ

Yes. At Q4 it generates ~87.1-105.1 tok/s and fits up to 203k context; beyond that it spills to SSD swap and slows to ~1.6-1.9 tok/s.

How much context fits?โ–ถ

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