How to Deploy a Machine Learning Model to Google Cloud for 20% Software Engineers (CS329s tutorial)
It's time to reveal the magician's secrets behind deploying machine learning models! In this tutorial, I go through an example machine learning deployment scenario using Google Cloud and an image recognition app called Food Vision 🍔👁.
Get all the code on GitHub - https://github.com/mrdbourke/cs329s-ml-deployment-tutorial
Slides - https://github.com/mrdbourke/cs329s-ml-deployment-tutorial/blob/main/CS329s-deploying-ml-models-tutorial.pdf
Full CS329s syllabus - https://stanford-cs329s.github.io/index.html
Learn ML (my beginner-friendly ML course) - https://dbourke.link/mlcourse
Connect elsewhere:
Web - https://www.mrdbourke.com
Get email updates on my work - https://www.mrdbourke.com/newsletter
Timestamps:
0:00 - Intro/hello
1:42 - Presentation start (what we’re going to cover)
6:00 - Food Vision 🍔👁 (the app we’re building) recipe
11:16 - The end goal we’re working towards (data flywheel)
13:07 - The data flywheel: the holy grail of ML apps
14:57 - Tesla’s data flywheel
17:02 - Food Vision’s data flywheel
18:24 - Deploying a model on the cloud outline
21:14 - Steps we’re going to go through to deploy our app
27:06 - Question: “How do you identify hard samples in your data?”
37:53 - Creating a bucket on Google Storage
45:51 - Uploading to Google Storage from Google Colab
48:02 - Deploying a model to AI Platform
52:50 - Creating an AI Platform Prediction version
58:10 - Creating a Service Account to access our model on Google Cloud
1:02:32 - Authenticating our app with our private Service Account key
1:09:19 - What happens when we run make gcloud-deploy
1:11:27 - Problems you’ll run into when deploying your models
1:20:12 - Extensions you could perform on this tutorial
1:20:49 - Part 2 start (tutorial overtime)
1:28:43 - Dealing with different data shapes
1:32:35 - An error you might run into when using the example app (3 total models deployed)
1:33:20 - Dealing with data size restrictions
1:38:48 - Stepping through the make gcloud-deploy command
1:51:00 - S
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
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
Text/Profanity Checker in Python
Daniel Bourke
Drawing Flowers in Python
Daniel Bourke
Finding The Right Medium - TDBS 18 April 2017
Daniel Bourke
What Is Neuralink??! - TDBS 22 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
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
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
GENERATING TV SCRIPTS WITH DEEP LEARNING | 100 Days of Code 7
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
Graduating From the Udacity Deep Learning Nanodegree | 100 Days of Code 15
Daniel Bourke
WHAT I'VE LEARNED FROM TALKING TO PEOPLE
Daniel Bourke
3 Life Principles I Learned From Ray Dalio
Daniel Bourke
PYTHON && POETRY | 100 Days of Code 16
Daniel Bourke
Physique Update and 6 Things I Wish I Knew Before Starting Gym
Daniel Bourke
The 100 Days is Over! | 100 Days of Code 17
Daniel Bourke
How to Burn Over 100 Calories in 4 Minutes
Daniel Bourke
Solving Sudoku with AI | Learning Intelligence 1
Daniel Bourke
Upper Body Calisthenics Workout in the Park
Daniel Bourke
What is an Adversarial Search Agent? | Learning Intelligence 2
Daniel Bourke
My Self-Created Artificial Intelligence Master's Degree | Learning Intelligence 0
Daniel Bourke
Try Going Over It Again | Learning Intelligence 3
Daniel Bourke
Python and Pullups | Learning Intelligence 4
Daniel Bourke
AI Meets Blockchain! | Learning Intelligence 5
Daniel Bourke
How to Pass the Turing Test + I FAILED | Learning Intelligence 6
Daniel Bourke
Biology and Physics meet Computer Science | Learning Intelligence 7
Daniel Bourke
Udacity Artificial Intelligence Nanodegree Project 3 Progress | Learning Intelligence 8
Daniel Bourke
Passing Project 3 of Udacity's Artificial Intelligence Nanodegree | Learning Intelligence 9
Daniel Bourke
Bayes Networks, Hidden Markov Models and How I Wake Up | Learning Intelligence 10
Daniel Bourke
Udacity AI Nanodegree Progress and Bayes' Rule Explained | Learning Intelligence 11
Daniel Bourke
Udacity AI Nanodegree Project 4 Planning and Progress | Learning Intelligence 12
Daniel Bourke
Finishing Term 1 of Udacity's Artificial Intelligence Nanodegree | Learning Intelligence 13
Daniel Bourke
deeplearning.ai Progress! | Learning Intelligence 14
Daniel Bourke
Coursera Deep Learning Specialization Progress | Learning Intelligence 15
Daniel Bourke
Computer Vision Basics + More deeplearning.ai Progress! | Learning Intelligence 16
Daniel Bourke
My Experience at CodeCamp, Intro to Keras and Failing Hard | Learning Intelligence 17
Daniel Bourke
In-Depth Udacity Deep Learning Nanodegree Review
Daniel Bourke
Completing the Deeplearning.ai Specialization on Coursera | Learning Intelligence 18
Daniel Bourke
You're Never Too Young to Start Learning AI - Learning Intelligence Talks with Shaik Asad
Daniel Bourke
Starting Term 2 of the Udacity Artificial Intelligence Nanodegree | Learning Intelligence 19
Daniel Bourke
Submitting the Computer Vision Capstone Project | Udacity AI Nanodegree | Learning Intelligence 20
Daniel Bourke
Leg Day at World Gym Northlakes ft. Ben Jones Fitness
Daniel Bourke
deeplearning.ai Sequence Models Course Progress | Learning Intelligence 21
Daniel Bourke
Graduating from the deeplearning.ai Coursera Specialization | Learning Intelligence 22
Daniel Bourke
Udacity Artificial Intelligence Nanodegree NLP Concentration Progress | Learning Intelligence 23
Daniel Bourke
Learning How to Build What's Next at Google Cloud On Board Brisbane
Daniel Bourke
More on: ML Pipelines
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
Big Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.
Dev.to AI
The era of the Indian H-1B programmer is over. US graduates will take their place.
Medium · AI
Most People Use AI Wrong. Here’s the System That Actually Works
Medium · AI
Big Tech firms are accelerating AI investments and integration, while regulators and companies focus on safety and responsible adoption.
Dev.to AI
Chapters (24)
Intro/hello
1:42
Presentation start (what we’re going to cover)
6:00
Food Vision 🍔👁 (the app we’re building) recipe
11:16
The end goal we’re working towards (data flywheel)
13:07
The data flywheel: the holy grail of ML apps
14:57
Tesla’s data flywheel
17:02
Food Vision’s data flywheel
18:24
Deploying a model on the cloud outline
21:14
Steps we’re going to go through to deploy our app
27:06
Question: “How do you identify hard samples in your data?”
37:53
Creating a bucket on Google Storage
45:51
Uploading to Google Storage from Google Colab
48:02
Deploying a model to AI Platform
52:50
Creating an AI Platform Prediction version
58:10
Creating a Service Account to access our model on Google Cloud
1:02:32
Authenticating our app with our private Service Account key
1:09:19
What happens when we run make gcloud-deploy
1:11:27
Problems you’ll run into when deploying your models
1:20:12
Extensions you could perform on this tutorial
1:20:49
Part 2 start (tutorial overtime)
1:28:43
Dealing with different data shapes
1:32:35
An error you might run into when using the example app (3 total models deploye
1:33:20
Dealing with data size restrictions
1:38:48
Stepping through the make gcloud-deploy command
🎓
Tutor Explanation
DeepCamp AI