// RUN โ€” FITS

Can the Apple M2 Max 96GB run code2seq?

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

code2seq on the Apple M2 Max 96GB

QuantFits?Max contextSpeedBeyond context
FP16 yes 1294k 3675.7-4432.4 t/s ~91.9-110.8 (slow)
Q8 yes 1295k 7351.4-8864.9 t/s ~183.8-221.6 (slow)
Q4 yes 1295k 13127.4-15830.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 M2 Max 96GB run code2seq?โ–ถ

Yes. At Q4 it generates ~13127.4-15830.1 tok/s and fits up to 1295k 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 1295k tokens stay in fast memory; longer context spills to SSD swap and throughput collapses.