Stay organized with collections
Save and categorize content based on your preferences.
This page provides a brief overview of
Deep Learning VM Images
and describes how to get started using TensorFlow Enterprise with a
Deep Learning VM instance.
In this example, you create a
TensorFlow Enterprise Deep Learning VM instance,
connect to the instance using SSH, open
a JupyterLab notebook, and run a classification tutorial on using
neural networks with Keras.
Overview of Deep Learning VM
Deep Learning VM Images is a set of
virtual machine images optimized for data science and machine
learning tasks. All images come with key ML frameworks and tools
pre-installed. You can use them out of the box on instances with
GPUs to accelerate your data processing tasks.
Deep Learning VM images are available to support many combinations
of framework and processor. There are currently images supporting
TensorFlow Enterprise,
TensorFlow, PyTorch, and generic high-performance computing,
with versions for both CPU-only and GPU-enabled workflows.
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Click Launch on Compute Engine. If you see a project selection window,
choose the project in which to create the instance. If this is the first
time you've launched Compute Engine, you must wait for the initial API
configuration process to complete.
On the New Deep Learning VM deployment page, enter a
Deployment name. This will be the root of your virtual machine name.
Compute Engine appends -vm to this name when creating your instance.
Under Number of GPUs, select None. You won't need them
to complete the instructions in this guide.
Under Framework, select TensorFlow Enterprise 2.3 (CUDA 11.0).
For this example, you can leave the remaining settings as they are.
Click Deploy.
You've just created your first instance of a Deep Learning VM.
After the instance is created, the Deployment
Manager opens. This is where you can
manage your Deep Learning VM instance and other deployments.
Connect with SSH, open a notebook, and run a classification tutorial
Complete these steps to set up an SSH connection to your
Deep Learning VM instance, open a JupyterLab notebook,
and run a tutorial on using neural networks with Keras:
To complete these steps, you can use either
Cloud Shell or any
environment where the Google Cloud CLI can be installed.
You can use the gcloud CLI to interface with your instance.
If you want to use Cloud Shell, in Google Cloud,
in the upper-right corner, click the Activate Cloud Shell
button.
In Cloud Shell
or in a local terminal window, use the following command to
create an SSH connection to your instance.
Replace my-project-id, my-zone,
and my-instance-name with the relevant information.
In your local browser, visit http://localhost:8080 to access a
JupyterLab notebook that is included in your instance by default.
In the notebook, on the left, double-click tutorials to
open the folder, and navigate to and open
tutorials/tf2_course/01_neural_nets_with_keras.ipynb.
Click the run button
play_arrow to
run cells of the tutorial.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Use TensorFlow Enterprise with Deep Learning VM\n\nThis page provides a brief overview of\n[Deep Learning VM Images](/deep-learning-vm/docs)\nand describes how to get started using TensorFlow Enterprise with a\nDeep Learning VM instance.\n\nIn this example, you create a\nTensorFlow Enterprise Deep Learning VM instance,\nconnect to the instance using SSH, open\na JupyterLab notebook, and run a classification tutorial on using\nneural networks with Keras.\n\nOverview of Deep Learning VM\n----------------------------\n\nDeep Learning VM Images is a set of\nvirtual machine images optimized for data science and machine\nlearning tasks. All images come with key ML frameworks and tools\npre-installed. You can use them out of the box on instances with\nGPUs to accelerate your data processing tasks.\n\nDeep Learning VM images are available to support many combinations\nof framework and processor. There are currently images supporting\n[TensorFlow Enterprise](/tensorflow-enterprise/docs),\nTensorFlow, PyTorch, and generic high-performance computing,\nwith versions for both CPU-only and GPU-enabled workflows.\n\nTo see a list of frameworks available, see [Choosing an\nimage](/deep-learning-vm/docs/images).\n\nBefore you begin\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\nCreate a Deep Learning VM instance\n----------------------------------\n\nTo create a TensorFlow Enterprise Deep Learning VM instance,\ncomplete these steps:\n\n1. Go to the Deep Learning VM Cloud Marketplace\n page in the Google Cloud console.\n\n [Go to the Deep Learning VM Cloud Marketplace\n page](https://console.cloud.google.com/marketplace/details/click-to-deploy-images/deeplearning)\n2. Click **Launch on Compute Engine**. If you see a project selection window,\n choose the project in which to create the instance. If this is the first\n time you've launched Compute Engine, you must wait for the initial API\n configuration process to complete.\n\n3. On the **New Deep Learning VM deployment** page, enter a\n **Deployment name** . This will be the root of your virtual machine name.\n Compute Engine appends `-vm` to this name when creating your instance.\n\n4. Under **Number of GPUs** , select **None**. You won't need them\n to complete the instructions in this guide.\n\n | **Note:** If you plan to use GPUs with your TensorFlow Enterprise instance, [check the quotas page](https://console.cloud.google.com/quotas) to ensure that you have enough GPUs available in your project. If GPUs are not listed on the quotas page, or you require additional GPU quota, you can request a quota increase. See [Requesting additional\n | quota](/compute/quotas#requesting_additional_quota) on the Compute Engine [Resource Quotas](/compute/quotas) page.\n5. Under **Framework** , select **TensorFlow Enterprise 2.3 (CUDA 11.0)**.\n\n6. For this example, you can leave the remaining settings as they are.\n\n7. Click **Deploy**.\n\nYou've just created your first instance of a Deep Learning VM.\nAfter the instance is created, the [Deployment\nManager](https://console.cloud.google.com/dm/deployments) opens. This is where you can\nmanage your Deep Learning VM instance and other deployments.\n\nConnect with SSH, open a notebook, and run a classification tutorial\n--------------------------------------------------------------------\n\nComplete these steps to set up an SSH connection to your\nDeep Learning VM instance, open a JupyterLab notebook,\nand run a tutorial on using neural networks with Keras:\n\n1. To complete these steps, you can use either\n [Cloud Shell](https://console.cloud.google.com?cloudshell=true) or any\n environment where the [Google Cloud CLI](/sdk/docs) can be installed.\n You can use the gcloud CLI to interface with your instance.\n\n - If you want to use Cloud Shell, in Google Cloud,\n in the upper-right corner, click the **Activate Cloud Shell**\n button.\n\n - If you want to use gcloud CLI, [download and\n install Google Cloud CLI](/sdk/docs) on your local machine.\n\n2. In [Cloud Shell](https://console.cloud.google.com?cloudshell=true)\n or in a local terminal window, use the following command to\n create an SSH connection to your instance.\n Replace \u003cvar translate=\"no\"\u003emy-project-id\u003c/var\u003e, \u003cvar translate=\"no\"\u003emy-zone\u003c/var\u003e,\n and \u003cvar translate=\"no\"\u003emy-instance-name\u003c/var\u003e with the relevant information.\n\n gcloud compute ssh --project \u003cvar translate=\"no\"\u003emy-project-id\u003c/var\u003e --zone \u003cvar translate=\"no\"\u003emy-zone\u003c/var\u003e \\\n \u003cvar translate=\"no\"\u003emy-instance-name\u003c/var\u003e -- -L 8080:localhost:8080\n\n | **Note:** To find your project ID, click the project name at the top of the Google Cloud console. To find your zone, click your instance in the [Deployment\n | Manager](https://console.cloud.google.com/dm/deployments).\n3. In your local browser, visit http://localhost:8080 to access a\n JupyterLab notebook that is included in your instance by default.\n\n4. In the notebook, on the left, double-click **tutorials** to\n open the folder, and navigate to and open\n **tutorials/tf2_course/01_neural_nets_with_keras.ipynb**.\n\n5. Click the run button\n play_arrow to\n run cells of the tutorial.\n\nWhat's next\n-----------\n\n- Learn more about [Deep Learning VM](/deep-learning-vm/docs).\n- [Learn more about the Deep Learning VM\n community](/deep-learning-vm/docs/getting-support#get_support_from_the_community), where you can discuss and ask questions about Deep Learning VM.\n- Get started [using TensorFlow Enterprise with\n Deep Learning Containers](/tensorflow-enterprise/docs/use-with-deep-learning-containers)."]]