liveBook · Manning

Chapter 15: Test-time compute and small language models

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

The chapter introduction previews test-time compute, inference tools, and a commodity-hardware example of specializing an SLM with GRPO.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction previews test-time compute, inference tools, and a commodity-hardware example of specializing an SLM with GRPO.

15.1 Test-time compute

The section explains how test-time compute can improve difficult responses, what it costs, why closed commercial implementations are hard to validate, and why domain-specific SLMs are relevant.

Key terms: test-time compute, inference time, compute budget, candidate outputs, reasoning, compute costs, artificial general intelligence, closed-source models, refining process, validation

15.2 The OptiLLM inference proxy

This section explains how OptiLLM adds iterative reasoning to model inference, how AutoThink allocates and steers reasoning, and what a small-model evaluation reveals about overthinking and answer formatting.

Key terms: OptiLLM, inference-optimizing proxy, static inference, refinement cycle, local inference, LoRA weights, llama.cpp, Ollama, AutoThink, preprocessing

15.3 SLMs with embedded test-time compute

This section describes the availability of open-source small reasoning models and how to access them for local use.

Key terms: reflective models, reasoning capabilities, open source SLMs, thinking mode, reinforcement learning, process-reward models, domain-specific tasks, Transformers, GGUF, Ollama model catalog

15.4 Building a reasoning domain-specific SLM

This section walks through specializing a small language model for additive-manufacturing reasoning with GRPO, from memory-conscious setup and reward design to training and evaluation.

Key terms: GRPO, PPO, policy model, value model, LoRA, model quantization, Qwen 2.5 3B Instruct, Unsloth, FastLanguageModel, QLoRA

15.5 Summary

Concepts explained in this chapter

← Chapter 14: Advanced components for LLM applications

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.