Run powerful large language models locally-and turn llama.cpp into practical, private AI systems you can actually deploy.
llama.cpp Projects Handbook is a hands-on guide to running, optimizing, and building applications with local large language models using llama.cpp and GGUF. Instead of stopping at basic model execution, this book takes you from your first local inference session to a complete private AI platform with APIs, retrieval-augmented generation, controlled agents, performance tuning, security, monitoring, and deployment.
You will learn how to choose models that fit your hardware, understand GGUF, convert and quantize models, optimize inference across CPUs and GPUs, configure hybrid and multi-GPU workloads, benchmark performance, and serve models through llama-server.
Through five connected projects, you will build:
A private local AI assistantA browser-based local chat applicationA private document assistant using RAG, embeddings, semantic search, and rerankingA controlled tool-using AI agent with permissions and approval boundariesA production-ready private AI platform with authentication, observability, testing, and rollbackAlong the way, you will master chat templates, tokenization, sampling, context windows, KV cache management, structured JSON output, function calling, model adapters, CPU optimization, GPU acceleration, and model benchmarking.
Every important command, configuration, script, prompt, schema, and project component is included in the book, so you can follow the projects without depending on a companion repository.
Whether you are a developer, AI engineer, systems professional, researcher, DevOps engineer, or local AI enthusiast, this book gives you the practical skills to move beyond simply running a model and start engineering local AI systems that are measurable, secure, reproducible, and useful.
Build local AI on your hardware. Control your models. Protect your data. Measure performance. Deploy with confidence.