llama.cpp for Mac
ggml / ops / maintainer PRs%20sort%3Aupdated-desc) / dev stats / lib llama API / llama-server REST API
llama.cpp — overview
LLM inference in C/C++
ggml / ops / maintainer PRs%20sort%3Aupdated-desc) / dev stats / lib llama API / llama-server REST API
Quick start
A few options to get llama.cpp installed on your machine: Visit https://llama.app and follow the instructions Run with Docker - see our Docker documentation Download pre-built binaries from the releases page Build from source by cloning this repository - check out our build guide
Once installed:
VLM session with llama cli
Built-in web UI against llama serve
Description
The main goal of llama.cpp is to enable LLM (and VLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware - locally and in the cloud. Plain C/C++ implementation without any dependencies Apple silicon is a first-class citizen - optimized via ARM NEON, Accelerate and Metal frameworks AVX, AVX2, AVX512 and AMX support for x86 architectures RVV, ZVFH, ZFH, ZICBOP and ZIHINTPAUSE support for RISC-V architectures 1.5-bit, 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit integer quantization for faster inference and reduced memory use Custom CUDA kernels for running LLMs on NVIDIA GPUs (support for AMD GPUs via HIP and Moore Threads GPUs via MUSA) Vulkan and SYCL backend support CPU+GPU hybrid inference to partially accelerate models larger than the total VRAM capacity
The llama.cpp project is build on top of the ggml library.
Supported backends
Documentation
Tools cli completion server GBNF grammars
Development How to build Running on Docker Build on Android Multi-GPU usage Performance troubleshooting GGML tips & tricks XCFramework Completions Models Release process
Contributing Contributors can open PRs Collaborators will be invited based on contributions Maintainers can push to branches in the llama.cpp repo and merge PRs into the master branch Any help with managing issues, PRs and projects is very appreciated! Read the CONTRIBUTING.md for more information
Acknowledgements yhirose/cpp-httplib - Single-header HTTP server, used by llama-server - MIT license nothings/stb - Single-header image format decoder, used by multimodal subsystem - Public domain nlohmann/json - Single-header JSON library, used by various tools/examples - MIT License mackron/miniaudio - Single-header audio format decoder, used by multimodal subsystem - Public domain sheredom/subprocess.h - Single-header process launching solution for C and C++ - Public domain
Details
C/C 中的 LLM 推理
How to install llama.cpp
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-11-12; current version b12321, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| b12321 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12320 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12319 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12318 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12317 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12316 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12314 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12311 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12308 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
| b12307 | 2026-11-12 | Pre-release | 16.1 MB | Download | Download | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Depended on by 2 apps
The following apps install it automatically, ranked by 30-day installs:
- whisper.cpp22,550 installs/mo
- ramalama521 installs/mo
Prebuilt bottle platforms
Official Homebrew bottles cover:
- Apple silicon · latest macOS
- Apple silicon · macOS 26 Tahoe
- Apple silicon · macOS 15 Sequoia
- Linux · ARM64
- Linux · x86_64
⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| llama.cpp | b12321 | MIT | CLI | 34,660 |
| rtk | v1.2.0 | Apache-2.0 | CLI | 23,446 |
| openvino | 2026.4.1 | Apache-2.0 | CLI | 2,798 |
| open-code-review | v1.13.8 | Apache-2.0 | CLI | 682 |
Similar apps: AI & Machine Learning
rtk
CLI proxy to minimize LLM token consumptionopenvino
Open Visual Inference And Optimization toolkit for AI inferenceopen-code-review
AI-powered code review tool with deterministic pipelines and an LLM agentSuperwhisper
Superwhisper is a productivity tool that converts speech into text, suited to people who prefer…Cherry Studio
Cherry Studio — a macOS app available via Homebrew.promptfoo
Promptfoo is a local testing tool for large language model applications that helps developers…Categories: AI & Machine Learning, Command-line Tools