New to Artificial Intelligence? Read the Artificial Intelligence article
About the Book Running an LLM is one problem. Understanding its memory footprint, execution phases, and serving behavior is another.LLM Inference Engine Architecture explores the engineering behind language-model inference—from prefill and decode to KV-cache management, attention kernels, quantization, and request scheduling.Written for software engineers and ML engineers with a working knowledge of Python and transformer fundamentals, the book connects mathematical explanations with implementation examples and serving-system design considerations.What You Will ExploreInference fundamentals: Trace the request lifecycle and understand the different computational characteristics of prefill and decode.Memory budgeting: Work through model-weight and KV-cache estimates, including the effects of context length, KV-head count, precision, and concurrent sequences.Attention and memory management: Explore PagedAttention, non-contiguous KV allocation, and the relationship between attention computation and memory access.Quantization: Examine weight and KV-cache precision choices, including FP8 and low-bit weight-quantization approaches.Serving architecture: Study continuous batching, request scheduling, multi-GPU execution, and latency and throughput metrics.Kernel development: Explore CUDA and Triton concepts, kernel fusion, and a quantized matrix-multiplication case study.The book includes numerical examples, reference code, and an educational asynchronous serving simulator. These examples are intended to explain mechanisms and trade-offs—not to replace hardware-specific profiling or production validation.Read the sample to review the mathematical level, coding style, and scope before purchasing.
Stop asking one giant prompt to carry your whole software system. Context Driven Development teaches you how to give AI coding agents explicit requirements, architecture decisions, constraints, tasks, and verification loops so they can work inside a reliable engineering environment.
Agentic AI is everywhere, but what does it actually mean? This book cuts through the hype and explains how AI agents work, how they are built and where they can go wrong. Starting from the basics, it gives you a clear, practical understanding of the technology and what it takes to trust an agent in the real world.
Nine small LangGraph agents, each adding one guardrail: PII, financial actions, risk routing, human approval, memory, retrieval, plans, output and cumulative limits. Plain Python, fully tested, no theory.
This book shows you how.What you'll be able to do:Say what one resolved ticket, generated report, or active customer actually costs youFind where the money goes in a real system, in about an hourCut your bill by 40% to 70% without making the product worse, and prove it didn'tStop a code change from tripling your costs before it shipsWalk into a budget meeting with a number and an argument instead of an apology What's inside: sixteen chapters. Measure what you're paying for. Apply six levers, ordered by how much they pay back. Then keep the savings from creeping away, which is the part that decides whether any of this survives the year.
AI is changing how we work, learn and live, but understanding it does not have to be complicated. This practical guide explains how modern AI and LLMs work, what they can do, where they fall short and how to use them effectively without the hype.
Stop guessing at prompts. This visual workbook gives you 50 ready-to-run workflows, command cheatsheets, and debugging checklists for Claude Code, Cursor, and GitHub Copilot — so you can open any page and immediately know what to type.
Build AI agents that actually hold up in production. This practical guide covers agent architecture, tool use, multi-agent systems, security, reliability, observability and operations, with working code throughout. Learn how to build agents that are dependable, cost-aware and ready for the real world.
A system-first engineering guide to building, deploying, operating, and securing production-grade Kubernetes clusters, cloud-native platforms, and AI inference workloads.
Written for people who never asked to become AI users and now are. Not a tour of the technology, but a practical guide to working with it well — the habits that make good results repeatable, and the judgement to know when to check.
Master deep learning with PyTorch & Lightning. Core concepts, practical Q&A, and production-ready code with a full companion GitHub repository.
AI can sound certain even when it is completely wrong. This book takes a practical approach to building RAG systems and AI agents that ground answers in evidence, verify what they generate and know when to stop. Learn how to make AI more reliable in the places where getting it wrong really matters.
AI models do not have to be huge, slow or expensive. Distilling Intelligence explores how to build smaller models that perform at scale, then secure the APIs that serve them. From compression and distributed serving to extraction attacks, observability and incident response, this book covers what it takes to run AI reliably in the real world.