Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
LLM Design Patterns: A Practical Guide to Building Robust and Efficient AI Systems
Purchase options and add-ons
Explore reusable design patterns, including data-centric approaches, model development, model fine-tuning, and RAG for LLM application development and advanced prompting techniques
Free with your book: PDF Copy, AI Assistant, and Next-Gen Reader
Key Features
- Learn comprehensive LLM development, including data prep, training pipelines, and optimization
- Explore advanced prompting techniques, such as chain-of-thought, tree-of-thought, RAG, and AI agents
- Implement evaluation metrics, interpretability, and bias detection for fair, reliable models
Book Description
This practical guide for AI professionals enables you to build on the power of design patterns to develop robust, scalable, and efficient large language models (LLMs). Written by a global AI expert and popular author driving standards and innovation in Generative AI, security, and strategy, this book covers the end-to-end lifecycle of LLM development and introduces reusable architectural and engineering solutions to common challenges in data handling, model training, evaluation, and deployment.
You’ll learn to clean, augment, and annotate large-scale datasets, architect modular training pipelines, and optimize models using hyperparameter tuning, pruning, and quantization. The chapters help you explore regularization, checkpointing, fine-tuning, and advanced prompting methods, such as reason-and-act, as well as implement reflection, multi-step reasoning, and tool use for intelligent task completion. The book also highlights Retrieval-Augmented Generation (RAG), graph-based retrieval, interpretability, fairness, and RLHF, culminating in the creation of agentic LLM systems.
By the end of this book, you’ll be equipped with the knowledge and tools to build next-generation LLMs that are adaptable, efficient, safe, and aligned with human values.
What you will learn
- Implement efficient data prep techniques, including cleaning and augmentation
- Design scalable training pipelines with tuning, regularization, and checkpointing
- Optimize LLMs via pruning, quantization, and fine-tuning
- Evaluate models with metrics, cross-validation, and interpretability
- Understand fairness and detect bias in outputs
- Develop RLHF strategies to build secure, agentic AI systems
Who this book is for
This book is essential for AI engineers, architects, data scientists, and software engineers responsible for developing and deploying AI systems powered by large language models. A basic understanding of machine learning concepts and experience in Python programming is a must.
Table of Contents
- Introduction to LLM Design Patterns
- Data Cleaning for LLM Training
- Data Augmentation
- Handling Large Datasets for LLM Training
- Data Versioning
- Dataset Annotation and Labeling
- Training Pipeline
- Hyperparameter Tuning
- Regularization
- Checkpointing and Recovery
- Fine-Tuning
- Model Pruning
- Quantization
- Evaluation Metrics
- Cross-Validation
- Interpretability
- Fairness and Bias Detection
- Adversarial Robustness
- Reinforcement Learning from Human Feedback
- Chain-of-Thought Prompting
- Tree-of-Thoughts Prompting
- Reasoning and Acting
- Reasoning WithOut Observation
- Reflection Techniques
- Automatic Multi-Step Reasoning and Tool Use
- Retrieval-Augmented Generation
- Graph-Based RAG
- Advanced RAG
- Evaluating RAG Systems
- Agentic Patterns
- ISBN-101836207034
- ISBN-13978-1836207030
- Publication dateMay 30, 2025
- LanguageEnglish
- Dimensions7.5 x 1.22 x 9.25 inches
- Print length538 pages
Frequently bought together

Customers who viewed this item also viewed
- System Design for the LLM Era: Patterns and principles for production-grade AI architecturePaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Build a Large Language Model (From Scratch)PaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- AI Engineering: Building Applications with Foundation ModelsPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- LLM Engineer's Handbook: Master the art of engineering large language models from concept to productionPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systemsPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
- Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agentsPaperbackFREE Shipping by AmazonGet it as soon as Saturday, Sep 19
Customers also bought or read
- Building AI Agents with LLMs, RAG, and Knowledge Graphs: A practical guide to autonomous and modern AI agents
Paperback$41.99$41.99FREE delivery Sat, Sep 19 - LLM Engineer's Handbook: Master the art of engineering large language models from concept to production
Paperback$39.99$39.99FREE delivery Sat, Sep 19 - Generative AI with LangChain: Build production-ready LLM applications and advanced agents using Python, LangChain, and LangGraph
Paperback$41.99$41.99FREE delivery Sat, Sep 19 - Mathematics of Machine Learning: Master linear algebra, calculus, and probability for machine learning
Paperback$44.30$44.30FREE delivery Sat, Sep 19 - Generative AI with Python and PyTorch: Navigating the AI frontier with LLMs, Stable Diffusion, and next-gen AI applications
Paperback$32.99$32.99Delivery Sat, Sep 19 - AI Agents in Practice: Design, implement, and scale autonomous AI systems for production
Paperback$33.74$33.74Delivery Sat, Sep 19 - Context Engineering for Multi-Agent Systems: Move beyond prompting to build a Context Engine, a transparent architecture of context and reasoning
Paperback$37.99$37.99FREE delivery Sat, Sep 19 - Unlocking Data with Generative AI and RAG: Enhance generative AI systems by integrating internal data with large language models using RAG
Paperback$44.99$44.99FREE delivery Sat, Sep 19 - LLMs in Production: From language models to successful products
Paperback$48.13$48.13FREE delivery Sat, Sep 19 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$52.40$52.40FREE delivery Sat, Sep 19 - Building Applications with AI Agents: Designing and Implementing Multiagent Systems
Paperback$56.44$56.44FREE delivery Sat, Sep 19 - AI Systems Performance Engineering: Optimizing Model Training and Inference Workloads with GPUs, CUDA, and PyTorch#1 Best SellerComputer Hardware Design & Architecture
Paperback$86.07$86.07FREE delivery Sat, Sep 19 - Build a Large Language Model (From Scratch)#1 Best SellerComputer Neural Networks
Paperback$49.24$49.24FREE delivery Sat, Sep 19 - Designing Multi-Agent Systems: Principles, Patterns, and Implementation for AI Agents
Paperback$46.39$46.39FREE delivery Sat, Sep 19 - Building LLMs for Production: Enhancing LLM Abilities and Reliability with Prompting, Fine-Tuning, and RAG
Paperback$43.38$43.38FREE delivery Sat, Sep 19 - Deep Reinforcement Learning Hands-On: A practical and easy-to-follow guide to RL from Q-learning and DQNs to PPO and RLHF
Paperback$32.75$32.75Delivery Sat, Sep 19 - Generative AI Design Patterns: Solutions to Common Challenges When Building GenAI Agents and Applications
Paperback$68.99$68.99FREE delivery Sat, Sep 19 - Prompt Engineering for LLMs: The Art and Science of Building Large Language Model-Based Applications
Paperback$54.51$54.51FREE delivery Sat, Sep 19 - 30 Agents Every AI Engineer Must Build: Build production-ready agent systems using proven architectures and patterns
Paperback$41.79$41.79FREE delivery Sat, Sep 19 - Agentic Architectural Patterns for Building Multi-Agent Systems: Proven design patterns and practices for GenAI, agents, RAG, LLMOps, and enterprise-scale AI systems
Paperback$44.99$44.99FREE delivery Sat, Sep 19 - The Hundred-Page Language Models Book: hands-on with PyTorch (The Hundred-Page Books)
Paperback$46.95$46.95FREE delivery Sat, Sep 19 - Learn Model Context Protocol with Python: Build agentic systems in Python with the new standard for AI capabilities
Paperback$32.47$32.47Delivery Oct 3 - 14 - AI-Native LLM Security: Threats, defenses, and best practices for building safe and trustworthy AI
Paperback$39.99$39.99FREE delivery Sat, Sep 19 - Hands-On Large Language Models: Language Understanding and Generation
Paperback$47.69$47.69FREE delivery Sat, Sep 19 - Graph Machine Learning: Learn about the latest advancements in graph data to build robust machine learning models
Paperback$38.54$38.54FREE delivery Sat, Sep 19 - Agentic Coding with Claude Code: The everyday developer's guide to agentic coding with Claude Code
Paperback$36.33$36.33FREE delivery Sat, Sep 19 - Design Multi-Agent AI Systems Using MCP and A2A: Engineer your own Python-based agentic AI framework with tool use, memory, and multi-agent workflows
Paperback$41.79$41.79FREE delivery Sat, Sep 19 - Python Machine Learning By Example: Unlock machine learning best practices with real-world use cases
Paperback$29.55$29.55Delivery Sat, Sep 19 - Agentic Artificial Intelligence: Harnessing AI Agents to Reinvent Business, Work and Life#1 Best SellerOffice Automation
Paperback$23.98$23.98Delivery Sat, Sep 19
From the brand
-
See more at our store
-
Packt is a leading publisher of technical learning content with the ability to publish books on emerging tech faster than any other.
Our mission is to increase the shared value of deep tech knowledge by helping tech pros put software to work.
We help the most interesting minds and ground-breaking creators on the planet distill and share the working knowledge of their peers.
From the Publisher
Editorial Reviews
About the Author
Product details
- Publisher : Packt Publishing
- Publication date : May 30, 2025
- Language : English
- Print length : 538 pages
- ISBN-10 : 1836207034
- ISBN-13 : 978-1836207030
- Item Weight : 2.01 pounds
- Dimensions : 7.5 x 1.22 x 9.25 inches
- Best Sellers Rank: #1,141,719 in Books (See Top 100 in Books)
- #182 in Computer Vision & Pattern Recognition
- #452 in Natural Language Processing (Books)
- #1,023 in Artificial Intelligence (Books)
- Customer Reviews:
About the author

Ken Huang is an acclaimed author of 8 books on AI and Web3. He is the Co-Chair of the AI Organizational Responsibility Working Group and AI Control Framework at the Cloud Security Alliance.
In addition, Huang contributed extensively to key initiatives in the space. He is a core contributor to OWASP's Top 10 Risks for LLM Applications and heavily involved in the NIST Generative AI Public Working Group. He also provides feedback on publications like NIST SP 800-226.
A sought-after speaker, Ken has shared his insights at renowned global conferences, including those hosted by Davos WEF, ACM, IEEE, and CSA AI Summit, CSA AI Think Tank Day and World Bank. His recent co-authorship of "Blockchain and Web3: Building the Cryptocurrency, Privacy, and Security Foundations of the Metaverse" adds to his reputation, with the book being recognized as one of the must-reads in both 2023 and 2024 by TechTarget.














