Manning Early Access Program (MEAP)
Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
AI systems using large models like GPT or Gemini can produce impressive results across an astounding range of subjects and domains. In areas like clinical coding, legal contract review, financial due diligence, fraud detection, compliance monitoring, and other specialized business or technical disciplines, however, broad general ability is far less important than efficient output that can be trusted, audited, and controlled. Building Specialized AI Systems: Fine tuning models, agents, and applications teaches you how to adapt pretrained language models to your exact domain, data, and operational constraints.
In this hands-on guide, authors Walid Amamou, CEO of UbiAI.tools and Alessandro Negro, Chief Scientist at GraphAware, walk you through the complete process of building production-grade AI systems around Specialized Language Models. In it, you'll learn how to choose the right pretrained base models, and how to work directly with supervised fine-tuning and modern parameter-efficient techniques including LoRA, QLoRA, DoRA, adapters, and Half Fine-Tuning. You'll also explore reinforcement learning–based approaches such as RLHF and GRPO, along with knowledge distillation for transferring the capabilities of large teacher models into smaller, faster student models.
Building Specialized AI Systems puts working code in front of you and walks through practical implementations step by step. You'll load and quantize models, configure fine-tuning methods, prepare datasets, run reproducible training jobs on accessible hardware, and evaluate whether your specialized model is actually improving on the task that matters.
Complete real-world projects connect these techniques from design to deployment, showing how specialized models can be applied to practical industry problems and giving you reusable patterns for your own AI systems. Along the way, you'll work with the modern fine-tuning ecosystem, including open-source and commercial platforms and tools used to train, evaluate, deploy, and operate specialized language models.
By the end, you'll have a practical framework for deciding when specialization is the right strategy and the technical skills to build, fine-tune, evaluate, and deploy language models tailored to your own domain, tasks, and constraints.
what's inside
When—and when not—to fine-tune instead of prompting or RAG
Building Specialized Language Models from pretrained open-source models
Preparing and cleaning domain-specific datasets for fine-tuning
LoRA, QLoRA, DoRA, adapters, and Half Fine-Tuning
Reinforcement learning–based fine-tuning techniques like RLHF and GRPO
Knowledge distillation from large teacher models to smaller student models
Model quantization and training on accessible hardware
Evaluation, monitoring, human-in-the-loop workflows, and data drift
Production deployment, serving, scalability, security, cost, and CI/CD
Complete real-world projects from model design to deployment
about the reader
For data scientists, AI engineers, and data engineers with basic ML/NLP familiarity, some experience with LLMs, and intermediate Python. Product managers and technical decision-makers overseeing AI initiatives will also find strategic value.
about the authors
Walid Amamou is the founder and CEO of UbiAI.tools, a leading fine-tuning platform used by Fortune 500 companies and enterprise AI teams. He holds a Ph.D in Physics and is a patent holder for ”Systems and methods for automated text labeling”. He has years of hands-on experience deploying LLMs in production and advising data scientists, AI engineers, and product managers on model optimization. His work focuses on fine-tuning for compliance-critical and industry-specific applications.
Alessandro Negro is Chief Scientist at GraphAware, where he designs domain-specific knowledge graph and LLM solutions for regulated industries. He is the author of two previous Manning books, Graph-Powered Machine Learning and Knowledge Graphs and LLMs in Action. His expertise spans knowledge graphs, graph neural networks, NLP, and specialized language models.
Introductory offer Save 50% for a limited time!
eBook
pdf, ePub, online
$55.99
$27.99
you save $28.00 (50%)
Introductory offer Save 50% for a limited time!
print
includes eBook
$69.99
$34.99
you save $35.00 (50%)
with subscription
free or 50% off
$24.99
pro $24.99 per month
access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!