Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Fine-Tuning LLMs for Tool Use with Example Code

Shaw Talebi via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to fine-tune the Gemma-3-1b-it model for tool use through a comprehensive 26-minute tutorial that combines conceptual understanding with hands-on Python implementation. Explore the fundamentals of fine-tuning and training data requirements before diving into a practical five-step process: defining tools, generating queries, creating and refining traces, fine-tuning the model, and evaluating performance. Follow along with concrete code examples that demonstrate how to enhance large language models' ability to interact with external tools, with access to supporting materials including a GitHub repository, dataset, and the resulting fine-tuned model for further experimentation.

Syllabus

Intro - 0:00
What is Fine-tuning? - 0:16
Training Data - 1:27
Example: Fine-tuning Gemma 3 to Use Tools - 5:34
Step 1: Define Tools - 6:48
Step 2: Generate Queries - 8:49
Step 3: Generate Traces - 10:05
Step 3.5: Refine Traces - 15:57
Step 4: Fine-tune Model - 17:12
Step 5: Evaluate Model - 23:10

Taught by

Shaw Talebi

Reviews

Start your review of Fine-Tuning LLMs for Tool Use with Example Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.