Cover of LLMs in Production

LLMs in Production

by Christopher Brousseau

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.This book complements Sebastian Raschka’s Build a Large Language Model (From Scratch), which focuses on building and understanding LLMs from the ground up, by extending that foundation into real-world production—covering integration, cost-efficient training, and model evaluation.In LLMs in Production you will:Grasp the fundamentals of LLMs and the technology behind themEvaluate when to use a premade LLM and when to build your ownEfficiently scale up an ML platform to handle the needs of LLMsTrain LLM foundation models and finetune an existing LLMDeploy LLMs to the cloud and edge devices using complex architectures like PEFT and LoRABuild applications leveraging the strengths of LLMs while mitigating their weaknessesLLMs 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.About the technologyMost 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 bookLLMs 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 insideBalancing cost and performanceRetraining and load testingOptimizing models for commodity hardwareDeploying on a Kubernetes clusterAbout the readerFor data scientists and ML engineers who know Python and the basics of cloud deployment.About the authorChristopher Brousseau and Matt Sharp are experienced engineers who have led numerous successful large scale LLM deployments.Table of Contents1 Generative AI: Why large language models have captured attention2 Large language models: A deep dive into language modeling3 Large language model operations: Building a platform for LLMs4 Data engineering for large language models: Setting up for success5 Training large language models: How to generate the generator6 Large language model services: A practical guide7 Prompt engineering: Becoming an LLM whisperer8 Applications and Agents: Building an interactive experience9 Creating an LLM project: Reimplementing Llama 310 Creating a coding copilot project: Integrating an LLM service into VS Code with RAG11 Deploying an LLM on a Raspberry Pi: How low can you go?12 Production, an ever-changing landscape: Things are just getting startedA History of linguisticsB Reinforcement learning with human feedbackC Multimodal latent spaces

Pages
428
First published
2024
Publisher
Manning
This edition
February 11, 2025
Language
English
ISBN-13
9781633437203
ISBN-10
1633437205

This record as JSON: api.metadata.dev/books/9781633437203