Skip to content

llama.cpp

← All terms · Local models and inference

A highly optimized, bare-metal C/C++ library designed to run AI model inference efficiently on consumer hardware, particularly MacBooks and standard CPUs.

What it is

llama.cpp strips away heavy machine learning frameworks like PyTorch to run inference with minimal overhead. It leverages Apple Silicon (Metal) and advanced quantization techniques (GGUF) to allow massive models to run smoothly on machines that lack enterprise-grade NVIDIA GPUs. It serves as the underlying engine for many user-friendly tools like Ollama.

When you would use it

You use llama.cpp directly when you need maximum performance, memory efficiency, and granular control over how a local model executes on restricted hardware.

Common operations

  • Compiling a customized inference engine for edge devices.
  • Running large Llama models on consumer Mac hardware.

Related terms

Where this is taught