Discover / Token & Cost Optimization

llama.cpp

by ggerganovC++

Efficient C plus plus inference of LLaMA models enabling cheaper on device execution.

Repositorystable

Maturity: stable because 3y old, b10199 released 4d ago. Derived from release and commit history, not a rating.

Stars
122k
Forks
21k
Downloads / mo
Last commit
2026-08-02
License
MIT
Open issues
1.9k

Market and trust evidence

Edition not yet matched

No exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.

Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.

In practice

Written by AI from this repository’s README · high confidence

Running a model locally with good performance usually drags in a heavy Python and GPU stack.

Use it when

Use it when you want minimal setup local inference on CPU, Apple silicon or a GPU, including an OpenAI compatible server.

Not the right pick when

The README hands installation off to the website, Docker docs, release binaries or a build guide, so there is no one line install.

Capabilities

  • llama cli for running a model from Hugging Face
  • llama serve for an OpenAI compatible API server with a web UI
  • 1.5-bit through 8-bit integer quantization
  • Apple silicon optimization via ARM NEON, Accelerate and Metal
  • CUDA, HIP, Vulkan, SYCL and other backends
  • CPU and GPU hybrid inference for models larger than VRAM

Cost: Free and open source

Install

Derived from the published package name in the repository, not from a model.

Video walkthroughs

Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.

What the repository ships

Ships CLAUDE.mdHas testsHas docsHas examplesSecurity policyCI configured

Detected from the actual files in the repository root.

Latest release b10199

Published 2026-07-30

<details open>

server: support inp embd to generate next token (#26313)

  • server: support embd for sampled token
  • fix ~server_batch()

</details>

Website:

  • <https://llama.app>

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI:

Tags

README

llama.cpp

llama

<div align="center">

<b>LLM inference in C/C++</b>

License: MIT

Release

Server

Docker

Winget

manifesto / ggml / ops / maintainer PRs%20sort%3Aupdated-desc) / dev branches / compile times / lib llama API / llama-server REST API

</div>

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:


# Download and run a model directly from Hugging Face
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF

# Launch OpenAI-compatible API server
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF

<table align="center">

<tr>

<td align="center" width=50%>

<img width="1310" height="888" alt="VLM session with llama cli" src="https://github.com/user-attachments/assets/88726b48-1713-48aa-a525-95a02e78afc4" />

<i>VLM session with <b>llama cli</b></i>

</td>

<td align="center">

<img width="1392" height="958" alt="Built-in web UI against llama serve running Qwen 3.6" src="https://github.com/user-attachments/assets/b402f972-2e32-4def-8771-8d849f08cf2e" />

<i>Built-in web UI against <b>llama serve</b></i>

</td>

</tr>

<table>

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

| Backend | Target devices |

| --- | --- |

| BLAS | All |

| BLIS | All |

| CANN | Ascend NPU |

| CUDA | Nvidia GPU |

| HIP | AMD GPU |

| [Hexagon [In Progress]](docs/backend/snapdragon/README.md) | Snapdragon |

| IBM zDNN | IBM Z & LinuxONE |

| MUSA | Moore Threads GPU |

| Metal | Apple Silicon |

| OpenCL | Adreno GPU |

| [OpenVINO [In Progress]](docs/backend/OPENVINO.md) | Intel CPUs, GPUs, and NPUs |

| RPC | All |

| SYCL | Intel GPU |

| VirtGPU | VirtGPU APIR |

| Vulkan | GPU |

| WebGPU | All |

| ZenDNN | AMD CPU |

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

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
  • stb-image - Single-header image format decoder, used by multimodal subsystem - Public domain
  • nlohmann/json - Single-header JSON library, used by various tools/examples - MIT License
  • miniaudio.h - Single-header audio format decoder, used by multimodal subsystem - Public domain
  • subprocess.h - Single-header process launching solution for C and C++ - Public domain

Related tools