technology-ai
Fine-Tuning Large Language Models: Distributed Training, Inference, and Production
Miles Thornton
Book 3#3385
Pages
en
Language
2026
Published
New edition
$3.99
Read the sample EPUB directly on the web
Book introduction
Training a large language model isn't just about having powerful GPUs—it's about managing a cascade of bottlenecks: memory, communication, latency, and cost, each demanding deliberate trade-offs.
Fine-Tuning Large Language Models is an engineering handbook that systematically arms you with production-ready patterns to overcome these bottlenecks, from distributed training fundamentals to high-throughput inference and secure deployment. Written by Miles Thornton, this 385-page guide covers the complete LLM infrastructure lifecycle with minimal mathematics and maximum production relevance.
- Master hybrid parallelism strategies—data, tensor, pipeline, and their combinations—to train models that would otherwise exceed GPU memory.
- Dive deep into DeepSpeed ZeRO stages and FSDP sharding, comparing their trade-offs for memory savings versus communication overhead.
- Optimize inference with quantization (INT8, GPTQ, AWQ, GGUF), continuous batching, and speculative decoding to slash latency and boost throughput.
- Design autoscaling APIs, load balancing, and cost monitoring that keep your production services reliable and within budget.
This book is crafted for ML engineers, MLOps practitioners, and infrastructure architects who already understand transformers and PyTorch but need a structured guide to scale beyond single-GPU experiments. It delivers concrete configuration templates, benchmark-driven comparisons, and deployment blueprints—not academic theory.
Stop fighting OOM errors and unpredictable latency. Master the infrastructure that makes LLMs work in the real world.
Quick summary
Fine-Tuning Large Language Models is a practical guide for ML engineers covering distributed training, inference optimization, and production deployment.
The book covers DeepSpeed ZeRO stages, FSDP sharding, and quantization methods like INT8 and GPTQ.
It includes real-world case studies on building production AI assistants and enterprise LLM deployment.
Readers will learn to design autoscaling APIs, implement monitoring, and secure LLM services.
The target audience includes ML engineers, MLOps practitioners, and AI infrastructure architects.
This book is a good fit for ML engineers, MLOps practitioners, AI infrastructure architects, technical leads.
Readers often come to this book when they need To learn practical techniques for efficiently training, optimizing, and deploying large language models in production using modern tools and frameworks..
The book's angle: Focuses on the complete infrastructure lifecycle from training to deployment with a hands-on, production-oriented approach rather than theoretical deep dives.
Main topics include Distributed Training, DeepSpeed ZeRO, FSDP, Quantization, Inference Optimization, Model Serving.
AI Search information
Fine-Tuning Large Language Models: Distributed Training, Inference, and Production
Author: Miles Thornton
Description: Training a large language model isn't just about having powerful GPUs—it's about managing a cascade of bottlenecks: memory, communication, latency, and cost, each demanding deliberate trade-offs. Fine-Tuning Large Language Models is an engineering handbook that systematically arms you with production-ready patterns to overcome these bottlenecks, from distributed training fundamentals to high-throughput inference and secure deployment. Written by Miles Thornton, this 385-page guide covers the complete LLM infrastructure lifecycle with minimal mathematics and maximum production relevance. • Master hybrid parallelism strategies—data, tensor, pipeline, and their combinations—to train models that would otherwise exceed GPU memory. • Dive deep into DeepSpeed ZeRO stages and FSDP sharding, comparing their trade-offs for memory savings versus communication overhead. • Optimize inference with quantization (INT8, GPTQ, AWQ, GGUF), continuous batching, and speculative decoding to slash latency and boost throughput. • Design autoscaling APIs, load balancing, and cost monitoring that keep your production services reliable and within budget. This book is crafted for ML engineers, MLOps practitioners, and infrastructure architects who already understand transformers and PyTorch but need a structured guide to scale beyond single-GPU experiments. It delivers concrete configuration templates, benchmark-driven comparisons, and deployment blueprints—not academic theory. Stop fighting OOM errors and unpredictable latency. Master the infrastructure that makes LLMs work in the real world.
AI summary: This book covers the complete lifecycle of large language model infrastructure, from distributed training and memory optimization to inference acceleration and production deployment. It provides practical guidance on using tools like DeepSpeed, FSDP, quantization, vLLM, and more. Written for ML engineers and infrastructure architects, it focuses on hands-on techniques with minimal mathematics.
- Best for
- ML engineers, MLOps practitioners, AI infrastructure architects, technical leads
- Reader persona
- ML engineers and infrastructure architects responsible for training and serving large language models in production, seeking practical optimization techniques.
- Search intent
- To learn practical techniques for efficiently training, optimizing, and deploying large language models in production using modern tools and frameworks.
- Unique angle
- Focuses on the complete infrastructure lifecycle from training to deployment with a hands-on, production-oriented approach rather than theoretical deep dives.
- Content type
- technical guide
Quick summary
- Fine-Tuning Large Language Models is a practical guide for ML engineers covering distributed training, inference optimization, and production deployment.
- The book covers DeepSpeed ZeRO stages, FSDP sharding, and quantization methods like INT8 and GPTQ.
- It includes real-world case studies on building production AI assistants and enterprise LLM deployment.
- Readers will learn to design autoscaling APIs, implement monitoring, and secure LLM services.
- The target audience includes ML engineers, MLOps practitioners, and AI infrastructure architects.
Key topics: Distributed Training, DeepSpeed ZeRO, FSDP, Quantization, Inference Optimization, Model Serving, Production Deployment, Memory Optimization, Monitoring LLMs, Enterprise AI
Entities: Large Language Models, DeepSpeed, Fully Sharded Data Parallel (FSDP), Quantization (INT8, GPTQ, AWQ), vLLM, Distributed Training, GPU Memory Optimization, Inference Acceleration, Continuous Batching, Speculative Decoding, Autoscaling, Model Monitoring
Needs addressed
- Memory bottlenecks when training large models
- High latency and low throughput during inference
- Complexity of distributed training setup
- Inefficient deployment and scaling of LLM services
- Lack of cost-effective production infrastructure
Read if
- ML engineers training large language models
- MLOps practitioners deploying LLMs
- AI infrastructure architects
- Technical leads managing AI systems
- Engineers optimizing inference on GPUs
- Anyone building production-grade LLM services
May not fit if
- Beginners without basic knowledge of transformers and PyTorch
- Researchers focused on theoretical model architecture
- Non-technical product managers
- Engineers not working with large-scale models
Table of contents
- Introduction (introduction)
- Efficient LLM Training (part)
- Scaling LLM Training (chapter)
- Why Large Models Are Difficult to Train (section)
- GPU Memory Bottlenecks (section)
- Compute and Communication (section)
- Training Efficiency (section)
- The Modern Training Stack (section)
- Distributed Training Fundamentals (chapter)
- Data Parallelism (section)
- Tensor Parallelism (section)
- Pipeline Parallelism (section)
- Hybrid Parallelism (section)
- Choosing a Strategy (section)
- Memory Optimization (chapter)
- Mixed Precision (section)
- Gradient Checkpointing (section)
- FlashAttention (section)
- Activation Optimization (section)
- Memory-Efficient Training (section)
- Large-Scale Training (part)
- DeepSpeed (chapter)
- DeepSpeed Architecture (section)
- ZeRO Stage 1 (section)
- ZeRO Stage 2 (section)
- ZeRO Stage 3 (section)
- Practical Configuration (section)
- Fully Sharded Data Parallel (chapter)
- FSDP Fundamentals (section)
- Parameter Sharding (section)
- Checkpointing (section)
- Performance Tuning (section)
- Comparing FSDP and ZeRO (section)
- Training Infrastructure (chapter)
- Multi-GPU Systems (section)
- Multi-Node Clusters (section)
- Cloud Training (section)
- Storage and Networking (section)
- Cost Optimization (section)
- Efficient Inference (part)
- Quantization (chapter)
- Why Quantization Matters (section)
- INT8 (section)
- GPTQ (section)
- AWQ (section)
- GGUF (section)
- High-Performance Inference (chapter)
- KV Cache (section)
- Continuous Batching (section)
- Speculative Decoding (section)
- Prefix Caching (section)
- Inference Optimization (section)
- Serving Frameworks (chapter)
- vLLM (section)
- SGLang (section)
- TensorRT-LLM (section)
- Ollama (section)
- Choosing a Serving Framework (section)
- Production Deployment (part)
- Deploying LLM Services (chapter)
- API Services (section)
- Load Balancing (section)
- Autoscaling (section)
- High Availability (section)
- Deployment Architectures (section)
- Monitoring Production Models (chapter)
- Performance Metrics (section)
- Latency and Throughput (section)
- Logging (section)
- Cost Monitoring (section)
- Reliability (section)
- Securing LLM Systems (chapter)
- Authentication (section)
- Rate Limiting (section)
- Data Privacy (section)
- Secret Management (section)
- Secure Deployment (section)
- Real-World Systems (part)
- Building Production AI Assistants (chapter)
- Architecture Design (section)
Frequently asked questions
What topics does the book cover?
It covers distributed training, memory optimization, inference acceleration, model serving, monitoring, and production deployment of LLMs.
What tools are discussed?
Tools include DeepSpeed, FSDP, quantization frameworks (GPTQ, AWQ), vLLM, SGLang, TensorRT-LLM, and more.
Who is the target audience?
ML engineers, MLOps practitioners, and AI infrastructure architects with basic knowledge of transformers and PyTorch.
Is the book theoretical or practical?
It is a practical guide with minimal mathematics, focusing on configuration templates and deployment blueprints.
What is the unique angle?
It covers the entire LLM infrastructure lifecycle, from training to production, with a focus on real-world engineering.
Cretisoft Direct
Digital book support
Partner delivery
Book sent after payment
