Price: $59.99 - $47.00
(as of Jun 13, 2025 13:33:05 UTC – Details)
Goes beyond academic discussions deeply into the applications layer of Foundation Models.
This practical book offers clear, example-rich explanations of how LLMs work, how you can interact with them, and how to integrate LLMs into your own applications. Find out what makes LLMs so different from traditional software and ML, discover best practices for working with them out of the lab, and dodge common pitfalls with experienced advice.
In LLMs in Production you will:
• Grasp the fundamentals of LLMs and the technology behind them
• Evaluate when to use a premade LLM and when to build your own
• Efficiently scale up an ML platform to handle the needs of LLMs
• Train LLM foundation models and finetune an existing LLM
• Deploy LLMs to the cloud and edge devices using complex architectures like PEFT and LoRA
• Build applications leveraging the strengths of LLMs while mitigating their weaknesses
LLMs in Production delivers vital insights into delivering MLOps so you can easily and seamlessly guide one to production usage. Inside, you’ll find practical insights into everything from acquiring an LLM-suitable training dataset, building a platform, and compensating for their immense size. Plus, tips and tricks for prompt engineering, retraining and load testing, handling costs, and ensuring security.
Foreword by Joe Reis.
Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications.
About the technology
Most business software is developed and improved iteratively, and can change significantly even after deployment. By contrast, because LLMs are expensive to create and difficult to modify, they require meticulous upfront planning, exacting data standards, and carefully-executed technical implementation. Integrating LLMs into production products impacts every aspect of your operations plan, including the application lifecycle, data pipeline, compute cost, security, and more. Get it wrong, and you may have a costly failure on your hands.
About the book
LLMs in Production teaches you how to develop an LLMOps plan that can take an AI app smoothly from design to delivery. You’ll learn techniques for preparing an LLM dataset, cost-efficient training hacks like LORA and RLHF, and industry benchmarks for model evaluation. Along the way, you’ll put your new skills to use in three exciting example projects: creating and training a custom LLM, building a VSCode AI coding extension, and deploying a small model to a Raspberry Pi.
What’s inside
• Balancing cost and performance
• Retraining and load testing
• Optimizing models for commodity hardware
• Deploying on a Kubernetes cluster
About the reader
For data scientists and ML engineers who know Python and the basics of cloud deployment.
About the author
Christopher Brousseau and Matt Sharp are experienced engineers who have led numerous successful large scale LLM deployments.
Table of Contents
1 Generative AI: Why large language models have captured attention
2 Large language models: A deep dive into language modeling
3 Large language model operations: Building a platform for LLMs
4 Data engineering for large language models: Setting up for success
5 Training large language models: How to generate the generator
6 Large language model services: A practical guide
7 Prompt engineering: Becoming an LLM whisperer
8 Applications and Agents: Building an interactive experience
9 Creating an LLM project: Reimplementing Llama 3
10 Creating a coding copilot project: Integrating an LLM service into VS Code with RAG
11 Deploying an LLM on a Raspberry Pi: How low can you go?
12 Production, an ever-changing landscape: Things are just getting started
A History of linguistics
B Reinforcement learning with human feedback
C Multimodal latent spaces
From the Publisher


“Covers all the essential aspects of how to build and deploy LLMs. It goes into the deep and fascinating areas that most other books gloss over.”
Andrew Carr, Cartwheel

“A must-read for anyone looking to harness the potential of LLMs in production environments.”
Jepson Taylor, VEOX Inc.

“An exceptional guide that simplifies the building and deployment of complex LLMs.”
Arunkumar Gopalan, Microsoft UK

why this book?
LLMs in Production provides a comprehensive, hands-on guide for deploying large language models (LLMs) in real-world applications, bridging the gap between experimentation and production.
The book equips you with practical strategies for training, fine-tuning, and deploying LLMs using techniques like LoRA and RLHF, while addressing challenges such as cost optimization, latency, and security.
By offering real-world examples and best practices, the book empowers ML engineers and data scientists to effectively integrate LLMs into scalable, efficient, and secure production systems.
Chapter 1: Words’ Awakening: Why Large Language Models Have Captured Attention Takes you through the historical significance of how humans share information—drawing an analogy to Gutenberg’s printing press—and explains why these models that can generate and interpret text so well have captured everyone’s imagination. It also weighs the pros and cons of deploying your own LLMs versus using existing services.
Chapter 2: Large Language Models: A Deep Dive into Language Modeling Provides the foundation for how computers handle language—from counting words (like in simple bag-of-words) all the way to sophisticated transformer-based methods. By the end of it, you’ll see how modern LLMs stitch together meaning from massive amounts of data and why that leap was such a big deal in NLP.
Chapter 3: Large Language Model Operations: Building a Platform for LLMs Pulls back the curtain on the practicalities of running LLMs at scale—covering infrastructure, hardware needs, and the nuts and bolts of large-model “DevOps.” It highlights challenges like high latency and GPU management, and shows how modern data pipelines evolve to handle these demands.
Chapter 4: Data Engineering for Large Language Models: Setting Up for Success Explores how high-quality data is just as critical as fancy model architectures. You’ll learn about available datasets, how to clean and prep them, and which industry benchmarks help you figure out if a model is doing well. It also covers specialized tools like text processors.
Chapter 5: Training Large Language Models: How to Generate the Generator Dives into the details of training, from multi-GPU environments to transfer learning. Different approaches—like finetuning with knowledge distillation and using LoRA or parameter-efficient finetuning—come to life. This chapter reveals how an LLM improves its capabilities through data.
Chapter 6: Large Language Model Services: A Practical Guide Shows how to wrap LLMs in a service so you can interact with them over APIs. You’ll learn how to store and load huge models efficiently, handle incoming requests without overloading resources, and augment the model’s responses by retrieving external context. It’s about building a stable environment so the LLM can do real work.
Chapter 7: Prompt Engineering: Becoming an LLM Whisperer Covers how to formulate requests in a way that gets better, more precise answers from an LLM. Basic prompt techniques come first, then more advanced ideas like using ReAct-style prompts and letting the model call external tools. You’ll see prompt design as an interplay between language, context, and software.
Chapter 8: Large Language Model Applications: Building an Interactive Experience Walks you through designing end-user applications—like chatbots that remember conversation state, or knowledge-extraction interfaces that deal with large amounts of text. It introduces token-tracking strategies, streaming responses, and RAG – methods for weaving user queries together with relevant data.
Chapter 9: Creating an LLM Project: Reimplementing Llama 3 Offers a hands-on experience: you build a simplified version of a state-of-the-art model from scratch. You’ll set up its architecture, tokenization, and basic evaluation, then get tips on improving it with techniques like quantization. It’s a peek under the hood of what an industrial research lab might do.
Chapter 10: Creating a Coding Copilot Project: This Would Have Helped You Earlier Focuses on turning an LLM into a programming assistant that can generate code snippets or explain logic. You’ll combine retrieval-augmented generation with embeddings, stitch it all together in an IDE plugin, and see how an AI model can become a companion for software development.
Chapter 11: Deploying an LLM on a Raspberry Pi: How Low Can You Go? Explores edge computing: shrinking a big model down so it runs on minuscule hardware. It walks through installing necessary libraries on a Raspberry Pi, quantizing the model to reduce its size, and optimizing performance so that the Pi can handle local inference at small scale.
Chapter 12: Production, an Ever-Changing Landscape: Things Are Just Getting Started Wraps up by surveying where the field might go next—larger models, clever new architectures, or advanced regulation. It posits that though LLMs have come a long way, future breakthroughs—like fully solving hallucinations or developing “agents” that handle tasks autonomously—are likely just around the corner.
Add to Cart
Add to Cart
Add to Cart
Add to Cart
Add to Cart
Add to Cart
Customer Reviews
4.6 out of 5 stars 205
4.4 out of 5 stars 10
4.7 out of 5 stars 4
4.8 out of 5 stars 5
5.0 out of 5 stars 1
3.9 out of 5 stars 5
Price
$47.40$47.40 $49.49$49.49 $59.99$59.99 $69.12$69.12 $39.99$39.99 $53.04$53.04
Level of proficiency
Intermediate Intermediate Intermediate Intermediate Intermediate Advanced
About the reader
Readers need intermediate Python skills and some knowledge of machine learning. For intermediate Python programmers. For intermediate Python programmers. For developers, engineers, and product managers. For data scientists and data analysts. For data scientists and machine learning engineers.
Special features
Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant.
Pages
368 344 688 328 232 520
Publisher : Manning
Publication date : February 11, 2025
Language : English
Print length : 456 pages
ISBN-10 : 1633437205
ISBN-13 : 978-1633437203
Item Weight : 1.65 pounds
Dimensions : 7.38 x 1 x 9.25 inches









