Installieren Sie die genialokal App auf Ihrem Startbildschirm für einen schnellen Zugriff und eine komfortable Nutzung.
Tippen Sie einfach auf Teilen:
Und dann auf "Zum Home-Bildschirm [+]".
Fine-tune open-source language models with LoRA, QLoRA, and Hugging Face tools Fine-Tuning Large and Small Language Models walks practitioners through the complete pipeline for customizing open-source SLMs for domain-specific tasks. Written by Luca Massaron, a data scientist with 20+ years in data modelling and nearly a decade building NLP solutions with Transformer architectures, the book covers dataset preparation, synthetic data generation, base model selection from families including Gemma, Qwen, Phi, and Llama, and deployment on consumer-grade hardware. The book frames fine-tuning against alternatives like retrieval-augmented generation and advanced prompting, helping readers determine when fine-tuning is the right approach. Hands-on coverage of parameter-efficient methods, specifically LoRA and QLoRA, shows how to configure Hugging Face PEFT, TRL, and bitsandbytes for training. Evaluation chapters address detecting whether fine-tuning improved target performance without degrading the model's broader capabilities. Readers will also find: - Practical case studies covering the end-to-end process from dataset preparation through model evaluation and production deployment - Guidance on selecting base models from the Gemma, Qwen, Phi, and Llama families for specific use cases - Techniques for generating synthetic training data where real domain-specific data is scarce or unavailable - Configuration walkthroughs for Hugging Face PEFT, TRL, and bitsandbytes to run training on consumer hardware - Final chapters extending fine-tuned SLMs toward autonomous agents and domain-specific production applications Fine-Tuning Large and Small Language Models serves technical practitioners with programming and machine learning experience who want to move beyond off-the-shelf APIs. Data scientists, ML engineers, and AI developers building customized, cost-effective language models will gain the working knowledge to transform general-purpose SLMs into specialized, production-ready tools.
LUCA MASSARON is a data scientist with a 20-plus-year career in data and modeling. He has spent the last decade working in finance and insurance data science projects, including gradient boosting and deep learning models for tabular data, as well as natural language processing solutions leveraging transformer architectures and large language models. He is also a Kaggle Grandmaster, a Google Developer Expert in AI and machine learning, and the author of over 15 technical books on data science and machine learning.
Acknowledgments xiii About the Author xv About the Technical Editor xvii Foreword xix Introduction xxi Chapter 1: Introducing LLMs and SLMs 1 Chapter 2: Motivations and Options for Fine-Tuning 29 Chapter 3: Tools of the Trade for Fine-Tuning 65 Chapter 4: Data Preparation and Synthetic Data Generation 105 Chapter 5: From Full-Tuning to Parameter-Efficient Fine-Tuning 149 Chapter 6: LoRA, QLoRA, and Quantization in Practice 185 Chapter 7: Refining Models with Human Preference and Verifiable Rewards 239 Chapter 8: Model Evaluation 277 Chapter 9: Deploying and Optimizing for Inference 307 Chapter 10: Fine-Tuning for Agents and a Look Ahead 341 Index 373
Dieses eBook wird im PDF-Format geliefert und ist mit einem Adobe Kopierschutz (DRM) versehen. Sie können dieses eBook mit allen Geräten lesen, die das PDF-Format und den Adobe Kopierschutz (DRM) unterstützen.
Zum Beispiel mit den folgenden Geräten:
• tolino Reader
Laden Sie das eBook direkt über den Reader-Shop auf dem tolino herunter oder übertragen Sie das eBook auf Ihren tolino mit einer kostenlosen Software wie beispielsweise Adobe Digital Editions.
• Sony Reader & andere eBook Reader
Laden Sie das eBook direkt über den Reader-Shop herunter oder übertragen Sie das eBook mit der kostenlosen Software Sony READER FOR PC/Mac oder Adobe Digital Editions auf ein Standard-Lesegeräte mit epub- und Adobe DRM-Unterstützung.
• Tablets & Smartphones
Möchten Sie dieses eBook auf Ihrem Smartphone oder Tablet lesen, finden Sie hier unsere kostenlose Lese-App für iPhone/iPad und Android Smartphone/Tablets.
• PC & Mac
Lesen Sie das eBook direkt nach dem Herunterladen mit einer kostenlosen Lesesoftware, beispielsweise Adobe Digital Editions, Sony READER FOR PC/Mac oder direkt über Ihre eBook-Bibliothek in Ihrem Konto unter „Meine eBooks“ - „online lesen“.
Schalten Sie das eBook mit Ihrer persönlichen Adobe ID auf bis zu sechs Geräten gleichzeitig frei.
Bitte beachten Sie, dass die Kindle-Geräte das Format nicht unterstützen und dieses eBook somit nicht auf Kindle-Geräten lesbar ist.