#1 Best Seller in Parallel Computer Programming

Distributed AI
Systems

A practical guide to building scalable training, inference, and serving systems for production AI β€” by Fuheng Wu, published by Packt.

11 Chapters
4.8β˜… Amazon Rating
#1 Bestseller Rank
2026 Packt Publishing
Distributed AI Systems book cover

#1 Best Seller & Top Rankings on Amazon

Ranked #1 across Parallel Programming, Memory Management, and AI Infrastructure categories.

One Path From Training to Production

Large AI models now reach billions or even trillions of parameters. Training and serving them is no longer a single-GPU exercise β€” it's a distributed systems problem.

Many resources explain one layer well: a training framework here, an inference engine there, a Kubernetes guide somewhere else. What's been missing is a single path from distributed training through inference to production serving, with runnable code you can execute on your own hardware. This book is that path.

The goal is not to memorize APIs, but to build intuition: why gradient synchronization hangs, when FSDP beats DDP, how PagedAttention changes serving economics, what to profile before you tune. Work through the examples chapter by chapter and you'll be able to scale workloads from a single GPU to a multi-node cluster, and deploy inference systems that are faster, more memory-efficient, and easier to operate. Frameworks will keep evolving; the systems patterns in this book are what endure.

🧠

Distributed Training

PyTorch DDP, FSDP, DeepSpeed ZeRO, and Megatron-style tensor, pipeline, and expert parallelism β€” and when to choose each.

⚑

Distributed Inference

PagedAttention, continuous batching, radix attention, and router-based serving with vLLM and SGLang.

πŸ› οΈ

Production Serving

Multi-node training on SLURM clusters, plus a complete Kubernetes serving stack with GPU scheduling and observability.

πŸ“Š

Benchmarking & Tuning

Systematic performance methodology, profiling tools, and what to measure before you optimize.

What This Book Covers

Eleven chapters, each with hands-on code, taking you from resource estimation to a production-grade serving stack.

01

Introduction to Modern Distributed AI

Resource estimation, data preparation, and your first distributed training example with PyTorch.

PyTorch Resource Estimation GPU Memory
02

GPU Hardware, Networking, and Parallelism Strategies

GPU architecture, high-speed interconnects (NVLink/InfiniBand), and the parallelism strategies used throughout the book.

Hardware NVLink Interconnects
03

Distributed Training with PyTorch DDP

Data parallelism on single-node and multi-node clusters, including gradient bucket debugging and performance tuning.

DDP All-Reduce Bucketing
04

Scaling with Fully Sharded Data Parallel (FSDP)

Parameter sharding, hybrid sharding, activation checkpointing, and mixed precision for memory-efficient training.

FSDP Zero Redundancy Sharding
05

Beyond State Sharding with DeepSpeed and Megatron

DeepSpeed ZeRO stage 1-3 optimization and Megatron-style tensor, pipeline, and mixture-of-experts (MoE) parallelism.

DeepSpeed Megatron-LM Tensor Parallel
06

Distributed Inference and vLLM

Inference fundamentals, PagedAttention, continuous batching, KV caching, and tensor/expert parallelism for serving.

vLLM PagedAttention Continuous Batching
07

Cross-Request Optimization with SGLang

Structured generation, radix attention cache sharing, and router-based serving optimizations across requests.

SGLang RadixAttention Router
08

Running Distributed Training with SLURM

Launching, monitoring, and managing resilient multi-node training jobs on HPC SLURM clusters.

SLURM HPC Multi-Node
09

Production LLM Serving Stack

A complete serving stack with Kubernetes, GPU scheduling, dynamic routing, health checks, and observability.

Kubernetes Observability Production
10

Distributed Benchmarking and Performance Optimization

Benchmarking methodologies, PyTorch Profiler, Nsight Systems, and systematic bottleneck elimination.

Profiling Nsight Optimization
11

The Evolving Landscape of Distributed AI

Emerging trends including ultra-large MoE architectures, edge–cloud coordination, and future systems directions.

MoE Edge AI Future Architecture

What AI Engineers & Platform Leads Are Saying

Real feedback, verified Amazon purchases, and LinkedIn recommendations from engineers building distributed AI systems.

CM

Chorouk Malmoum

Founder, AgentX Academy • AI & Automation Insights

β˜…β˜…β˜…β˜…β˜…
August 2026
Chorouk Malmoum review screenshot

"Stop Training on a Single GPU and Hoping It Scales"

"Stop training AI on a single GPU and hoping it scales. This book teaches you to build distributed systems that go from one GPU to massive clusters + FREE code repo. Essential reading for anyone deploying production AI infrastructure."

SF

Suphan Fayong

Software Engineer • Spacecraft Systems & Distributed Software

β˜…β˜…β˜…β˜…β˜…
August 2026
Suphan Fayong review screenshot

"Efficiency in Large-Scale GPU Training and Serving"

"Using multiple GPUs to train models or serve production workloads is expensive. It's your responsibility to be super efficient. There is a whole engineering layer to distributed AI that standard ML courses never touch. This book is a practical bridge between GPU hardware and distributed systems."

VG

Vaibhav Gupta

Software Engineer • Linux Kernel & Systems Programming

β˜…β˜…β˜…β˜…β˜…
August 2026
Vaibhav Gupta review screenshot

"Demystifying the Distributed AI Iceberg"

"I have been working on embedded systems, Linux and low-level software for quite some time, but distributed AI is one of those areas where I have always felt that we see only the tip of the iceberg. This book opens up the entire lifecycle of GPU hardware, interconnects, and scalable cluster orchestration."

PW

Peng Wang (ηŽ‹ιΉ)

Global Data Product Lead • Carlsberg Group | 2025 UK Data Award Winner

β˜…β˜…β˜…β˜…β˜…
August 2026
Peng Wang (ηŽ‹ιΉ) review screenshot

"A Brilliant Fusion of Theory and Large-Scale Practice"

"Large-scale training and serving of AI models is entirely different from local prototype development. This book combines deep systems theory with production practice with exceptional brilliance β€” the single most comprehensive blueprint for scalable AI."

SG

Santanu Ganguly

Verified Purchaser • GPU Infrastructure & Systems

β˜…β˜…β˜…β˜…β˜…
July 30, 2026
Santanu Ganguly review screenshot

"Understand how the entire distributed-training stack fits together"

"This 558 page book is a strong architectural and practical bridge between GPU infrastructure and distributed-training software. Its greatest strength is that it does not present FSDP, ZeRO and NVIDIA's Megatron as unrelated products. Instead, it builds a coherent model around associated components: state sharding, computation sharding, networking primitives (NCCL, NVLink), and Megatron-FSDP."

JB

Jacob B.

Senior Systems Engineer • Cloud & HPC Infrastructure

β˜…β˜…β˜…β˜…β˜…
July 11, 2026
Jacob B. review screenshot

"The Missing Systems Perspective for AI Engineers"

"Many AI books explain models, algorithms, or frameworks. This one explains what happens when those models meet real hardware, real networks, and real production constraints. Compute, memory, communication, storage, scheduling, and serving all affect one another. For backend, cloud, or HPC engineers wanting to enter AI infrastructure, this is an excellent bridge."

WL

Wendy Li

ML Infrastructure Engineer (7+ Years) • Production AI Platform

β˜…β˜…β˜…β˜…β˜…
July 10, 2026
Wendy Li review screenshot

"A Comprehensive Masterclass in Distributed AI Systems"

"This is the book I wish I had when I started building production AI systems. Most books cover either training OR inference, but never both. This book takes you on a complete journeyβ€”from estimating GPU requirements and hardware topology, through distributed training with PyTorch DDP/FSDP, all the way to production serving with vLLM, SGLang, and Kubernetes."

SE

Sergio

Platform Infrastructure Architect • Cloud & Container Platforms

β˜…β˜…β˜…β˜…β˜…
August 11, 2026
Sergio review screenshot

"A Must-Read for Scaling AI to Production"

"Finding a comprehensive guide that takes AI from experimental training to a robust, production-ready distributed system is rare. This book perfectly bridges the gap between machine learning and platform engineering. The deep dives into GPU hardware, memory management, and practical orchestration using tools like vLLM, DeepSpeed, and SLURM are incredibly well-structured."

GZ

Gang

Distributed Systems Engineer • AI Systems & Networking

β˜…β˜…β˜…β˜…β˜…
July 11, 2026
Gang review screenshot

"A Practical Reference You'll Keep Coming Back To"

"What impressed me most about this book isn't just the technical depthβ€”it's how well the material is organized. Distributed AI can be overwhelming because there are so many moving parts. This book builds that mental model step by step with working code and practical examples, explaining why you would choose one approach over another."

OS

Om S

Infrastructure Engineer • Large-Scale AI Workloads

β˜…β˜…β˜…β˜…β˜…
July 6, 2026
Om S review screenshot

"Bridges Machine Learning Theory and Hardcore Engineering"

"Distributed AI Systems bridges the gap between basic machine learning theory and the hardcore engineering needed to run massive models in the real world. It kicks off with a grounded look at GPU hardware, networking, and memory estimation so you understand the physical bottlenecks before scaling up."

Every Chapter Runs

Clone the official example code repository and work through each chapter's exercises in order β€” early chapters establish hardware and parallelism concepts that later chapters build on.

  • βœ“ Runnable on a single GPU, scales to multi-node clusters
  • βœ“ No local GPU? Use cloud notebooks (e.g. Kaggle) for early chapters
  • βœ“ SLURM or local Kubernetes for cluster-focused chapters
  • βœ“ Companion MockSphere questions & mind maps in Member Portal
View Repository on GitHub Explore Chapter Mind Maps
get_started.sh
# Clone the official example code
$ git clone https://github.com/PacktPublishing/Distributed-AI-Systems
$ cd Distributed-AI-Systems

[SUCCESS] 11 chapters of runnable, hands-on examples.
[INFO] Start with Chapter 1 β€” resource estimation & first PyTorch job.
[INFO] Later chapters: multi-node training, vLLM/SGLang serving, K8s.

Prerequisites: Python + PyTorch, Linux, one NVIDIA GPU (min).
# Latest code always kept in sync with the book on GitHub.

From the Foreword

"Distributed AI Systems is the comprehensive blueprint the industry has desperately needed β€” and the book I wish Fuheng had written years ago. He has demystified the black box of infrastructure engineering for AI, treating training, inference, and cluster management not as isolated domains, but as an integrated lifecycle."

Gang Zhao Staff Engineer at NVIDIA, Anyscale, Meta, Uber

Fuheng Wu

Fuheng Wu

Fuheng Wu is a Principal ML Tech Lead at Oracle Generative AI, specializing in distributed training, inference, and GPU systems for enterprise AI workloads. He delivered core components of Oracle's large-scale vision and document-AI models, and co-authored a Microsoft-Oracle blog on deep learning.

An alumnus of the Singapore-MIT Alliance, where he studied under Gilbert Strang, he has worked at NetEase and Uber and contributed to open-source AI projects including SGLang, genai-bench, pyLLaMA, chatLLaMA, and HiQ. He is also the author of Mathematics for AI and Machine Learning, and β€” writing as Xuan Xin β€” the memoir Above the Clouds. Beyond technology, he is a Zen calligrapher and volunteer math tutor.

Book 1-on-1 Consultation with Fuheng Wu β†’

Get in Touch & Stay Connected

Feedback from readers is always welcome.

βœ‰οΈ

General Feedback

Questions about the book? Email customercare@packtpub.com.

πŸ›

Errata & Corrections

Found a mistake? Report it at packtpub.com/support/errata.

πŸ’¬

Ask the Author Directly

Have a deep systems question? Leave a message in the Members Portal.

Ready to Build Production-Grade AI Systems?

Free with your book: DRM-free companion resources, high-res diagrams, and MockSphere interview questions.