liveBook · Manning

Chapter 1: Small language models

What you will learn in chapter 1 of Domain-Specific Small Language Models

The introduction explains why LLM hype makes it important to assess models against real capabilities, risks, and business needs rather than expectations.

After this chapter you will be able to

Section by section

Introduction

The introduction explains why LLM hype makes it important to assess models against real capabilities, risks, and business needs rather than expectations.

Key terms: large language models (LLMs), hype, business needs

1.1 What are small language models?

This section defines small language models and explains why their scale makes them useful for local deployment, domain-specific work, and some agentic systems.

Key terms: small language models, SLMs, LLMs, parameters, Transformer architecture, memory footprint, computational power, CPUs, consumer GPUs, offline

1.2 The Transformer architecture

This section explains why Transformers train more efficiently than RNNs, how embeddings support text representation, and how encoder- and decoder-based architectures suit different tasks.

Key terms: RNN, self-attention, parallelism, recurrent structure, word embeddings, semantic, syntactic, numerical space, encoder–decoder, encoder

1.3 Areas of application

The section explains that, despite their name, LLMs can work with symbolic content beyond natural-language text and support a wide range of tasks.

Key terms: LLM, natural-language processing (NLP), code generation, symbolically represents

1.4 The open source revolution

This section explains how open source pretrained LLMs give organizations a lower-cost starting point for custom models, while leaving deployment and inference costs to address.

Key terms: open source model, pretrained open source model, generalist, specialized, licenses, development, training, deployment, inference serving, pretrained OS model

1.5 Risks and challenges with generalist LLMs

This section weighs the convenience of commercial generalist LLMs against privacy, control, transparency, reliability, and safety risks that can make them unsuitable for important business uses.

Key terms: deployment outside your organization’s network, data leakage risks, model or version drift, cost unpredictability, token-based billing, closeness, transparency, reproducibility, interpretability, intrinsic hallucination

1.6 Domain-specific vs. generalist LLMs for business value

This section weighs when a domain-specific model offers more business value than a generalist LLM, considering specialization, privacy, resources, sustainability, and alignment.

Key terms: generalist pretrained LLMs, domain-specific data, domain specialization, transfer learning, full training, SLM, regulated domains, domain-specific training data, private data leakage, private, offline, domain-specific LLM

1.7 Summary

Where this is used later

Concepts explained in this chapter

Chapter 2: Tuning for a specific domain →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.