Skip to main content
CF

Machine Learning with Hugging Face Bootcamp: Zero to Mastery

18h 27m 9s
English
Paid

Learn to apply machine learning using the Hugging Face ecosystem — from scratch to a professional level!

This practice-oriented course will guide you through the entire journey — from training models to deploying them. We start with the basics, gradually advancing to real machine learning engineering skills, ensuring you enjoy the process!

Why Choose This Machine Learning Course?

Discover why this comprehensive and engaging online course stands out. Master modern machine learning tools through real projects. With minimal theory and maximum practice, you'll not only understand how everything works but also gain the ability to apply the knowledge to real-world tasks.

About Hugging Face

Hugging Face is akin to a "homepage" for artificial intelligence. It's a platform where companies like OpenAI, Google, and Apple share their open models. Engineers and researchers create their own projects and portfolios, fostering a collaborative AI environment.

Course Highlights: What You Will Learn

  • Hugging Face Transformers — A powerful library for working with machine learning models in text, images, audio, video, and multimodal tasks.
  • Hugging Face Datasets — A convenient tool for accessing datasets in NLP, Computer Vision, and Audio.
  • Hugging Face Hub — An online platform for collaboration, model sharing, and project publication.
  • And much more!

Practical Experience with Real Projects

The entire training is based on real projects. You will write code, train, and fine-tune real ML models: from text classification and object detection to working with large language and multimodal models.

Ready to Start?

Are you ready to dive into the world of machine learning with Hugging Face and become an AI master? Welcome to the course!

Additional

  • Course GitHub: https://github.com/mrdbourke/learn-huggingface (be sure to give it a star!)
  • Course book: learnhuggingface.com

The video lectures are based on the materials in the book (and all of the materials in the book come from the GitHub). Any extra resources or links you need will be available in the book too.

About the Author: Zero To Mastery

Zero To Mastery thumbnail

Zero To Mastery (ZTM) is a Toronto-based online coding academy founded by Andrei Neagoie, originally a senior developer at large Canadian tech firms before turning to teaching full-time. The academy's signature is the cohort-based bootcamp track combined with a deep self-paced course library, all aimed at career-changers and self-taught developers preparing to land software-engineering roles at top companies.

The instructor roster has grown well beyond Andrei to include other senior practitioners: Daniel Bourke (machine learning), Aleksa Tešić (DevOps), Jacinto Wong, and others. Courses cover the full software-engineering career path: web development with React and Next.js, Python, machine learning and deep learning, DevOps and cloud, system design, mobile, and the algorithm / data-structure interview prep that gates engineering jobs.

The CourseFlix listing under this source carries over 120 ZTM courses spanning that full range. Material is paid; ZTM itself runs on a monthly / annual membership model. The teaching style favours long-form, project-based courses where students build complete portfolio-quality applications rather than disconnected feature tutorials.

Watch Online 106 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 106 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Machine Learning with Hugging Face Bootcamp: Zero to Mastery
All Course Lessons (106)
#Lesson TitleDurationAccess
1
Machine Learning with Hugging Face Bootcamp: Zero to Mastery Demo
01:49
2
Overview
05:03
3
Introduction to Text Classification
05:44
4
What We're Going To Build!
07:22
5
Getting Setup: Adding Hugging Face Tokens to Google Colab
05:53
6
Getting Setup: Importing Necessary Libraries to Google Colab
09:36
7
Downloading a Text Classification Dataset from Hugging Face Datasets
16:01
8
Preparing Text Data for Use with a Model - Part 1: Turning Our Labels into Numbers
12:49
9
Preparing Text Data for Use with a Model - Part 2: Creating Train and Test Sets
06:19
10
Preparing Text Data for Use with a Model - Part 3: Getting a Tokenizer
12:54
11
Preparing Text Data for Use with a Model - Part 4: Exploring Our Tokenizer
10:27
12
Preparing Text Data for Use with a Model - Part 5: Creating a Function to Tokenize Our Data
17:58
13
Setting Up an Evaluation Metric (to measure how well our model performs)
08:54
14
Introduction to Transfer Learning (a powerful technique to get good results quickly)
07:11
15
Model Training - Part 1: Setting Up a Pretrained Model from the Hugging Face Hub
12:20
16
Model Training - Part 2: Counting the Parameters in Our Model
12:27
17
Model Training - Part 3: Creating a Folder to Save Our Model
03:54
18
Model Training - Part 4: Setting Up Our Training Arguments with TrainingArguments
15:00
19
Model Training - Part 5: Setting Up an Instance of Trainer with Hugging Face Transformers
05:06
20
Model Training - Part 6: Training Our Model and Fixing Errors Along the Way
13:35
21
Model Training - Part 7: Inspecting Our Models Loss Curves
14:40
22
Model Training - Part 8: Uploading Our Model to the Hugging Face Hub
08:02
23
Making Predictions on the Test Data with Our Trained Model
05:59
24
Turning Our Predictions into Prediction Probabilities with PyTorch
12:49
25
Sorting Our Model's Predictions by Their Probability
05:11
26
Performing Inference - Part 1: Discussing Our Options
09:41
27
Performing Inference - Part 2: Using a Transformers Pipeline (one sample at a time)
10:02
28
Performing Inference - Part 3: Using a Transformers Pipeline on Multiple Samples at a Time (Batching)
06:39
29
Performing Inference - Part 4: Running Speed Tests to Compare One at a Time vs. Batched Predictions
10:34
30
Performing Inference - Part 5: Performing Inference with PyTorch
12:07
31
OPTIONAL - Putting It All Together: from Data Loading, to Model Training, to making Predictions on Custom Data
34:29
32
Turning Our Model into a Demo - Part 1: Gradio Overview
03:48
33
Turning Our Model into a Demo - Part 2: Building a Function to Map Inputs to Outputs
07:08
34
Turning Our Model into a Demo - Part 3: Getting Our Gradio Demo Running Locally
06:47
35
Making Our Demo Publicly Accessible - Part 1: Introduction to Hugging Face Spaces and Creating a Demos Directory
08:02
36
Making Our Demo Publicly Accessible - Part 2: Creating an App File
12:15
37
Making Our Demo Publicly Accessible - Part 3: Creating a README File
07:08
38
Making Our Demo Publicly Accessible - Part 4: Making a Requirements File
03:34
39
Making Our Demo Publicly Accessible - Part 5: Uploading Our Demo to Hugging Face Spaces and Making it Publicly Available
18:44
40
Summary Exercises and Extensions
05:56
41
Introduction
10:04
42
Setting Up Google Colab with Hugging Face Tokens
05:52
43
Installing Necessary Dependencies
03:44
44
Getting an Object Detection Dataset
07:38
45
Inspecting the Features of Our Dataset
06:24
46
Creating a Colour Palette to Visualize Our Classes
09:36
47
Creating a Helper Function to Halve Our Image Sizes
04:25
48
Creating a Helper Function to Halve Our Box Sizes
06:02
49
Testing our Helper Functions
04:33
50
Outlining the Steps to Draw Boxes on an Image
06:27
51
Plotting Bounding Boxes on a Single Image Step by Step
19:05
52
Different Bounding Box Formats
08:18
53
Getting an Object Detection Model
06:16
54
Transfer Learning Overview
06:09
55
Downloading our Model from the Hugging Face Hub and Trying it Out
09:27
56
Inspecting the Layers of Our Model
06:54
57
Counting the Number of Parameters in Our Model
10:55
58
Creating a Function to Build Our Custom Model
13:16
59
Passing a Single Image Sample Through Our Model - Part 1
15:47
60
OPTIONAL: Data Preprocessor Model Workflow
08:46
61
Loading Our Models Image Preprocessor and Customizing it for Our Use Case
20:11
62
Exercise: Imposter Syndrome
02:57
63
Discussing the Format Our Model Expects Our Annotations In (COCO)
06:18
64
Creating Dataclasses to Hold the COCO Format
09:55
65
Creating a Function to Turn Our Annotations into COCO Format
12:06
66
Preprocessing a Single Image Sample and COCO Formatted Annotations
07:27
67
Post Processing a Single Output
12:03
68
Plotting a Single Post Processed Sample onto an Image
12:45
69
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 1: Overview
10:45
70
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 2: Replicating Scores by Hand
28:33
71
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 3: Replicating Labels by Hand
12:33
72
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 4: Replicating Boxes by Hand Overview
10:24
73
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 5: Replicating Boxes by Hand Implementation
17:41
74
OPTIONAL: Reproducing Our Models Post Processed Outputs by Hand - Part 6: Plotting Our Manual Post Processed Outputs on an Image
06:44
75
Preparing Our Data at Scale - Part 1: Concept Overview
09:22
76
Preparing Our Data at Scale - Part 2: Creating Train Validation and Test Splits
12:14
77
Preparing Our Data at Scale - Part 3: Preprocessing Multiple Samples at a Time Overview
08:17
78
Preparing our Data at Scale - Part 4: Making a Function to Preprocess Multiple Samples at a Time
21:38
79
Preparing our Data at Scale - Part 5: Applying Our Preprocessing Function to Our Datasets
09:38
80
Preparing Our Data at Scale - Part 6: Creating a Data Collation Function
12:20
81
Training a Custom Model - Part 1: Overview
07:43
82
Training a Custom Model - Part 2: Creating a Model and Folder to Save Our Model to
04:12
83
Training a Custom Model - Part 3: Creating TrainingArguments for Our Model Overview
12:54
84
Training a Custom Model - Part 4: Creating our First TrainingArguments
11:12
85
Training a Custom Model - Part 5: Finishing Off the TrainingArguments
12:40
86
Training a Custom Model - Part 6: OPTIONAL - Creating a Custom Optimizer for Different Learning Rates
16:06
87
Training a Custom Model - Part 7: Creating an Evaluation Function for Our Model Overview
13:09
88
Training a Custom Model - Part 8: Creating an Evaluation Function for Our Model Targets Processing
22:50
89
Training a Custom Model - Part 9: Creating an Evaluation Function for Our Model Predictions Processing
13:53
90
Training a Custom Model - Part 10: Training Our Model with Trainer
12:54
91
Training a Custom Model - Part 11: Plotting Our Models Loss Curves
08:36
92
Evaluating Our Model on the Test Dataset
11:14
93
Making Predictions on Test Data and Visualizing Them
24:21
94
Plotting Our Models Predictions vs. the Ground Truth Images
12:01
95
Trying Our Model on Images from the Wild
09:50
96
Uploading Our Trained Model to the Hugging Face Hub
10:47
97
Turning Our Model into a Demo - Part 1: Gradio and Hugging Face Spaces Overview
10:11
98
Turning Our Model into a Demo - Part 2: Creating an App File Overview
07:10
99
Turning Our Model into a Demo - Part 3: Building the Main Function of Our App File
27:33
100
Turning Our Model into a Demo - Part 4: Finishing Off Our App File and Testing Our Demo
09:57
101
Turning Our Model into a Demo - Part 5: Creating a Readme and Requirements File
03:32
102
Turning Our Model into a Demo - Part 6: Getting Example Images for Our Demo
08:20
103
Turning Our Model into a Demo - Part 7: Uploading Our Demo to the Hugging Face Hub
17:19
104
Turning Our Model into a Demo - Part 8: Embedding Our Demo into Our Notebook
03:45
105
Summary, Extensions and Extra-Curriculum
06:16
106
Thank You!
01:18
Unlock unlimited learning

Get instant access to all 105 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Related courses

Frequently asked questions

What are the prerequisites for enrolling in this course?
The course is designed to take you from scratch to a professional level, so no prior experience with machine learning is required. However, familiarity with programming concepts and Python will be beneficial since the course involves writing code and using libraries like Hugging Face Transformers and PyTorch.
What projects will I build during the course?
You will work on multiple real projects, including text classification and object detection models. The course involves preparing text data, training models using Hugging Face Transformers, deploying models on Hugging Face Spaces, and building demos with tools like Gradio.
Who is the target audience for this course?
This course is suitable for anyone interested in learning machine learning using the Hugging Face ecosystem, from beginners to those with some prior experience who wish to deepen their understanding and skills in applying machine learning models to real-world tasks.
How does the depth of this course compare to other machine learning courses?
The course offers a practical, project-based approach, focusing on mastering modern machine learning tools such as Hugging Face Transformers and Datasets. It provides minimal theory with maximum practical experience, which can be beneficial for those looking to apply their knowledge directly in real-world scenarios.
What specific tools or platforms will I learn to use?
You will learn to use Hugging Face Transformers for working with machine learning models, Hugging Face Datasets for accessing various datasets, and Hugging Face Hub for collaboration and model sharing. The course also covers using Google Colab for setting up your environment and PyTorch for making predictions.
What topics are not covered in this course?
The course does not cover machine learning theory in depth, as it emphasizes practical application. It also does not focus on advanced mathematical concepts or other machine learning frameworks outside the Hugging Face ecosystem and PyTorch.
What is the time commitment required for this course?
With a total of 106 lessons, the course requires a significant time investment to fully grasp the content and complete the practical projects. The exact time required can vary depending on your prior experience and familiarity with the tools and concepts introduced in the course.