Using Vertex AI

This page describes the different ways to use Vertex AI in the GDC Sandbox environment, and how to set up to use it.

Usage models for Vertex AI in GDC Sandbox

Vertex AI is a machine learning (ML) platform that lets you train and deploy ML models and AI applications. You can use it on GDC Sandbox in two different ways:

  1. CPU-based: run your workload in your GDC Sandbox cluster, without using GPUs. This option is slower due to running only on CPUs.
  2. GPU-based: take advantage of the GPU support included in the GDC Sandbox AI Optimized SKU, by configuring the workload to use the GPUs associated with the sandbox-gpu-project project.

Deploy GPU container workloads describes how to configure a workload to use GPUs.

Set up to use Vertex AI

The use of Vertex AI on GDC Sandbox is not the same as Google Distributed Cloud (GDC) air-gapped. Rather than using the specialized Vertex AI APIs that are part of the Google Distributed Cloud air-gapped platform, you use the regular Google Cloud version of this API. You need a Google Cloud billing account to use this API.

  1. Visit the Vertex AI environment setup page and:
    1. Create or identify a Google Cloud project,
    2. Make sure that billing is enabled for your project, and
    3. Enable the Vertex AI API.
  2. Authenticate to Vertex AI API. Authentication for APIs can be achieved through various methods tailored to specific requirements - see Authentication methods at Google.
    • To authenticate to Vertex AI API using an API key, generate an API key.
    • To authenticate to Vertex AI API using a service account, create a service account key json file by following the instructions at Create a service account key.

After this, you can install the Vertex AI client library for the language you plan to use. Libraries are available for many languages, including Python, Java, and Go. The example applications on the following pages include instructions for installing the appropriate library.