End-to-End (small) LLM Fine-tuning Tutorial (from data to model to live demo) | On DGX Spark
In this video we fully fine-tune Google's Gemma 3 270M Small Language Model to do structured data extraction.
Because the Gemma 3 270M is quite small in world of LLMs, we're able to do all of the training locally on a NVIDIA DGX Spark (see here for more: https://nvda.ws/4iQXZU4).
The code should also run in Google Colab.
If you have any issues, please let me know in a comment.
Links:
Google Colab Notebook - https://colab.research.google.com/drive/1hV6Gcz8vBRS9t0bYkBp6W1ne_yqG6mJx?usp=sharing
Learn Hugging Face Book Version - https://www.learnhuggingface.com/notebooks/hugging_face_llm_ful…
Watch on YouTube ↗
(saves to browser)
Chapters (9)
Welcome to the Machine Learning Cooking Show
0:57
Why Fine-Tune Your Own Model?
2:47
Ingredients and Preparation
5:45
Understanding the Task and Data
18:27
Formatting Data for the Model
20:41
Testing the Base Model
30:29
Model Fine-Tuning
31:08
Testing the Model with Sample Data
32:26
Setting U
Playlist
Uploads from Daniel Bourke · Daniel Bourke · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Xbox One S Unboxing and Xbox One Comparison
Daniel Bourke
HOW (not) TO BUILD A PULL UP BAR
Daniel Bourke
High Protein Vegan Snack - Crunchy Spicy Chickpeas
Daniel Bourke
Functional Friday | Backyard Workout
Daniel Bourke
Text/Profanity Checker in Python
Daniel Bourke
Drawing Flowers in Python
Daniel Bourke
Functional Friday | Raw Training Australia
Daniel Bourke
My Instagram is Fake - TDBS 15 April 2017
Daniel Bourke
Trying Something New - TDBS April 14 2017
Daniel Bourke
I Finally Realised... - TDBS 16 April 2017
Daniel Bourke
Finding The Right Medium - TDBS 18 April 2017
Daniel Bourke
I'm Camera Shy - TDBS 17 April 2017
Daniel Bourke
Full Day of Eating - Guessing My Macronutrient Ranges
Daniel Bourke
What Is Neuralink??! - TDBS 22 April 2017
Daniel Bourke
I Failed My First Two Years Of University - TDBS 21 April 2017
Daniel Bourke
Disagree and Commit, Words of Wisdom from Jeff Bezos - TDBS 19 April 2017
Daniel Bourke
A Lesson In Movement | Raw Training Australia
Daniel Bourke
My First Time Speaking In Public - TDBS 20 April 2017
Daniel Bourke
What I Would Do Differently At High School - TDBS 23 April 2017
Daniel Bourke
Self-Awareness Is A Super Power - TDBS 24 April 2017
Daniel Bourke
A Template For Cold Emails - TDBS 25 April 2017
Daniel Bourke
800 Calorie Pancake of Peace | High Protein Pancake
Daniel Bourke
3 Benefits of Cold Showers
Daniel Bourke
My First Wedding, Relationships And Public Speaking - TDBS 30 April 2017
Daniel Bourke
I'm Addicted to Learning - TDBS 28 April 2017
Daniel Bourke
FALLING IS FUN | Functional Friday 4
Daniel Bourke
My first HACKATHON! | 100 Days of Code 1
Daniel Bourke
MORE MACHINE LEARNING | 100 Days of Code 2
Daniel Bourke
TensorBoard and learning from Einstein | 100 Days of Code 3
Daniel Bourke
What I Learned From Creating My Own Radio Show - TDBS 101
Daniel Bourke
It's Not All Sunshine
Daniel Bourke
Ego Versus Self
Daniel Bourke
Job Interview Tips and Open Ocean Swim | 100 Days of Code 4
Daniel Bourke
I Want To Help 100,000 People Workout | AI Powered Personal Trainer
Daniel Bourke
MACHINE LEARNING IN 5 MINUTES
Daniel Bourke
COFFEE, YOGA and AWS | 100 Days of Code 5
Daniel Bourke
MY FIRST STARTUP WEEKEND | 100 Days of Code 6
Daniel Bourke
The most valuable skill I've learned
Daniel Bourke
What Is An Expert Generalist?
Daniel Bourke
GENERATING TV SCRIPTS WITH DEEP LEARNING | 100 Days of Code 7
Daniel Bourke
This Is Just The Beginning | TDBS Episode 100
Daniel Bourke
How do you know when to call it quits?
Daniel Bourke
The War of Art & Facing Resistance
Daniel Bourke
I Predicted The Apple Watch In 2004
Daniel Bourke
How I keep myself on track | 100 Days Of Code 8
Daniel Bourke
Short Term vs Long Term Satisfaction
Daniel Bourke
Attention, please
Daniel Bourke
TEACHING BOTS TO PLAY GAMES | 100 Days of Code 9
Daniel Bourke
Udacity Deep Learning Nanodegree Language Translation Project Submission | 100 Days of Code 10
Daniel Bourke
Learning about Generative Adversarial Networks on Udacity | 100 Days of Code 11
Daniel Bourke
Completing Andrew Ng's Machine Learning Course on Coursera | 100 Days of Code 12
Daniel Bourke
Finishing the Treehouse Python Track | 100 Days of Code 13
Daniel Bourke
GENERATING FACES WITH GANs | 100 Days of Code 14
Daniel Bourke
TWO WAYS TO INCREASE YOUR METABOLISM
Daniel Bourke
Graduating From the Udacity Deep Learning Nanodegree | 100 Days of Code 15
Daniel Bourke
SLEEP YOUR WAY TO FAT LOSS
Daniel Bourke
WHAT I'VE LEARNED FROM TALKING TO PEOPLE
Daniel Bourke
GET-TO vs. HAVE-TO
Daniel Bourke
3 Life Principles I Learned From Ray Dalio
Daniel Bourke
PYTHON && POETRY | 100 Days of Code 16
Daniel Bourke
DeepCamp AI