Favicon of llama.cpp

llama.cpp

An MIT-licensed local LLM engine runs language and vision-language models on CPUs or GPUs, with quantization, hybrid execution and Docker support.

Screenshot of llama.cpp website

llama.cpp is a local LLM inference engine for developers building AI applications or running models on hardware they control. It supports language and vision-language models, with command-line tools and a server API for using the engine directly or connecting other software.

  • CPU and GPU execution: Run models on CPUs or accelerate them with Apple Silicon, NVIDIA, AMD and Intel GPU backends.
  • Lower memory use: Quantized models reduce memory requirements, while hybrid CPU and GPU execution can partially accelerate models that exceed available video memory.
  • Application integration: Use the C/C++ library or server REST API as the model engine behind an application.
  • Constrained output: Grammar support lets developers restrict generated output to a defined structure.

The project is open source under MIT and builds on the ggml library. It supports local execution, Docker deployment and operation on cloud hardware you choose. Hardware support includes Metal for Apple Silicon, CUDA for NVIDIA, HIP for AMD, SYCL for Intel GPUs, and Vulkan. Available memory and backend support determine which models a machine can run.

Similar to llama.cpp