☰ Menu
CLI Open source 34,660 installs/mo

llama.cpp for Mac

llama.cpp

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

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-11-12; current version b12321, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
b123212026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123202026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123192026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123182026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123172026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123162026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123142026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123112026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123082026-11-12Pre-release16.1 MBDownloadDownloadDownload
b123072026-11-12Pre-release16.1 MBDownloadDownloadDownload

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:

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.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
llama.cppb12321MITCLI34,660
rtkv1.2.0Apache-2.0CLI23,446
openvino2026.4.1Apache-2.0CLI2,798
open-code-reviewv1.13.8Apache-2.0CLI682

Similar apps: AI & Machine Learning

Leave a comment

评论表单加载中…