Review of Guglielmo Iozzia’s book Domain-Specific Small Language Models
Rather than rent time on someone else’s large language model, you can use the techniques in the book to
- Download open-weight LLMs
- Customize them to your specific tasks
- Integrate them into your computing environment
- Run them on your end devices and servers.
Running customized models on your own infrastructure may be less expensive and, because you control the model, enables you to determine the model’s effectiveness without having to cope with updates provided by a hosted model.
The book walks through many case studies, providing working code for each.
The tools and techniques covered include
- LoRA, to fine-tune the weights of an allready trained model
- ONNX, a file format for model weights and computation, and a tool set for that format. ONNX can quantize models, which reduces their memory and computation footprints, often reducing costs and latency with acceptable accuracy
- Ollama, a platform for running models locally
- LM Studio, a Python API for accessing models from your application
- GraphRAG, Microsoft’s implementation of a knowledge graph for RAG queries.
This book is a great resource for builders of locally run, customized applications.
Works Cited
Iozzia, Guglielmo. Domain-Specific Small Language Models: Efficient AI for local deployment. Manning. 2026.