mlsanityData to 13 Oct 2026

Production-Grade Local LLM Inference on Apple Silicon: A Comparative Study of MLX, MLC-LLM, Ollama, llama.cpp, and PyTorch MPS

arXiv 2511.05502 ↗First posted 9 Oct 2025cs.AR cs.AIcited by 5

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

  1. 2024Qwen2.5 Technical Reportcited by 4,840
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,628
  3. 2020Longformer: The Long-Document Transformercited by 3,393
  4. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,093

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 5.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026BaseRT: Best-in-Class LLM Inference on Apple Silicon via Native Metal
  2. 2026Native LLM and MLLM Inference at Scale on Apple Silicon
  3. 2026When NPUs Are Not Always Faster: A Stage-Level Analysis of Mobile LLM Inference
  4. 2023Efficient LLM Inference on CPUs
  5. 2026Is Your NPU Ready for LLMs? Dissecting the Hidden Efficiency Bottlenecks in Mobile LLM Inference
  6. 2025An Evaluation of LLMs Inference on Popular Single-board Computers
  7. 2026BaseRT: Advancing Best-in-Class LLM Inference with Apple M5 Neural Accelerators
  8. 2026Parallelization Strategies for Dense LLM Deployment: Navigating Through Application-Specific Tradeoffs and Bottlenecks