The llama.cpp project provides a high-performance C/C++ implementation designed for efficient Large Language Model (LLM) and Vision Language Model (VLM) inference across diverse hardware architectures. Built upon the ggml library, the framework enables local and cloud-based deployment with minimal setup by utilizing a dependency-free codebase. To optimize performance, the project supports a wide array of instruction sets and backends, including ARM NEON, Accelerate, and Metal for Apple Silicon, as well as AVX, AVX2, AVX512, and AMX for x86 architectures. It also extends support to RISC-V via RVV, ZVFH, ZICBOP, and ZIHINTPAUSE, and provides specialized kernels for NVIDIA (CUDA), AMD (HIP), Moore Threads (MUSA), and various other backends like Vulkan, SYCL, and WebGPU. A core technical feature is its comprehensive quantization support, allowing for 1.5-bit, 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit integer quantization to significantly reduce memory overhead and accelerate inference speeds. Additionally, the project facilitates CPU+GPU hybrid inference to run models exceeding total VRAM capacity. Users can interact with the system via a command-line interface, a built-in web UI, or an OpenAI-compatible REST API provided by the llama-server, which utilizes the cpp-httplib library.
Read original
github-trending/cpp