Why Apple's M5 Max Hits 2.06 Tokens Per Second on a 744B AI Model (And What That Reveals About Hardware Design)
Apple's M5 Max chip is demonstrating that unified memory capacity, not raw processing speed, has become the critical bottleneck for running frontier-class AI models on consumer hardware. In a real-world test of running the GLM-5.2 model, a 744-billion-parameter artificial intelligence system, the M5 Max with 128 gigabytes of unified memory achieved 2.06 tokens per second, significantly outperforming conventional consumer setups and revealing why memory architecture matters more than traditional performance metrics.
What Makes the M5 Max's Performance Stand Out?
The M5 Max's unified memory design proved crucial in the Colibri inference runtime test, a specialized software framework designed to run massive sparse AI models across storage, RAM, and optional graphics processing unit (GPU) memory. The M5 Max configuration included 46.9 gigabytes of learned pinned memory, a technique that keeps frequently accessed data readily available. This setup generated 100 output tokens in approximately 49 seconds, making it potentially tolerable for patient single-user work, according to measurements from the Colibri project. However, the M5 Max result was measured on a pre-rebase Metal branch, indicating experimental code that may not reflect final performance.
For context, an Intel i5-12600K with 32 gigabytes of RAM achieved only 0.08 tokens per second, and a Ryzen 9 9950X3D2 with 121 gigabytes of RAM and a high-end RTX 5090 graphics card achieved 1.23 tokens per second. The M5 Max's 2.06 tokens per second represents a meaningful leap, even when compared to carefully tuned high-end consumer hardware.
Why Does Memory Capacity Matter More Than Processing Power?
The real bottleneck for all tested systems is storage input/output latency, not memory architecture per se. GLM-5.2 is a sparse mixture-of-experts model, which activates only a subset of its parameters for each token generated. The model contains approximately 744 billion total parameters but only activates about 40 billion per token, creating a scenario where the system must constantly load and unload different expert blocks from storage.
The Colibri runtime exploits this sparsity by keeping dense layers resident in memory, approximately 9.9 gigabytes at integer 4-bit quantization, while storing the remaining 21,504 routed expert blocks on NVMe storage. Each expert block occupies roughly 19 megabytes, meaning a single generated token requires approximately 11.4 gigabytes of expert data to be read from disk. On a typical 1 gigabyte per second storage path, this disk I/O alone accounts for roughly 11 seconds of latency per token.
The M5 Max benefits from larger unified memory capacity compared to competitors, which allows more experts to remain cached in fast memory, reducing the number of disk reads required during inference. A Mac Mini M4 Pro with 48 gigabytes of unified memory achieved only 0.30 tokens per second, while the M5 Max with 128 gigabytes reached 2.06 tokens per second. This 6.8-fold improvement from a 2.67-fold increase in memory capacity demonstrates that memory capacity directly impacts performance for this workload.
How to Understand AI Hardware Performance for Large Models
- Memory Capacity as the Primary Lever: For running large sparse models like GLM-5.2, total memory capacity matters more than processor frequency. The M5 Max's 128 gigabytes of unified memory proved more valuable than the raw processing power of competing consumer processors.
- Storage Bandwidth as a Hard Ceiling: The speed of your NVMe storage directly impacts inference speed when models exceed available RAM. The Colibri tests showed that a 1 gigabyte per second storage path created a hard ceiling on token generation speed, making this a critical specification to evaluate.
- Cache Management and Expert Pinning: Systems that can intelligently predict which model components will be needed next and keep them in fast memory outperform systems relying on generic virtual memory or page caching alone.
- GPU Acceleration Has Limits: Adding a high-end graphics card does not guarantee performance gains. In testing, a GPU expert tier initially appeared to help but showed roughly zero gain because the CPU already matched the GPU on expert matrix multiplication and storage remained the bottleneck.
The practical implications are significant. A 100-token response on the M5 Max takes approximately 49 seconds, compared to 5.6 minutes on the M4 Pro and 20.8 minutes on an Intel i5-12600K. While none of these speeds approach real-time conversational AI, the M5 Max's performance makes it potentially usable for single-user workflows where users are willing to wait under a minute for a response.
The broader lesson extends beyond Apple hardware. The Colibri tests show that a high-end consumer setup with a Ryzen 9 9950X3D2, 121 gigabytes of RAM, and an RTX 5090 graphics card achieved only 1.23 tokens per second, slower than the M5 Max despite having more raw processing power. This demonstrates that memory capacity and storage I/O bandwidth matter more than traditional performance metrics when running frontier-class AI models on consumer hardware.
The Colibri project itself is not production-ready by normal serving standards. The runtime executes GLM-5.2 at 0.05 to 0.1 tokens per second on a developer laptop with 25 gigabytes of RAM, taking 17 to 33 minutes to generate a 100-token response. This proof-of-concept demonstrates that running a 744-billion-parameter model on consumer hardware is technically possible, but the speed penalty is severe unless the system has enough memory to keep most frequently used experts cached.