- generation:
- 56.8 tokens/s
- prompt processing (prefill):
- 1537.5 tokens/s
- quant:
- Q4_K_M (GGUF)
- flash attention:
- on
User reports Phi-4 at 56.8 t/s generation and 1537.5 t/s prompt processing on an M5 Max with 48GB unified memory. Setup is llama.cpp build 11146 with Metal, Q4_K_M weights, n_gpu_layers=99 and flash attention enabled. The figures are separate llama-bench microtests, tg128 and pp512, not one 512-input/128-output request or server concurrency throughput; context length is unspecified.