
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create a Cloud Storage Bucket.
/ 5
Add the Editor permission for Cloud Build service account
/ 10
Creating an instance of AI Platform Pipelines
/ 20
Create an instance of AI Platform Notebooks
/ 20
Create bigquery dataset, table and build the images and push it to your project's Container Registry
/ 25
Deploy a KubeFlow Pipeline
/ 10
Create a Kubeflow Pipeline run
/ 10
In this lab, we will create containerized training applications for ML models in TensorFlow, PyTorch, XGBoost, and Scikit-learn. Will will then use these images as ops in a KubeFlow pipeline and train multiple models in parallel. We will then set up recurring runs of our KubeFlow pipeline in the UI.
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Sign in to Qwiklabs using an incognito window.
Note the lab's access time (for example, 1:15:00
), and make sure you can finish within that time.
There is no pause feature. You can restart if needed, but you have to start at the beginning.
When ready, click Start lab.
Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.
Click Open Google Console.
Click Use another account and copy/paste credentials for this lab into the prompts.
If you use other credentials, you'll receive errors or incur charges.
Accept the terms and skip the recovery resource page.
Cloud Shell is a virtual machine that contains development tools. It offers a persistent 5-GB home directory and runs on Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources. gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab completion.
Click the Activate Cloud Shell button () at the top right of the console.
Click Continue.
It takes a few moments to provision and connect to the environment. When you are connected, you are also authenticated, and the project is set to your PROJECT_ID.
(Output)
(Example output)
(Output)
(Example output)
Click Check my progress to verify the objective.
Click Check my progress to verify the objective.
In the Google Cloud Console, on the Navigation menu (), scroll down to AI Platform and pin the section for easier access later in the lab.
Navigate to AI Platform > Pipelines.
Then click New Instance.
Click Configure.
To create cluster select Zone as
Scroll to the bottom of the page, accept the marketplace terms, and click Deploy. You will see the individual services of KFP deployed to your GKE cluster. Wait for the deployment to finish before proceeding to the next task.
In Cloud Shell, run the following to configure kubectl command line access
Click Check my progress to verify the objective.
An instance of Vertex AI Platform Notebooks is used as a primary experimentation/development workbench.
In the Cloud Console, on the Navigation menu, click Vertex AI > Workbench.
Click ENABLE NOTEBOOKS API if it is not enabled yet.
On the Workbench page, click CREATE NEW.
In the New instance dialog, select
Next, select Debian 10 as the Operating system, and select Python 3 (with Intel MKL and CUDA 11.3) as the Environment.
Leave all other fields as default, and then click Create.
Click Open JupyterLab. A JupyterLab window will open in a new tab.
Once the “Build recommended” pop up displays, click Build. If you see the build failed, ignore it.
Click Check my progress to verify the objective.
To clone the mlops-on-gcp
notebook in your JupyterLab instance:
In JupyterLab, click the Terminal icon to open a new terminal.
At the command-line prompt, type in the following command and press Enter:
Confirm that you have cloned the repository by double clicking on the mlops-on-gcp
directory and ensuring that you can see its contents. The files for all the Jupyter notebook-based labs throughout this course are available in this directory.
Run the following command to install necessary packages.
In JupyterLab UI, navigate to mlops-on-gcp/continuous_training/kubeflow/labs
and open multiple_frameworks_lab.ipynb
.
Clear all the cells in the notebook (look for the Clear button on the notebook toolbar) and then Run the cells one by one. Note the some cells have a #TODO for you to write the code before you run the cell.
When prompted, come back to these instructions to check your progress.
If you need more help, you may take a look at the complete solution by navigating to mlops-on-gcp/continuous_training/kubeflow/solutions
open multiple_frameworks_kubeflow.ipynb
.
Click Check my progress to verify the objective.
Click Check my progress to verify the objective.
Click Check my progress to verify the objective.
In this lab you've learned how to develop, package as a docker image, and run on AI Platform Training to training application.
When you have completed your lab, click End Lab. Qwiklabs removes the resources you’ve used and cleans the account for you.
You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.
The number of stars indicates the following:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2022 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one