llamaperf
Oct 13, 2026
Throughput
62.1 t/s gen · 1685.9 tokens/s prompt processing (prefill)Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
Quant
4-bit (MLX)
System RAM
48 GB

Summary

User reports Phi-4 at 62.1 t/s generation and 1685.9 t/s prompt processing on an M5 Max 48GB. Setup is MLX with 4-bit weights, batch size 1, unquantized KV cache and no speculative decoding, on one Mac Studio with 18 CPU cores and 40 GPU cores. The headline uses pp512=1685.9 and tg128=62.05 from a five-trial mean; retained values also include pp128=1177.05, pp256=1469.71, tg256=62.51, and peak MLX allocator memory of 8.912 GB.

Compare this run

Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.

Models most run on the M5 Max 48GB

Bars are medians on one scale, 0 to 570.6 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Everything reported on the M5 Max 48GB →Every Phi-4 report →Estimate Phi-4 on this card →