LLM Design Patterns
eBook - ePub

LLM Design Patterns

A Practical Guide to Building Robust and Efficient AI Systems

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

LLM Design Patterns

A Practical Guide to Building Robust and Efficient AI Systems

About this book

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: DRM-free PDF version + access to Packt's 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. *Email sign-up and proof of purchase required

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.

]]>

Trusted by 375,005 students

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

Study more efficiently using our study tools.

Information

Table of contents

  1. Designing LLM Patterns
  2. Contributors
  3. About the reviewers
  4. Join our Discord and Reddit space
  5. Preface
  6. Part 1: Introduction and Data Preparation
  7. 1
  8. 2
  9. 3
  10. 4
  11. 5
  12. 6
  13. Part 2: Training and Optimization of Large Language Models
  14. 7
  15. 8
  16. 9
  17. 10
  18. 11
  19. 12
  20. 13
  21. Part 3: Evaluation and Interpretation of Large Language Models
  22. 14
  23. 15
  24. 16
  25. 17
  26. 18
  27. 19
  28. Part 4: Advanced Prompt Engineering Techniques
  29. 20
  30. 21
  31. 22
  32. 23
  33. 24
  34. 25
  35. Part 5: Retrieval and Knowledge Integration in Large Language Models
  36. 26
  37. 27
  38. 28
  39. 29
  40. 30
  41. 31
  42. Index
  43. Other Books You May Enjoy

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 LLM Design Patterns by Ken Huang 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.