Quantization Trade-offs for LLM Inference on Apple Silicon: A Practical Speed, Memory, and Accuracy Benchmark
Deploying large language models (LLMs) on consumer hardware typically requires quantization to reduce memory footprint and increase inference speed, but the practical trade-offs of this compression are not well characterized on Apple Silicon, where most existing benchmarks focus on NVIDIA GPU deployments. We present a systematic evaluation of three inference frameworks — MLX, llama.cpp, and their respective 4-bit and 8-bit quantization schemes — across three open-weight language models (Llama-3.2-3B, Qwen2.5-3B, and Phi-3.5-mini) on an Apple M4 MacBook Air. We find that MLX consistently outperforms llama.cpp in generation speed, that 8-bit quantization achieves perfect accuracy while 4-bit shows a measurable accuracy cost concentrated in code and arithmetic tasks, and that peak memory usage is driven primarily by each model's default context-window allocation rather than by quantization level.
Authors
- Sameer Ahmed (ORCID: https://orcid.org/0000-0003-4807-8643)
Institutions
- Osmania University (IN)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-09-14
- DOI
- https://doi.org/10.5281/zenodo.22738012
- Primary Topic
- Natural Language Processing Techniques
- Type
- preprint