May 2026
Intermediate
376 pages
9h 52m
English
Now that you understand the fundamentals of domain-specific LLMs, we’ll look at how you can customize popular open source foundation models using your own data. This chapter and chapters 13 and 15 are the only chapters that will cover tuning; most of the book will focus on inference.
Fine-tuning a Transformer model for a given task starts with formatting your dataset for training. In this section, we’ll look at two PyTorch examples using Hugging Face Transformers (https://github.com/huggingface/transformers): an encoder-only model (BERT) ...
Read now
Unlock full access