AI Engineer Professional

Book Profile

Domain-Specific Small Language Models

Manning (MEAP) · 2025

A practical guide for engineers to build, optimize, and deploy cost-effective and secure small language models (SLMs) on commodity hardware for specialized, real-world applications.

Get the book →

In an era dominated by the hype of massive, generalist language models, this book takes a refreshingly pragmatic stance, arguing that true business value often lies in smaller, specialized, and more efficient AI. "Domain-Specific Small Language Models" is a hands-on guide for ML engineers and data scientists who need to move beyond expensive, high-risk prototypes and deliver tangible results within real-world constraints. It provides a comprehensive toolkit for selecting, tuning (via fine-tuning or RAG), and rigorously optimizing SLMs using techniques like ONNX conversion and quantization. Readers will learn to deploy these powerful models on commodity hardware—from on-premise servers to laptops and edge devices—unlocking applications in regulated or data-sensitive domains like code generation and chemistry while ensuring privacy, controlling costs, and achieving superior performance on domain-specific tasks.

What it argues

This model outlines the causal relationships between technical design choices made during the development of a Small Language Model (SLM) application and the resulting system performance, cost, and quality outcomes. It shows how levers like model selection, specialization strategy, and optimization techniques influence intermediate system properties, which in turn drive final business and operational metrics.

Key ideas it contributes

Featured in these guides