Items related to LLM Inference Engineering: From KV Cache to Production...

LLM Inference Engineering: From KV Cache to Production Serving: A Practical Guide, Basics to Advanced - Softcover

Nainwal, Shashank

 
9798178522462: LLM Inference Engineering: From KV Cache to Production Serving: A Practical Guide, Basics to Advanced

Synopsis

Make your large language models faster, cheaper, and ready for production.

Training a model happens once. Serving it happens every time someone uses your product, and that is where most AI budgets go. This book explains, step by step, what really happens when an LLM generates text and how engineers make it fast and affordable at scale.

Starting from a single question, "what happens when a model produces one token?", you will build a complete mental model of modern inference, from first principles to production deployment.

What you will learn


  • Why decoding is memory-bound, and how to predict speed and cost with simple napkin math

  • The KV cache, PagedAttention, FlashAttention, and GQA/MQA/MLA explained in plain language

  • Continuous batching, chunked prefill, speculative decoding, and prompt caching

  • Quantization (FP8, INT4, GPTQ, AWQ), distillation, Mixture of Experts, and model routing

  • Tensor, pipeline, and expert parallelism, plus disaggregated serving and long context

  • How modern serving engines and the GGUF format work, and when to choose each

  • How GPUs and TPUs work, and how to compare accelerators for inference

  • Benchmarking, observability, cost modeling, and capacity planning



Inside the book


  • 27 chapters across 8 parts, from basics to advanced

  • 29 original diagrams

  • Key takeaways and quiz questions in every chapter, with an answer key

  • 3 hands-on labs you can run on a laptop or a single GPU

  • 25 interview questions with model answers

  • A formula cheat sheet, glossary, and curated list of foundational papers



Who this book is for

Software and ML engineers, platform and MLOps engineers, solution architects, technical product managers, and anyone preparing for AI infrastructure interviews. You need basic Python and a rough idea of what a neural network is. No CUDA or GPU required.

Written by an AI architect and former Amazon Web Services engineer who has built LLM applications serving millions of customers.

"synopsis" may belong to another edition of this title.