
Build a complete production-grade MLOps pipeline on Google Cloud end-to-end using Vertex AI, Gemini models via Vertex AI Studio, and Kubeflow Pipelines.
Join the course discord server to ask questions during labs and assignments. Use the GCP ML Ops channel for help, with links in the resource section.
Learn to create a Google Cloud Platform trial account to access $300 in free credits, using a Gmail ID and credit card details, with no charges unless you upgrade.
Download and install the gcloud CLI, test the installation, create a Google Cloud project, authenticate with gcloud auth login, and configure the project with gcloud config set project.
Install python 3.12, the gcloud cli, docker desktop, and git; set up a virtual environment and a billing-enabled GCP project. Containerize ml models for deployment.
Explore end-to-end ml ops on Google Cloud, from MLOps fundamentals and ci/cd for ml models to continuous training with Airflow, Vertex AI workflows, and model versioning.
Explore Google Cloud Platform services for data science and ML, from Python and Docker workflows to Vertex AI training, endpoints, experiments, explainability, feature store, and pipelines.
Define MLOps as machine learning plus operations and show how automated pipelines, data versioning, experiment tracking, and model registry connect data science to production.
Learn to build a production ml ops loop on Google Cloud, from clean data and feature consistency to training, model registry, online and batch predictions, and automated retraining.
Learn how continuous integration and deployment apply to data science and machine learning on Google Cloud, using GitHub or GitLab, Cloud Build, automated tests, and automated deployment with monitoring.
Explain container registry for Docker images and artifact registry for all artifacts, and show how both support CI/CD on Google Cloud by storing built images and artifacts.
Enable container registry, artifact registry, and cloud build APIs in your GCP account to support the labs, then install Python 3.6+ along with Flask and pytest on your local system.
Explore Cloud Run, a serverless, fully managed container service on Google Cloud that scales on demand for web apps, APIs, event-driven workloads, and model serving, with CI/CD for Flask-based apps.
Containerize and deploy a Flask app to Cloud Run, ingest a CSV from a GCS bucket into BigQuery, push container image to container and artifact registries, and enable GitHub CI/CD.
Containerize a Flask app, push the image to container registry and artifact registry, deploy to Cloud Run, and create a BigQuery table to ingest data from a US states CSV.
Demonstrate generating and adapting unit tests for a Flask app with PyTest using ChatGPT, verify 50-row inputs and a 200 response, and run tests locally before deploying to Cloud Run.
Understand cloudbuild as a fully managed, serverless ci cd platform on Google Cloud that builds, tests, and deploys applications, defines yaml-defined steps, and maintains audit logs with GCP integrations.
Learn to deploy a Flask app on Google Cloud with Cloud Build: build the Docker image, push, test, deploy to Cloud Run, and configure permissions.
Create a GitHub repo, upload cloudbuild.yaml, dockerfile, main.py, requirements.txt, and test main, then connect the repo to Cloud Build triggers on the main branch using commit sha for traceability.
Learn end-to-end MLOps on Google Cloud by training an XGBoost model for in-vehicle coupon recommendations, serving predictions through a Flask app, and deploying with Cloud Run and Cloud Build.
Deploy and test a Flask model server locally by loading a pickle artifact, serving predictions at /predict via json payloads, and validating with Pytest across preprocess and port configuration.
Deploy the xgboost coupon model as a Flask service on Cloud Run using Cloud Build. Upload the pickle to a GCS bucket, and update main.py to load from the bucket.
Explore A/B testing for ML models on Cloud Run by comparing model versions, either via separate endpoints or traffic split behind the same endpoint, with a practical 80/20 example.
Deploy a new version of the same machine learning model by tuning xgboost hyperparameters, saving a model pickle, uploading to a gcs bucket, and routing traffic between cloud run revisions.
Productionize a bike rentals regression model using a random forest and deploy a flask api that serves predictions via http post on Google Cloud.
Examine a bank marketing campaign dataset for a binary classification using XGBoost, with preprocessing (label encoding, bucketing, scaling), oversampling, and model training and evaluation, as groundwork for continuous training.
Learn how continuous training automates end-to-end machine learning ops on Google Cloud, validating data, retraining on new data, evaluating performance, deploying updated models, and monitoring pipelines.
Orchestrate end-to-end machine learning pipelines with Airflow or Cloud Composer on GCP to enable continuous training, data validation, retraining, evaluation, and artifact deployment, with metrics in BigQuery and alerts.
Create a GCP composer environment (Airflow 2) and a Vertex AI workbench notebook; enable APIs, set US central 1, and update with requirements.txt via gcloud.
Execute cloud model training on GCP using Jupyter Notebook, log metrics to BigQuery, save artifacts to GCS, and enable continuous training with Airflow.
Execute an airflow dag for a machine learning workflow by validating input data, evaluating metrics against thresholds, and deploying the model artifact to a GCS bucket with BigQuery metrics.
Demonstrates an end-to-end continuous training pipeline in Airflow, from validating CSV inputs to model evaluation, logging results, and storing artifacts in GCS and BigQuery.
We describe a daily airflow continuous training pipeline that deploys new model artifacts to a GCS bucket and serves predictions on Cloud Run. Alerts help diagnose failures and data issues.
Set up automated email alerts for training status below one, signaling missing artifacts in the GCS bucket, by creating log-based metrics with Logs Explorer.
Describe CI/CD for model training: containerize the training script in the dags folder, run tests on cloud build, and deploy to the airflow gcs bucket.
Learn to implement CI/CD for model training on Google Cloud, using cloud-build, pytest, and GitHub, including building Docker images, running tests, and deploying to Airflow DAGs.
Set up cloud build triggers by uploading required files to your GitHub repository, connecting the repo to Cloud Build, and creating a trigger for pushes to the main branch.
Set up end-to-end ML ops on Google Cloud by implementing continuous training for a marketing ROI regression model, with Vertex AI, BigQuery metrics, and a scheduled end-to-end pipeline.
Set up a ci cd pipeline for the data science roi model with cloud build, modularized training code, pytest tests, a GitHub repository, cloudbuild.yaml, and a build trigger.
Deploy a Flask-based model serving app to Google Cloud Run, loading a joblib artifact from local or cloud storage, with logging and curl tests for online predictions.
Explore Vertex AI on Google Cloud to build, register, and deploy end-to-end XGBoost models with CI-CD, including custom training, containers, model registry, and real-time endpoints.
Explore Vertex AI custom training, containers, and compute options for running jobs on Google Cloud. Compare pre-built versus custom containers, leverage hyperparameter tuning, and save models to Google Cloud Storage.
Predict hourly bike rentals using weather, time, and seasonal features with a random forest regressor, and train, register, and deploy the model on Vertex AI.
Train a bike share regression model on Vertex AI via web console and gcloud CLI; build a docker image, run training, and store the joblib artifact in GCS.
Learn how Vertex AI model registry centralizes versioning, metadata, and deployment to endpoints, with aliases to decouple versions and enable zero-downtime updates in the ML lifecycle.
Register a trained bike-share model in Vertex AI using the Python SDK, and attach versions and aliases. Learn to list, compare versions, and promote a challenger to champion in production.
Deploy models from the model registry to a live endpoint, use canary traffic splits to test the challenger, then promote it to production and undeploy the old champion.
Execute online inference with a 90-10 traffic split between champion and challenger models, then run batch predictions via Python SDK on a GCS CSV and interpret the log counts.
Deploy a production-ready prediction API by wrapping a Vertex AI endpoint with a Flask app on Cloud Run, enabling a scalable rest API with pre- and post-processing.
Train a model in Vertex AI, deploy to a model registry, and run batch and online predictions via endpoints, while implementing CI/CD and continuous training on GCP with airflow.
Learn to implement end-to-end ci/cd on Vertex AI using Cloud Build, automating training, model registry upload, and deploying to an endpoint with gcloud commands and cloudbuild.yaml.
Train a scikit-learn classifier with Vertex AI custom training, register it in the model registry, and deploy to an autoscaled online endpoint to enable real-time cart conversion scoring on GCP.
Train a scikit-learn classifier on Vertex AI to predict product returns, register and deploy the model to an auto-scaling endpoint, and score new orders from GCS before cleaning up.
Explore Kubeflow pipelines as a platform for composing, deploying, and managing end-to-end ML workflows on Kubernetes, with Vertex AI Gist pipelines and seamless integration for data science.
Explore Kubeflow pipelines: two components—component decorator turning functions into steps and the DSL.pipeline decorator defining the pipeline—each run as Docker images and compiled to Json for Vertex AI.
Deploy a simple two-step Kubeflow pipeline for a coupon recommendation model using xgboost, validating the input CSV before training and logging metrics to Google Cloud Storage.
Trigger a Kubeflow pipeline by loading a compiled json and invoking it with the Python SDK to enable continuous training or scheduled runs via cloud scheduler, with deployment options.
Deploy an end-to-end Kubeflow pipeline that validates, trains, and deploys the trained model to a Vertex AI endpoint and model registry.
Deploy a credit scoring classifier using XGBoost in Vertex Pipelines, building a two-task pipeline for validation and training, then an end-to-end pipeline for deployment with metrics logging.
Explore Vertex AI experiments to prototype and compare model performance across different input parameters and hyperparameters, logging metrics and managing runs to identify the best model.
Train an xgboost model with multiple hyperparameter combinations using Vertex AI experiments and Kubeflow pipelines, and compare accuracy, precision, and recall across runs.
Run a lab that compares XGBoost, random forest, and logistic regression classifiers using flexible hyperparameters and Kubeflow pipelines in a Jupyter notebook workflow.
Run two experiments for hyperparameters and model selection in regression task, comparing root mean square error to identify the best model using training_with_hyperparams.py and training_with_models.py in Berkshire regression model folder.
Tune hyperparameters efficiently with Vertex AI, using grid search, random search, or bayesian optimization, to optimize model performance with a defined objective metric and parallel trials.
Execute a hyperparameter tuning job for the bike rentals regression model in Vertex AI, uploading the IPython notebook, preparing a custom trainer with Task.py, and optimizing RMSE with GCS.
Programmatically tune xgboost hyperparameters to maximize accuracy by exploring n_estimators 35–40 and learning_rate 0.2–0.5 for the in-vehicle coupon recommendation model, following the lab assignment.
Explore how Vertex AI explainability reveals why a model predicts outcomes, using integrated gradients, x ray, and Sample Shapley to assess feature contributions for batch and online predictions.
Deploy a trained model to an endpoint with explainability parameters by uploading to the model registry and using sample attribution with a path count to assess feature contributions.
Execute explainability for online predictions by retrieving input attributions and feature contributions, compare baseline and instance outputs, and interpret zero versus nonzero feature impacts.
Enable explainability for batch predictions with the Python SDK by setting generate_explanation and reviewing attributions, baseline values, and feature contributions in the results.
Perform explainability for xgboost models. Train with Vertex AI, upload to model registry with explanation metadata, deploy to a Vertex endpoint, and run online and batch predictions with Shapley attribution.
explore model versioning with the Vertex AI Model Registry, deploying multiple versions under the same parent model for online and batch predictions.
Deploy and manage multiple XGBoost model versions in Google Cloud's model registry, using version aliases, default settings, and parent-child relationships, then route traffic to endpoints and run batch predictions.
Explore Vertex AI feature store, a fully managed centralized repository for features, with entities and entity types, enabling cross-team reuse and data ingestion for credit scoring models.
Create a feature store named fs credit scoring, define four entities and their features in a notebook on Vertex AI workbench, using credit request id as a join key.
Ingest data from a pandas dataframe into four feature store entities for credit scoring, using update time, feature ids, and entity id, via the ingest entity features notebook.
Read data from a Vertex AI feature store into a pandas dataframe, using online and batch serving, and specify feature IDs and entity IDs for retrieval.
Explore AutoML on Vertex AI to automate model building, algorithm selection, and hyperparameter tuning, enabling rapid prototyping and production-ready results with pre-trained models on small datasets and minimal coding.
Deploy a tabular AutoML classification model on Vertex AI using a pet dataset, train with an 80/10/10 split, deploy to an endpoint, and generate yes/no probability predictions.
Train and deploy a regression model with AutoML on Vertex AI by uploading CSV data to GCS, training to minimize RMSE, and deploying an endpoint for online predictions.
Explore generative AI within Google Cloud MLOps, grounding LLMs on real data and deploying Gemini across hands-on labs with evaluation, monitoring, and production concerns.
Learn the core concepts of llm ops: tokens, context windows, temperature, top k and top p, system prompts, and few-shot prompting, while exploring grounding, rag, and embeddings for semantic search.
Launch your first Gemini call with the Python SDK in Vertex AI, mastering generateContent, system instructions, multi-turn chat, multi-modal inputs, streaming, and token counting for cost control.
Apply structured extraction by defining pydantic models for invoices and resumes, and use a response schema to return typed data for reliable downstream ingestion.
Deploy a production-ready gemini-based document summarization service on Cloud Run by wrapping it in a web app and a docker container, exposing health, summarize, and summarize_gcs routes.
Deploy a Gemini-powered ticket triage API on Cloud Run that returns a structured JSON with category and priority enums and a one-line reason for routing.
Learn how function calling links Gemini to live systems on Google Cloud using two tools, order status and shipping estimate, through automatic and manual modes in the GenAI SDK.
Address LLM hallucinations through grounding with live external sources and retrieval augmented generation. Retrieve relevant internal documents first, then generate with citations to real sources.
This lab demonstrates grounding with web search and rag, building a private corpus with embeddings and citations to curb hallucinations in ml ops on Google Cloud.
Explore batch inference with Gemini, contrasting online latency and cost, and learn to run asynchronous Vertex AI batch jobs using JSONL inputs and cloud storage.
Implement batch predictions on Vertex AI Workbench using a 200-ticket csv, showing end-to-end batch inference, jsonl inputs, and correlating outputs to ticket ids across five categories.
Learn to evaluate LLM outputs with structured scoring using Vertex AI GenAI Evaluation Service, enabling regression testing and migration decisions with model-based metrics like summarization quality, groundedness, and safety.
Evaluate Gemini outputs with a Python SDK and an eval dataset, then compare summarization quality and groundedness to guide an AB migration decision between Flash and Gemini Pro.
Implement configurable safety filters and audit blocked responses to safeguard real-user interactions. Reduce costs with context caching and token management, and ensure observability and capacity with logging and evaluation.
Classify a backlog of product reviews using Gemini batch prediction to generate sentiment and topic labels. Build an end-to-end batch inference pipeline that processes 2000 reviews from jsonl to dashboards.
Assess a Gemini model upgrade with an objective evaluation workflow, scoring summarization quality and groundedness on 30 real cases, head-to-head Gemini 2.5 Flash versus Pro to defend an upgrade decision.
Google Cloud Platform is gaining momentum in today's cloud landscape, and MLOps is becoming indispensable for streamlined machine learning projects
In the fascinating journey of Data Science, there's a significant step between creating a model and making it operational. This step is often overlooked but is crucial – it's called Machine Learning Ops (MLOps). Google Cloud Platform (GCP) offers some powerful tools to help streamline this process, and in this course, we're going to delve deep into them.
Topics covered in the course :
CI/CD Using Cloud Build,Container and Artifact Registry
Continuous Training using Airflow for ML Workflow Orchestration:
Writing Test Cases
Vertex AI Ecosystem using Python
Kubeflow Pipelines for ML Workflow and reusable ML components
Deploy Useful Applications using PaLM LLM of GCP Generative AI
Why Take This Course?
Tailored for Beginners with programming background: A basic understanding and expertise of data science is enough to start. We'll guide you through everything else.
Practical Learning: We believe in learning by doing. Throughout the course, real-world projects will help you grasp the concepts and apply them confidently.
GCP Professional ML Certification Prep: While the aim is thorough understanding and implementation, this course will also provide a strong foundation for those aiming for the GCP Professional ML Certification.
Your Takeaways
By the end of this course, you won't just understand the theory behind MLOps, you'll be equipped to implement it. The practical experience gained will empower you to handle real-world ML challenges with confidence.
The relevance of machine learning in today's world is undeniable, and with the rise of its importance, there's an increasing demand for professionals skilled in MLOps. This course is designed to bridge the gap between model development and operational excellence, making ML more than just a coding exercise but a tangible asset in solving real-world problems.
So, if you're eager to elevate your ML journey and understand how to make your models truly effective on a platform as powerful as Google Cloud, this course awaits you. Dive in, explore, learn, and let's make ML work for the real world together!