Production-Grade Local LLM Inference on Apple Silicon: A Comparative Study of MLX, MLC-LLM, Ollama, llama.cpp, and PyTorch MPS
Not on the map. Why?
Abstract (arXiv)
We present a systematic, empirical evaluation of five local large language model (LLM) runtimes on Apple Silicon: MLX, MLC-LLM, llama.cpp, Ollama, and PyTorch MPS. Experiments were conducted on a Mac Studio equipped with an M2 Ultra processor and 192 GB of unified memory. Using the Qwen-2.5 model family across prompts ranging from a few hundred to 100,000 tokens, we measure time-to-first-token (TTFT), steady-state throughput, latency percentiles, long-context behavior (key-value and prompt caching), quantization support, streaming performance, batching and concurrency behavior, and deployment complexity. Under our settings, MLX achieves the highest sustained generation throughput, while MLC-LLM delivers consistently lower TTFT for moderate prompt sizes and offers stronger out-of-the-box inference features. llama.cpp is highly efficient for lightweight single-stream use, Ollama emphasizes developer ergonomics but lags in throughput and TTFT, and PyTorch MPS remains limited by memory constraints on large models and long contexts. All frameworks execute fully on-device with no telemetry, ensuring strong privacy guarantees. We release scripts, logs, and plots to reproduce all results. Our analysis clarifies the design trade-offs in Apple-centric LLM deployments and provides evidence-based recommendations for interactive and long-context processing. Although Apple Silicon inference frameworks still trail NVIDIA GPU-based systems such as vLLM in absolute performance, they are rapidly maturing into viable, production-grade solutions for private, on-device LLM inference.
Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Builds on 4 of its 17 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
4 of 17 references.
References · 4
- 2024Qwen2.5 Technical Reportcited by 4,840
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,628
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,093
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devicescited by 8
- 2026RooflineBench: A Benchmarking Framework for On-Device LLMs via Roofline Analysiscited by 5
- 2026Silicon Showdown: Performance, Efficiency, and Ecosystem Barriers in Consumer-Grade LLM Inferencecited by 0
- 2026OpenClaw and Ollama in Agentic AI: Toward Fully Autonomous and Scalable AI Agent Systemscited by 0
- 2026SiliconBench: Speed, Memory, and Fidelity for LLM Serving on Unified-Memory Desktopscited by 0
- 2026SiliconBench: Speed, Memory, and Fidelity for LLM Serving on Unified-Memory Desktops12 Sep 2026
- 2026Silicon Showdown: Performance, Efficiency, and Ecosystem Barriers in Consumer-Grade LLM Inference1 May 2026
- 2026OpenClaw and Ollama in Agentic AI: Toward Fully Autonomous and Scalable AI Agent Systems16 Apr 2026
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devices17 Feb 2026
- 2026RooflineBench: A Benchmarking Framework for On-Device LLMs via Roofline Analysis12 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026BaseRT: Best-in-Class LLM Inference on Apple Silicon via Native Metal
- 2026Native LLM and MLLM Inference at Scale on Apple Silicon
- 2026When NPUs Are Not Always Faster: A Stage-Level Analysis of Mobile LLM Inference
- 2023Efficient LLM Inference on CPUs
- 2026Is Your NPU Ready for LLMs? Dissecting the Hidden Efficiency Bottlenecks in Mobile LLM Inference
- 2025An Evaluation of LLMs Inference on Popular Single-board Computers
- 2026BaseRT: Advancing Best-in-Class LLM Inference with Apple M5 Neural Accelerators
- 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks