11
Fine-Tuning Models with OpenAI
Concluding Part 2, this chapter explores how to train large language models (LLMs) to specialize in completing a specific task. This is achieved by fine-tuning the model’s parameters, known as weights, through the OpenAI platform. This is quite like the prompt engineering strategy few-shot learning, sometimes referred to as in-context learning, which we introduced earlier in the book as a technique for helping the model to specialize in a particular domain. Fine-tuning, however, is best suited for larger-scale projects where we want to separate the specialization aspect from the actual prompt.
We will delve into a use case where this specialization of the model is required to produce code while avoiding comments ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access