bbc64ca1c57b6b34bd61eb7eacfd4109d32691c5
With experts in host memory every host-weight MUL_MAT_ID starts its own split, and with one GPU the sched synchronizes before every expert copy, so upload and compute strictly alternate. A split whose inputs are all host weights, on the backend of the previous split, now gets its copies allocated before the previous split (so they share no memory with it) and issued right after the previous split is submitted. The copies wait on a backend event recorded before the previous split, i.e. for the splits whose memory they may reuse. On Vulkan with the transfer queue the upload then runs on the SDMA queue while the compute queue works. Knob: GGML_SCHED_EXPERT_LOOKAHEAD=0 restores upstream behaviour. Off with the MoE cache (the copy callback writes the cache banks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PZz44SLQvTXMyWGio6t9DZ
docs: FORK.md/runbook after the 2026-11-23 slimming deploy -
92fe769a0 in production, validation record, Inkling -tb 6
docs: FORK.md, runbook and AGENTS.md pointer for the slimmed branch (F1, F3, F15, #32777 carry and the bench harness removed)
docs: FORK.md/runbook after the 2026-11-23 slimming deploy -
92fe769a0 in production, validation record, Inkling -tb 6
tool-call: fix Qwen 2.5 Coder support, add micro benchmarks, support trigger patterns for lazy grammars (#12034)
llama.cpp
LLM inference in C/C++
v1.0.0 / ggml / ops / maintainer PRs / dev stats / lib llama API / llama-server REST API
Description
The main goal of llama.cpp is to enable LLM (and MLLM) inference with minimal setup and state-of-the-art performance on a wide range of hardware - locally and in the cloud.
The llama.cpp project is built on top of the ggml library.
Quick start
A few options to get llama.cpp installed on your machine:
# 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:
# 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
|
|
|
Documentation
Tools
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.cpprepo and merge PRs into themasterbranch - 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
Languages
C++
54.9%
C
16.7%
Python
7%
Cuda
5.6%
TypeScript
3.9%
Other
11.7%