{"product_id":"rearchitecting-llms-pere-martra-9781633434332","title":"Rearchitecting Llms: Structural Techniques for Efficient Models","description":"\u003cb\u003eGet 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.\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003eBy 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. \u003cp\u003e\u003c\/p\u003eThis 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. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eWhat's inside\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e - Universal techniques for customizing model architecture\u003cbr\u003e - End-to-end pipelines for model rearchitecting\u003cbr\u003e - Improve bias and explainability with model \"cleanup\"\u003cbr\u003e - Replacing external LLMs with local SLMs \u003cp\u003e\u003c\/p\u003e\u003cb\u003eAbout the reader\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e For practicing AI, ML, and data engineers who know Python. \u003cp\u003e\u003c\/p\u003e \u003cb\u003eAbout the author\u003c\/b\u003e \u003cp\u003e\u003c\/p\u003e \u003cb\u003ePere Martra\u003c\/b\u003e 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. \u003cp\u003e\u003c\/p\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e Pere Martra\u003cbr\u003e\u003cb\u003eISBN-10:\u003c\/b\u003e 1633434338\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9781633434332\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Manning Publications\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 11\/24\/2026\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 380\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.00lbs","brand":"Pere Martra","offers":[{"title":"Paperback","offer_id":48520643412223,"sku":"9781633434332","price":59.99,"currency_code":"USD","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0662\/2982\/9887\/files\/img_97555e4e-d4d5-41f2-a5f2-3f10b81532e3.jpg?v=1778742457","url":"https:\/\/www.whiterainbookhouse.com\/products\/rearchitecting-llms-pere-martra-9781633434332","provider":"WR Book House","version":"1.0","type":"link"}