Inference Server on an M4 Pro: The Practical 26x Speedup
· 16 min read
Athrael's course Introduction to GPU Inference has a lesson called "Your first inference server". You install narwhal-inference and start a router with four llama.cpp engines: two do prefill and two do decode. The engines serve ERNIE-4.5-0.3B at 4-bit, and you load-test them with 2,000 prompts. The lesson lists Linux and WSL2 as supported. It does not list macOS. I ran it on my MacBook (Apple M4 Pro, 24 GB) anyway, to see how far it gets.
In short, it runs on the M4 only inside an x86 Linux container under Rosetta, at about 4% of the lesson's throughput. The same model on native llama.cpp with Metal matches the lesson's per-token decode speed from a single engine.

