Vertex AI prediction notebook tutorials

This document contains a list of available Vertex AI prediction notebook tutorials. These end-to-end tutorials help you get started using Vertex AI prediction and can give you ideas for how to implement a specific project.

There are many environments in which you can host notebooks. You can:

  • Run them in the cloud using a service like Colaboratory (Colab) or Vertex AI Workbench.
  • Download them from GitHub and run them on your local machine.
  • Download them from GitHub and run them on a Jupyter or JupyterLab server in your local network.

Running a notebook in Colab is a way to get started quickly.

To open a notebook tutorial in Colab, click the Colab link in the notebook list. Colab creates a VM instance with all needed dependencies, launches the Colab environment, and loads the notebook.

You can also run the notebook using user-managed notebooks. When you create a user-managed notebooks instance with Vertex AI Workbench, you have full control over the hosting VM. You can specify the configuration and environment of the hosting VM.

To open a notebook tutorial in a Vertex AI Workbench instance:

  1. Click the Vertex AI Workbench link in the notebook list. The link opens the Vertex AI Workbench console.
  2. In the Deploy to notebook screen, type a name for your new Vertex AI Workbench instance and click Create.
  3. In the Ready to open notebook dialog that appears after the instance starts, click Open.
  4. On the Confirm deployment to notebook server page, select Confirm.
  5. Before running the notebook, select Kernel > Restart Kernel and Clear all Outputs.

List of notebooks

  • Select a service
  • AutoML
  • BigQuery
  • BigQuery ML
  • Custom training
  • Image
  • Ray on Vertex AI
  • Tabular
  • Text
  • Vector Search
  • Vertex AI Experiments
  • Vertex AI Feature Store
  • Vertex AI model evaluation
  • Vertex AI Model Monitoring
  • Vertex AI Model Registry
  • Vertex AI Pipelines
  • Vertex AI Prediction
  • Vertex AI TensorBoard
  • Vertex AI Vizier
  • Vertex AI Workbench
  • Vertex Explainable AI
  • Vertex ML Metadata
  • Video

Services Description Open in
Custom training
Vertex AI Prediction
Deploying Iris-detection model using FastAPI and Vertex AI custom container serving.
Learn how to create, deploy and serve a custom classification model on Vertex AI. Learn more about Custom training. Learn more about Vertex AI Prediction.
  • Train a model that uses flower's measurements as input to predict the class of iris.
  • Save the model and its serialized preprocessor.
  • Build a FastAPI server to handle predictions and health checks.
  • Build a custom container with model artifacts.
  • Upload and deploy custom container to Vertex AI Endpoints.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Custom training
Vertex AI Prediction
Custom training and online prediction.
Learn to use Vertex AI Training to create a custom-trained model from a Python script in a Docker container, and learn to use Vertex AI Prediction to do a prediction on the deployed model by sending data. Learn more about Custom training. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • Upload the trained model artifacts to a Model resource.
  • Create a serving Endpoint resource.
  • Deploy the Model resource to a serving Endpoint resource.
  • Make a prediction.
  • Undeploy the Model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training image classification model for online prediction with explainability.
Learn how to use Vertex AI training and Vertex Explainable AI to create a custom image classification model with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for when the model is deployed.
  • Upload the trained model artifacts and explanations as a model resource.
  • Create a serving endpoint resource.
  • Deploy the model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training tabular regression model for online prediction with explainabilty.
Learn how to use Vertex AI training and Vertex Explainable AI to create a custom tabular regression model with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for when the model is deployed.
  • Upload the trained model artifacts and explanations as a model resource.
  • Create a serving endpoint resource.
  • Deploy the model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training tabular regression model for online prediction with explainabilty using get_metadata.
Learn how to create a custom model from a Python script in a Google prebuilt Docker container using the Vertex AI SDK. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFLow model.
  • Train a TensorFlow model.
  • Retrieve and load the model artifacts.
  • View the model evaluation for the trained model.
  • Set explanation parameters.
  • Upload the model as a Vertex AI model resource.
  • Deploy the Model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the Model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Explaining image classification with Vertex Explainable AI.
Learn how to configure feature-based explanations on a pre-trained image classification model and make online and batch predictions with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Download pretrained model from TensorFlow Hub
  • Upload model for deployment
  • Deploy model for online prediction
  • Make online prediction with explanations
  • Make batch predictions with explanations
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex AI Prediction
Get started with NVIDIA Triton server.
Learn how to deploy a container running Nvidia Triton Server with a Vertex AI model resource to a Vertex AI endpoint for making online predictions. Learn more about Vertex AI Prediction.
  • Download the model artifacts from TensorFlow Hub.
  • Create Triton serving configuration file for the model.
  • Construct a custom container, with Triton serving image, for model deployment.
  • Upload the model as a Vertex AI model resource.
  • Deploy the Vertex AI model resource to a Vertex AI endpoint resource.
  • Make a prediction request.
  • Undeploy the model resource and delete the endpoint.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex AI Prediction
Train and deploy PyTorch models with prebuilt containers on Vertex AI.
Learn how to build, train and deploy a PyTorch image classification model using prebuilt containers for custom training and prediction.
  • Package training application into a Python source distribution
  • Configure and run training job in a prebuilt container
  • Package model artifacts in a model archive file
  • Upload model for deployment
  • Deploy model using a prebuilt container for prediction
  • Make online predictions
Colab
Colab Enterprise
GitHub
Vertex AI Workbench