Home Knowledge Base llama.cpp

llama.cpp is a C/C++ library for running large language model inference on consumer hardware with high performance — created by Georgi Gerganov to demonstrate that Meta's LLaMA models could run on a MacBook, it has grown into the most widely used local LLM inference engine, powering Ollama, LM Studio, GPT4All, and dozens of other tools through its efficient CPU/GPU inference, 4-bit quantization (GGUF format), and zero-dependency design that requires no Python or PyTorch installation.

What Is llama.cpp?

Key Features

llama.cpp Model Compatibility

Model FamilySupportedPopular GGUF Variants
LLaMA 2/3YesQ4_K_M, Q5_K_M, Q8_0
Mistral/MixtralYesQ4_K_M, Q5_K_M
Phi-2/3YesQ4_K_M, Q8_0
Gemma/Gemma 2YesQ4_K_M, Q5_K_M
Qwen 1.5/2YesQ4_K_M, Q5_K_M
Command RYesQ4_K_M
StarCoder 2YesQ4_K_M, Q8_0

llama.cpp is the inference engine that democratized local LLM access — by providing efficient C/C++ inference with aggressive quantization and zero dependencies, llama.cpp made it possible for anyone with a modern laptop to run powerful language models privately, spawning an entire ecosystem of user-friendly tools built on its foundation.

llama cpplocalefficient

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.