char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
8300f1411
char/aliceai-t5-moe
languages
- C++ 49.2%
- C 14.8%
- Python 7.5%
- Common Lisp 4.3%
- TypeScript 4.1%
- JSON 4.0%
- JavaScript 3.9%
- Markdown 2.6%
- Svelte 2.0%
- HTML 1.9%
- Jinja 1.1%
- GLSL 0.9%
- YAML 0.8%
- Shell 0.8%
- CMake 0.7%
- MATLAB 0.3%
- XML 0.3%
- Kotlin 0.2%
- Dockerfile 0.1%
- Swift 0.1%
- Vim script 0.1%
- Nix 0.1%
- CSS 0.1%
- Batchfile 0.0%
- Makefile 0.0%
- TOML 0.0%
- PowerShell 0.0%
- Prolog 0.0%
- INI 0.0%
- SCSS 0.0%
- Assembly 0.0%
files
| .devops/ | |
| .gemini/ | |
| .github/ | |
| .pi/gg/ | |
| app/ | |
| benches/ | |
| ci/ | |
| cmake/ | |
| common/ | |
| conversion/ | |
| docs/ | |
| examples/ | |
| ggml/ | |
| gguf-py/ | |
| grammars/ | |
| include/ | |
| licenses/ | |
| media/ | |
| models/ | |
| pocs/ | |
| requirements/ | |
| scripts/ | |
| skills/ | |
| src/ | |
| tests/ | |
| tools/ | |
| vendor/ | |
| .clang-format | 4.8 KiB |
| .clang-tidy | 931 B |
| .dockerignore | 261 B |
| .ecrc | 97 B |
| .editorconfig | 1.2 KiB |
| .flake8 | 565 B |
| .gitignore | 1.7 KiB |
| .gitmodules | 0 B |
| .pre-commit-config.yaml | 447 B |
| AGENTS.md | 11.9 KiB |
| AUTHORS | 87.2 KiB |
| CLAUDE.md | 106 B |
| CMakeLists.txt | 10.7 KiB |
| CMakePresets.json | 4.5 KiB |
| CODEOWNERS | 6.4 KiB |
| CONTRIBUTING.md | 12.5 KiB |
| LICENSE | 1.1 KiB |
| Makefile | 257 B |
| README.md | 7.2 KiB |
| SECURITY.md | 7.3 KiB |
| build-xcframework.sh | 24.3 KiB |
| convert_hf_to_gguf.py | 12.7 KiB |
| convert_hf_to_gguf_update.py | 27.9 KiB |
| convert_llama_ggml_to_gguf.py | 18.7 KiB |
| convert_lora_to_gguf.py | 22.7 KiB |
| flake.nix | 7.1 KiB |
| mypy.ini | 163 B |
| pyproject.toml | 1.9 KiB |
| pyrightconfig.json | 696 B |
| requirements.txt | 551 B |
| ty.toml | 643 B |
llama.cpp
<b>LLM inference in C/C++</b>
ggml / ops / maintainer PRs / dev stats / 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:
<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># 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
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 | 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
- 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