// RUN โ€” FITS

Can the Apple M4 Max 36GB run code2seq?

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

code2seq on the Apple M4 Max 36GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 470k 5017.3-6050.3 t/s ~91.9-110.8 (slow)
Q8 yes 471k 10034.6-12100.5 t/s ~183.8-221.6 (slow)
Q4 yes 471k 17918.9-21608.1 t/s ~328.2-395.8 (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 code2seq?โ–ถ

Yes. At Q4 it generates ~17918.9-21608.1 tok/s and fits up to 471k context; beyond that it spills to SSD swap and slows to ~328.2-395.8 tok/s.

How much context fits?โ–ถ

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