Get Free Shipping on orders over $49
Rearchitecting LLMs : Structural techniques for efficient models - Pere Martra

Rearchitecting LLMs

Structural techniques for efficient models

By: Pere Martra

Paperback | 29 December 2026 | Edition Number 1

At a Glance

Paperback


$97.99

or 4 interest-free payments of $24.50 with

 or 

Available: 29th December 2026

Preorder. Will ship when available.

Get a free eBook (PDF or ePub) from Manning as well as access to the online liveBook format (and its AI assistant that will answer your questions in any language) when you purchase the print book.

By default, general purpose LLMs are not optimized for specific domains and business goals. Using techniques like specialized fine-tuning, pruning unnecessary neural components, and knowledge distillation, you can rearchitect your models to cost less, run faster, and deliver more accurate results.

This book turns research from the latest AI papers into production-ready practices for domain-specific model optimization. As you work through this practical book, you'll perform hands-on surgery on popular open-source models like Llama-3, Gemma, and Qwen to create cost-effective local small language models (SLMs). Along the way, you'll learn how to combine behavioral analysis with structural modifications, identifying and removing parts that don't contribute to your model's goals, and even use ';fair pruning' to reduce model bias at the neuron level.

Whats inside

*; Universal techniques for customizing model architecture
*; End-to-end pipelines for model rearchitecting
*; Improve bias and explainability with model ';cleanup'
*; Replacing external LLMs with local SLMs

About the reader

For practicing AI, ML, and data engineers who know Python.

About the author

Pere Martra is an Applied AI Engineer, the creator of the Optipfair model efficiency library, an international AI speaker, and maintainer of widely-used LLM courses and popular open-source tools. He is the author of Large Language Models Projects.

More in Computer Programming & Software Development

Learning Go : An Idiomatic Approach to Real-World Go Programming - Jon Bodner
Design Patterns : Elements of Reusable Object-Oriented Software - Erich Gamma
Python All-in-One For Dummies : 3rd Edition - John C. Shovic

RRP $74.95

$49.99

33%
OFF
Swift : The Practical Guide - Kerem Koseoglu
Web Engineering : Theory and Practice - Jeremiah Downey
The Essence of Software Engineering - Cersei Page
Introduction to Programming Languages - Gordon Hurley
The Lego Technic Idea Book : Simple Machines - Yoshihito Isogawa

RRP $55.00

$38.75

30%
OFF