Refresh Your Home For Fall
To see product details, add this item to your cart. You can always remove it later.
Shipper / Seller
Amazon.com
Amazon.com
Shipper / Seller
Amazon.com
Returns
30-day refund / replacement
30-day refund / replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Gift options
Available at checkout
Available at checkout This item is a gift. Change
At checkout, you can add a custom message, a gift receipt for easy returns and have the item gift-wrapped
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

  • Domain-Specific Small Language Models: Efficient AI for local deployment
  • First Chapter Summary
  • VIDEO

Follow the author

Get new release updates & improved recommendations
Something went wrong. Please try your request again later.

Domain-Specific Small Language Models: Efficient AI for local deployment

4.8 out of 5 stars (31)

Purchase options and add-ons

Get the eBook free when you register your print book at Manning.

When you need a language model to respond accurately and quickly about a specific field of knowledge, the sprawling capacity of a LLM may hurt more than it helps. This book teaches you to build generative AI models optimized for specific fields.

Perfect for cost- or hardware-constrained environments, Small Language Models (SLMs) train on domain specific data for high-quality results in specific tasks. In this book you’ll develop SLMs that can generate everything from Python code to protein structures and antibody sequences—all on commodity hardware.

In
Domain-Specific Small Language Models you’ll discover:

• Model sizing best practices
• Open source libraries, frameworks, utilities and runtimes
• Fine-tuning techniques for custom datasets
• Hugging Face’s libraries for SLMs
• Running SLMs on commodity hardware
• Model optimization or quantization

Foreword by Matthew R. Versaggi.

About the technology

Small-footprint language models trained on custom data sets and hosted locally can perform as well as large generalist models in speed and accuracy, often at a fraction of the cost.
Domain-Specific Small Language Models shows you how to build privacy-preserving and regulation-compliant SLMs for agentic systems, specialist applications, and deployment on the edge.

About the book

This is a practical book that shows you how to adapt pretrained open source models to your domain using transfer learning and parameter-efficient fine-tuning. You’ll learn to minimize cost through optimization and quantization, develop secure APIs to serve your models, and deploy SLMs on commodity hardware—including small devices. The hands-on examples include integrating SLMs into RAG systems and agentic workflows.

What's inside

• ONNX and other quantization methods
• Integrate SLMs into end-to-end applications
• Deploy SLMs on laptops, smartphones, and other devices

About the reader

For AI engineers familiar with Python.

About the author

Guglielmo Iozzia is a Director of AI and Applied Mathematics at Merck & Co. and a Distinguished Member of the American Society for Artificial Intelligence. He specializes in AI biomedical applications.

The technical editor on this book was
Riccardo Mattivi.

Table of Contents

Part 1
1 Small language models
Part 2
2 Tuning for a specific domain
3 End-to-end transformer fine-tuning
4 Running inference
5 Exploring ONNX
6 Quantizing for your production environment
Part 3
7 Generating Python code
8 Generating protein structures
Part 4
9 Advanced quantization techniques
10 Profiling insights
11 Deployment and serving
12 Running on your laptop
13 Creating end-to-end LLM applications
14 Advanced components for LLM applications
15 Test-time compute and small language models

Frequently bought together

This item: Domain-Specific Small Language Models: Efficient AI for local deployment
$41.51
Get it as soon as Monday, Sep 21
In Stock
Ships from and sold by Amazon.com.
+
$49.24
Get it as soon as Sunday, Sep 20
In Stock
Ships from and sold by Amazon.com.
+
$47.82
Get it as soon as Sunday, Sep 20
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

From the Publisher

Domain-Specific Small Language Models header

Domain-Specific Small Language Models quote 1

“Gives the reader a jumpstart toward making efficient, focused models with well-controlled data.”

Janelle Shane, AI Weirdness

Domain-Specific Small Language Models quote 2

“Effectively cuts through the hype to focus on the tangible business value of localized, efficient artificial intelligence.”

Luca Longo, University College Cork

Domain-Specific Small Language Models quote 3

“A timely and much-needed reference for both researchers and industry practitioners.”

Ahmed Serag, Weill Cornell Medicine

Domain-Specific Small Language Models about the book

why this book?

Domain-Specific Small Language Models shows how to build compact AI models tuned to a specific industry, workflow, or dataset, rather than relying on oversized general-purpose LLMs.

Readers learn practical techniques for fine-tuning, evaluation, deployment, and optimization, enabling them to run capable models with lower latency, lower infrastructure costs, and tighter control over data and outputs.

The book also helps engineers understand when small language models outperform larger systems in production, especially in environments where privacy, speed, and reliability matter more than raw parameter count.

about manning

about Manning

Manning helps developers and tech professionals stay ahead in a fast-moving industry with expert-led books, videos, and projects. Learning never stops, but it’s hard to keep up, so we focus on content that’s practical, clear, and trusted. As an independent publisher, we adapt quickly, from pioneering early-access books to offering DRM-free eBooks. Our series, like "In Action" and "In a Month of Lunches", reflect a commitment to making complex topics accessible.

Deep Learning with Python, Third Edition
AI Agents in Action
Build a Large Language Model (From Scratch)
LLMs in Production: From language models to successful products
Data Analysis with LLMs: Text, tables, images and sound (In Action)
Causal AI
Customer Reviews
4.2 out of 5 stars 42
4.0 out of 5 stars 51
4.5 out of 5 stars 613
4.5 out of 5 stars 36
4.8 out of 5 stars 7
4.4 out of 5 stars 14
Level of proficiency Intermediate Intermediate Intermediate Intermediate Intermediate Advanced
About the reader For readers with intermediate Python skills. For intermediate Python programmers. Readers need intermediate Python skills and some knowledge of machine learning. For data scientists and ML engineers. For data scientists and data analysts. For data scientists and machine learning engineers.
Special features Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant. Includes liveBook with out built-in AI assistant.
Pages 648 344 368 456 232 520

Editorial Reviews

About the Author

Guglielmo Iozzia is a Director, ML/AI and Applied Mathematics at MSD. He studied Electronic and Biomedical Engineering at the University of Bologna, has an extensive background in Software and ML/AI Engineering applied to real-life use cases across different industries, such as Biotech Manufacturing, Healthcare, Cloud Operations, and Cyber Security.

Product details

  • Publisher ‏ : ‎ Manning Publications
  • Publication date ‏ : ‎ May 26, 2026
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 376 pages
  • ISBN-10 ‏ : ‎ 1633436705
  • ISBN-13 ‏ : ‎ 978-1633436701
  • Item Weight ‏ : ‎ 12.7 ounces
  • Dimensions ‏ : ‎ 7.38 x 0.94 x 9.25 inches
  • Best Sellers Rank: #34,748 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.8 out of 5 stars (31)

About the author

Follow authors to get new release updates, plus improved recommendations.
Guglielmo Iozzia
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.