Scaling Production-Ready AI Workloads
eBook - ePub

Scaling Production-Ready AI Workloads

A Systems Engineering Guide to Measuring and Improving Model Training and Inference With GPUs

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Scaling Production-Ready AI Workloads

A Systems Engineering Guide to Measuring and Improving Model Training and Inference With GPUs

About this book

Your model works. It is also three times slower and five times more expensive than it needs to be, and nobody on the team can say why.

Most AI performance problems are not solved by trying random optimisations until something improves. They are solved by building a model of the workload, measuring where time and memory actually go, and then applying the right fix to the right bottleneck. This book gives you that method. You will learn to construct a roofline for a real workload, classify whether it is compute-bound, memory-bound, or communication-bound, and only then reach for a fix. That discipline separates teams that ship reliable, cost-effective systems from teams that keep guessing.

Starting from GPU architecture and profiling fundamentals, the book moves through the full stack of production AI systems. You will profile kernels and input pipelines, adopt reduced precision without silently losing accuracy, fuse operators, and choose intelligently between data, tensor, pipeline, and sharded-optimiser parallelism once communication starts dominating. On the serving side, you will implement continuous batching, manage the key-value cache, apply quantisation and distillation with measured trade-offs, and size capacity against real latency objectives. Every technique is presented with the measurement that tells you whether it worked.

What you will learn:

• Build a performance model that predicts whether a workload is compute-, memory-, or communication-bound before you change a line of code
• Profile GPU kernels and data pipelines to find the real bottleneck instead of the assumed one
• Keep accelerators fed with input pipelines that do not stall on I/O or preprocessing
• Apply mixed precision and numerical techniques without degrading model quality
• Optimise at the kernel level through operator fusion and memory-aware implementation
• Choose between data, tensor, pipeline, and sharded-optimiser parallelism as communication begins to dominate
• Measure and improve interconnect and scaling efficiency across multi-GPU and multi-node training
• Design inference serving with continuous batching, key-value cache management, and quantisation or distillation trade-offs
• Size capacity and cost against explicit latency and service objectives, then operate the system in production

For machine learning engineers, platform and systems engineers, and technical leads running training or inference at scale, this is the systems engineering guide that turns performance work from folklore into a repeatable engineering practice.

Information

Table of contents

  1. Foreword
  2. Preface
  3. About This Book
  4. Chapter 1: A Performance Model for AI Systems
  5. Chapter 2: GPU Architecture for Systems Engineers
  6. Chapter 3: Measure Before You Optimise
  7. Chapter 4: Data Pipelines That Keep Accelerators Fed
  8. Chapter 5: Mixed Precision and Numerics
  9. Chapter 6: Kernel-Level Optimisation
  10. Chapter 7: Distributed Training Strategies
  11. Chapter 8: Interconnect and Scaling Efficiency
  12. Chapter 9: Checkpointing and Fault Tolerance
  13. Chapter 10: Inference Serving Architecture
  14. Chapter 11: Model Compression
  15. Chapter 12: Capacity, Cost, and Service Objectives
  16. Chapter 13: Production Operations
  17. Conclusion
  18. Acknowledgements
  19. Glossary
  20. Sources and Further Reading
  21. About the Author
  22. A Request from the Author

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Scaling Production-Ready AI Workloads by Kenji Watanuki, Artificial intelligence in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over 1.5 million books available in our catalogue for you to explore.