Find a file
2026-08-17 23:52:00 +02:00
.devops ci: rm GGML_HIP_ROCWMMA_FATTN (#26760) 2026-08-09 18:15:28 +08:00
.gemini
.github ci: more optimizations (#26983) 2026-08-17 19:59:40 +00:00
.pi/gg ci : reduce builds in build-xcframework.sh (#27252) 2026-08-17 14:53:21 +03:00
app cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
benches benches : add Nemotron 3 Nano on DGX Spark (#20652) 2026-03-16 21:50:43 +02:00
ci tests : disable backend sampler hip multi output (#26878) 2026-08-11 07:21:32 +03:00
cmake cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
common ui: move get_datetime tool to frontend (#27255) 2026-08-17 14:33:55 +02:00
conversion model: support speculators-format checkpoints for DSpark (#26275) 2026-08-17 13:51:06 +02:00
docs model: support speculators-format checkpoints for DSpark (#26275) 2026-08-17 13:51:06 +02:00
examples mtmd: use sha256 for input hashing (#27274) 2026-08-17 21:20:12 +02:00
ggml cuda : skip UMA override for HIP builds (#27083) 2026-08-17 22:05:36 +05:30
gguf-py model: support speculators-format checkpoints for DSpark (#26275) 2026-08-17 13:51:06 +02:00
grammars docs : fix typos in CUDA-FEDORA.md and grammars/README.md (#24459) 2026-06-15 01:33:38 +08:00
include cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
licenses refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
media
models model: add Kimi-K3 text model (#26185) 2026-08-15 17:11:05 +02:00
pocs libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
requirements requirements: use stable torch packages on s390x (#26864) 2026-08-11 21:58:53 +08:00
scripts mtmd: use sha256 for input hashing (#27274) 2026-08-17 21:20:12 +02:00
skills fix: check gguf array type before reading (#27075) 2026-08-15 11:45:30 +02:00
src vocab : support integer tokenizer scores (#27260) 2026-08-17 20:13:15 +02:00
tests model : BailingMoE3 Support (#26608) 2026-08-17 09:49:49 +02:00
tools ui: enforce alphabetical enum member ordering (#27272) 2026-08-17 23:52:00 +02:00
vendor mtmd: use sha256 for input hashing (#27274) 2026-08-17 21:20:12 +02:00
.clang-format
.clang-tidy
.dockerignore docker : prebuild web UI for s390x build [no release] (#24829) 2026-06-20 05:54:42 -05:00
.ecrc
.editorconfig ui: Restructure repo to use tools/ui folder and ui / UI / llama-ui / LLAMA_UI naming (#23064) 2026-05-16 02:02:40 +02:00
.flake8
.gitignore ui: PWA support (#23871) 2026-06-12 15:53:26 +02:00
.gitmodules
.pre-commit-config.yaml
AGENTS.md agents: clarify comment style and jinja knowledge (#26405) 2026-08-01 18:45:46 +02:00
AUTHORS authors : update (#19263) 2026-02-02 08:51:25 +02:00
build-xcframework.sh ci : reduce builds in build-xcframework.sh (#27252) 2026-08-17 14:53:21 +03:00
CLAUDE.md
CMakeLists.txt mtmd: use sha256 for input hashing (#27274) 2026-08-17 21:20:12 +02:00
CMakePresets.json
CODEOWNERS HIP: remove rocWMMA FlashAttention (#26046) 2026-07-24 17:53:54 +02:00
CONTRIBUTING.md contrib : add guideline about the "merge ready" label (#26178) 2026-07-28 08:41:04 +03:00
convert_hf_to_gguf.py convert: add option to create separate dspark GGUF (#26452) 2026-08-02 23:16:31 +08:00
convert_hf_to_gguf_update.py Add support for Laguna XS.2 & M.1 (#25165) 2026-07-22 09:54:08 +08:00
convert_llama_ggml_to_gguf.py ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
convert_lora_to_gguf.py convert : fix lora base model arch retrieval (#24621) 2026-06-15 00:55:26 +02:00
flake.nix
LICENSE docs : Minor cleanups (#19252) 2026-02-02 08:38:55 +02:00
Makefile
mypy.ini
pyproject.toml model: add Mellum architecture (#23966) 2026-06-02 22:11:12 +03:00
pyrightconfig.json ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
README.md cmake : introduce semantic versioning (#26839) 2026-08-12 14:15:03 +02:00
requirements.txt
SECURITY.md security : clarify about AI-generated reports (#26579) 2026-08-05 13:27:06 +02:00
ty.toml mtmd : DeepSeek-OCR image processing fixes, img_tool::resize padding refactor (#23345) 2026-05-20 17:37:10 +02:00

llama.cpp

llama

Quick start

A few options to get llama.cpp installed on your machine:

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
VLM session with `llama cli` VLM session with llama cli Built-in web UI against `llama serve` running Qwen 3.6 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 Ascend NPU
CUDA Nvidia GPU
HIP AMD GPU
Hexagon [In Progress] Snapdragon
IBM zDNN IBM Z & LinuxONE
MUSA Moore Threads GPU
Metal Apple Silicon
OpenCL Adreno GPU
OpenVINO [In Progress] Intel CPUs, GPUs, and NPUs
RPC All
SYCL Intel GPU
VirtGPU VirtGPU APIR
Vulkan GPU
WebGPU All
ZenDNN AMD CPU

Documentation

Tools

Development

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