Learn about MLOps by deploying your own ML pipelines in Google Cloud. You'll solve a number of exercises and challenges to run pipelines in Vertex AI, continuously monitor your models, and promote your artifacts to a production environment.
As a hackathon attendee, simply follow this notebook series in your Vertex AI Workbench instance:
- Health check - start here
- Run pipelines
- Promote model
- Challenge: Model monitoring
- Challenge: Real-time predictions
❗Note: This workshop has been designed to be run in Vertex AI Workbench. Support for running the workshop locally is provided, but we recommend Vertex AI Workbench for the best experience.
The notebooks are self-contained but instructors of this hackathon are asked to prepare the following for hackathon attendees.
- Create 3x Google Cloud projects (dev, test, prod)
- Use
make deploy
to deploy resources in each of them. Checkout for the workflow infrastructure setup notebook.# ensure env.sh references dev project make deploy env=dev # ensure env.sh references test project make deploy env=test # ensure env.sh references prod project make deploy env=prod
- Update
terraform/users.tfvars
- Ensure
env.sh
references the dev project and runmake deploy env=dev
-
Add each user with their Google account with the following
Viewer
role -
Create Cloud Build repo: Note: You might need to enable the Secret Manager API.
-
Create Cloud Build Service Account with IAM roles:
- Artifact Registry Writer
- Logs Writer
- Storage Admin
- Vertex AI User
- Grant role "Service Account User" for this SA on
[email protected]
-
Create 3x Cloud Build triggers. For each use the settings below and reference the corresponding
cloudbuild/<trigger>.yaml
file:- Event: Pull Request
- Source:
- Repository: 2nd gen
- Base branch:
^develop$
- Comment control: Required
- Configuration:
- Type: Cloud Build configuration file
- Location: Repository
- Cloud Build configuration file:
/cloudbuild/<trigger-name>.yaml
- Advanced:
- Service account:
[email protected]
- Service account:
Note: Trigger
e2e-tests
requires the following substitution variables:
- Add each user with their Google account with the following
Viewer
role - Create Cloud Build repo:
- Create 1x Cloud Build trigger:
- Event: Push new tag
- Source:
- Repository: 2nd gen
- Base branch:
.*
- Configuration:
- Type: Cloud Build configuration file
- Location: Repository
- Cloud Build configuration file:
/cloudbuild/release.yaml
- Advanced:
- Service account:
[email protected]
- Service account:
- Create Cloud Build Service Account with IAM roles:
- Artifact Registry Writer
- Logs Writer
- Storage Admin
- Vertex AI User
- Shutdown Workbench instances at the end of the day
- Delete user branches in this repo
- Delete user tags in this repo
- Delete 3x projects