May 2025
Intermediate to advanced
538 pages
13h 11m
English
In this design pattern, you’ll learn about effective strategies for fine-tuning pre-trained language models.
Fine-tuning LLMs addresses a fundamental optimization problem in transfer learning: Pre-training on large datasets helps LLMs learn general language skills and knowledge, but the differences between the pre-training data and the data for specific tasks can reduce performance. Fine-tuning uses a smaller, carefully chosen dataset for the task to update the model, making it better suited to the task’s needs. This process retains useful knowledge from pre-training while refining the model’s ability to perform effectively on the target task.
In this chapter, we’ll be covering the following topics:
Read now
Unlock full access