Fine-Tuning Large and Small Language Models

Prijzen vanaf
53,99

Uitgelicht

Beschrijving

Bol Smaller, specialized AI models are overtaking their larger counterparts—here’s how to build them On Hugging Face, the central repository for open-source AI, small language models (SLMs) are now downloaded more often than larger ones. A shift is underway: organizations are moving away from general-purpose APIs toward domain-specific models fine-tuned on their own data. But fine-tuning a language model demands more than swapping in a new dataset. It requires decisions at every stage—from choosing whether fine-tuning is even the right approach to deploying the finished model on consumer hardware. Luca Massaron, a data scientist with a long experience in data modeling and NLP, walks readers through the complete pipeline. The book covers when to fine-tune versus when to use retrieval-augmented generation or advanced prompting, then moves into hands-on work with base model selection from families including Gemma, Qwen, Phi, and Llama, dataset preparation, synthetic data generation, and fine-tuning with LoRA and QLoRA—using tools like Hugging Face’s PEFT, TRL, and bitsandbytes. Whether you are a developer building specialized AI agents, a technical leader evaluating build-versus-buy decisions, or a ML engineer ready to move beyond off-the-shelf APIs, this book delivers the end-to-end knowledge to transform a general-purpose model into a production-ready, domain-specific tool. The final chapters extend that foundation toward autonomous agents and what’s next for small language models. 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.

Vergelijk aanbieders (1)

Sorteren op:

€ 53,99 Gratis verzending

Beschrijving (1)

Smaller, specialized AI models are overtaking their larger counterparts—here’s how to build them On Hugging Face, the central repository for open-source AI, small language models (SLMs) are now downloaded more often than larger ones. A shift is underway: organizations are moving away from general-purpose APIs toward domain-specific models fine-tuned on their own data. But fine-tuning a language model demands more than swapping in a new dataset. It requires decisions at every stage—from choosing whether fine-tuning is even the right approach to deploying the finished model on consumer hardware. Luca Massaron, a data scientist with a long experience in data modeling and NLP, walks readers through the complete pipeline. The book covers when to fine-tune versus when to use retrieval-augmented generation or advanced prompting, then moves into hands-on work with base model selection from families including Gemma, Qwen, Phi, and Llama, dataset preparation, synthetic data generation, and fine-tuning with LoRA and QLoRA—using tools like Hugging Face’s PEFT, TRL, and bitsandbytes. Whether you are a developer building specialized AI agents, a technical leader evaluating build-versus-buy decisions, or a ML engineer ready to move beyond off-the-shelf APIs, this book delivers the end-to-end knowledge to transform a general-purpose model into a production-ready, domain-specific tool. The final chapters extend that foundation toward autonomous agents and what’s next for small language models. 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.


Productspecificaties

EAN
  • 9781394430970
Maat


Prijshistorie

Prijzen voor het laatst bijgewerkt op:

Uitgelichte Keuze
53,99
Naar shop