Builds / Apple M5 Max (unified)
M5 Max 128GB (llama.cpp Metal + Tencent patch): Hy4 Flash Q3_K at 50.3 tok/s and Q4_K_M at 48.1 tok/s with MTP at 4K, 37.2 tok/s plain decode at 48k
Last updated:
- GPU(s)
- Apple M5 Max (unified)
- VRAM / unified memory (GB)
- 128
- CPU
- Apple M5 Max
- Motherboard
- not stated
- RAM
- 128 GB unified memory
- PSU
- not stated
- Other
- llama.cpp upstream 2cbca389f with Tencent's hy4-flash-mac-minimal.patch (Hy4 Flash architecture, Metal MLA/fusion kernels); iogpu.wired_limit_mb=114688 (112 GiB); f16 KV, flash attention, ubatch 1024 / batch 2048; MTP rows use --spec-type draft-mtp --spec-draft-n-max 2; GGUF on local SSD (Engram table mmapped)
- Reported total cost
- not stated
- Power
- AC power
Measured speed (generation tokens/sec)
| Model | Quant | Engine | tok/s | Prompt processing (tok/s) | Details |
|---|---|---|---|---|---|
| Hy4 Flash | Q4_K_M (AngelSlim, 156.79 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 48.13 | 630 @ 4K-token prompt est. TTFT @8k ≈ 13.0 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 4K prompt📏 Quant publisher's table (section 7.2 MTP): decode 48.13 / prefill 629.8 tok/s at 4K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q4_K_M (AngelSlim, 156.79 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 45.18 | 448 @ 16K-token prompt est. TTFT @8k ≈ 18.3 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 16K prompt📏 Quant publisher's table (section 7.2 MTP): decode 45.18 / prefill 448.1 tok/s at 16K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q4_K_M (AngelSlim, 156.79 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 44.15 | 419 @ 32K-token prompt est. TTFT @8k ≈ 19.6 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 32K prompt📏 Quant publisher's table (section 7.2 MTP): decode 44.15 / prefill 418.6 tok/s at 32K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q3_K (AngelSlim, 144.70 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 50.34 | 743 @ 4K-token prompt est. TTFT @8k ≈ 11.0 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 4K prompt📏 Quant publisher's table (section 7.2 MTP): decode 50.34 / prefill 743.2 tok/s at 4K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q3_K (AngelSlim, 144.70 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 49.47 | 563 @ 16K-token prompt est. TTFT @8k ≈ 14.6 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 16K prompt📏 Quant publisher's table (section 7.2 MTP): decode 49.47 / prefill 563.0 tok/s at 16K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q3_K (AngelSlim, 144.70 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), draft-mtp K=2 | 47.37 | 521 @ 32K-token prompt est. TTFT @8k ≈ 15.7 s (calculated from measured prefill) | ⚡ spec-decode (MTP)context: 32K prompt📏 Quant publisher's table (section 7.2 MTP): decode 47.37 / prefill 520.6 tok/s at 32K. Built-in MTP block, --spec-draft-n-max 2; MTP verification is exact rejection sampling. Real agent prompts; retrieved 2026-11-23. |
| Hy4 Flash | Q4_K_M (AngelSlim, 156.79 GiB incl. Engram table) | llama.cpp 2cbca389f + Tencent hy4-flash-mac-minimal.patch (Metal), plain decode | 37.2 | 774 @ 4096-token prompt est. TTFT @8k ≈ 10.6 s (calculated from measured prefill) | context: 48k greedy📏 Section 7.1 AR (no speculative decoding), 128 GB Apple silicon, Metal, real agent prompts, 2 warm-up rounds discarded, ±1 tok/s between rounds: decode 37.2 tok/s at 48k greedy, 36.9 at 64k with default sampling (31.76 / 32.06 before the patch's kernel changes). Prefill: llama-bench pp4096 774 tok/s. |
Prompt processing = prefill speed (how fast the prompt is read) as reported by the source, with the prompt length it was measured at; blank = the source does not report it. est. TTFT @8k is calculated from the measured prefill speed (8,192 ÷ prefill tok/s), shown only when prefill was measured on a prompt of 512+ tokens. It is not a measurement and ignores load time and caching. measured TTFT is the source's own time-to-first-token. Why prefill matters for coding assistants.
Numbers from AngelSlim, Tencent's own quantization team, in the Mac/Metal guide of its Hy4 Flash GGUF repo (repo created 16 Nov 2026, retrieved 23 Nov 2026). This is the model maker's quant team measuring its own files on its own patched build, so treat it as publisher-reported. The MTP rows and the plain-decode row are from different tables and context lengths, so the ~1.3x MTP gain is indicative. Hy4 Flash support in mainline llama.cpp is still the open PR #32517. The same README's NVIDIA table (labelled 'RTX Spark 128GB') is not listed here because the device naming is ambiguous between DGX Spark and RTX Spark.
https://huggingface.co/AngelSlim/Hy4-flash-GGUF
Blank fields = not stated in the source. We never estimate build data; GPU street prices above are separately sourced and dated.
Speculative-decoding rows on this page are not like-for-like with plain decode. See how much MTP and DFlash really speed things up (measured pairs).