LLM inference in C/C++

★ 135,174⑂ 25,641👁 926⑃ 17,262● 10,872▤ 8,170
C++MITCreated 2023-03-10llama.app
Download: v1.0.0v1.0.0 ↓1.0.02026-11-13
+134
Daily
+1,381
Weekly
135,174
stars
25,641
forks
926
watchers
17,262
prs
10,872
issues
8,170
releases

README

llama.cpp

!llama.cpp



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:

bash
 curl
curl -LsSf https://llama.app/install.sh | sh

 powershell
irm https://llama.app/install.ps1 | iex


- 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:

sh
 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



    
        
            
            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

| Backend | Target devices |
| --- | --- |
| BLAS | All |
| BLIS | All |
| CANN | Huawei Ascend NPU |
| CUDA | Nvidia GPU |
| HIP | AMD GPU |
| Hexagon | 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
- Text-to-speech (TTS) models
- 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 HT

Top issues

Discussions

Latest release

v1.0.0 v1.0.0 2026-11-13
Blog post: https://huggingface.co/blog/ggml-org/llama-cpp-v1

 Overview

llama.cpp v1.0.0 removes the deprecated public API and promotes the NextN/speculative API to llama.h, adds OCP FP8 KV caches, a host-memory MoE expert cache with a configurable CPU share, and loading of external PLE shards. It adds three text architectures (Kimi-K3.1-Pro, Ripple and xing4_0), drama-3 TTS, and MageVL-Cowork and Kimi-K3.1 vision, hardens llama-server (SSRF, CORS, DNS rebinding, MCP tool cancellation) and adds a /v1/audio/speech endpoint, ships a redesigned web UI with chat groups and a markdown editor, 

News & coverage (20)

Hacker NewsGgml.ai joins Hugging Face to ensure the long-term progress of Local AI▲ 839 · 223 comments · 2026-02-20Hacker NewsVision Now Available in Llama.cpp▲ 550 · 104 comments · 2025-05-10Hacker NewsMistral Integration Improved in Llama.cpp▲ 95 · 15 comments · 2025-08-11Hacker NewsLlama.cpp: Add GPT-OSS▲ 35 · 0 comments · 2025-08-05Hacker NewsLLama.cpp Got Screwd▲ 11 · 5 comments · 2026-07-09Hacker NewsTell HN: Llamacpp now supports unified system RAM offloading on Linux▲ 6 · 0 comments · 2026-03-24Hacker NewsYet another reminder why you should not use Ollama▲ 6 · 5 comments · 2026-02-05Hacker NewsIs GitHub Releases Down?▲ 5 · 3 comments · 2025-06-17noteWhat's easier in llama.cpp v0.8.0? Finding models, long conversations, and things to watch out for after upgrading2026-10-29xBuild llama.cpp with DFlash 2 support (PR #27342): git clone2026-08-25
10 moreamdAccelerate llama.cpp on AMD EPYC: ZenDNN Delivers Up to 4.5x the Prompt Processing2026-08-18XDA DevelopersI ditched LM Studio for llama.cpp, and my local LLM doesn't feel like a downgrade anymore2026-05-23GIGAZINEFree software 'llama.cpp' that can run various AI models locally supports multimodal input and enables image explanations, etc.2025-05-12GIGAZINEIntel announces that 'Run llama.cpp Portable Zip on Intel GPU with IPEX-LLM', which allows various AIs to run on a local Windows PC, also supports DeepSeek2025-03-09GIGAZINE``llama.cpp'', which made Meta's large-scale language model ``LLaMA'' executable on a Mac with M1, can be executed with less than 6 GB of memory usage by updating2023-04-03KDnuggetsRun Muse Glimmer for Local Vibe Coding with llama.cpp, DFlash, and Pi2026-08-21SitePointRunning LLMs on Raspberry Pi and Edge Devices: A Practical Guide2026-02-25SitePointGGML Joins Hugging Face: What This Means for Local Model Optimization2026-02-22The RegisterHow to run LLMs on PC at home using Llama.cpp2025-08-24NVIDIA DeveloperOptimizing llama.cpp AI Inference with CUDA Graphs2024-08-07

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON