8

Advanced Open-Source LLM Fine-Tuning

Introduction

If I were to admit an ulterior motive for writing this book besides helping you understand and use LLMs, it would be to convince you that with the proper data and fine-tuning, smaller open-source models can be as amazing as huge closed-source models like GPT-4, especially for hyper-specific tasks. By now, I hope you understand the advantages of fine-tuning models over using closed-source models via an API. These closed-source models are truly powerful, but they don’t always generalize to what we need—which is why we need to fine-tune them with our own data.

This chapter aims to help you harness the maximum potential of open-source models to deliver results that rival those possible with their ...

Get Quick Start Guide to Large Language Models: Strategies and Best Practices for Using ChatGPT and Other LLMs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.