Set up a Google Cloud project for TPUs

This topic describes how to set up your Google Cloud project to use Cloud TPU VMs:

Create a Google Cloud project

  1. In the Google Cloud console, sign in to your Google Account or sign up for a new account.

  2. Create a Google Cloud project. For more information, see Create a project.

  3. Enable billing for your Google Cloud project. For more information, see the Cloud Billing documentation.

    Billing for all Cloud TPU versions uses the standard regional pricing on the Cloud TPU pricing page.

Configure your Google Cloud project for Cloud TPU

You can configure your Google Cloud project using the Cloud Shell, a Compute Engine VM, or your local machine. The Cloud Shell lets you interact with TPU VMs without installing any software. The Cloud Shell disconnects after a period of inactivity. If you're running long-running commands, we recommend installing the Google Cloud CLI on your local machine. For more information on the Google Cloud CLI, see the gcloud Reference.

  1. If you are using a local machine or a Compute Engine VM, install the Google Cloud CLI. The Google Cloud CLI includes the gcloud command you use to work with Google Cloud resources and services.

  2. Configure the gcloud command to use your project.

    export PROJECT_ID=your-project-id
    gcloud