Runtimes and runtime templates  |  Colab Enterprise  |  Google Cloud (2024)

This page describes runtimes and runtime templates for Colab Enterprise.

A runtime is a Google-provisioned virtual machine (VM) that can run the codein your notebook (IPYNB file).

A runtime template is a VM configuration that specifies a machine type andother characteristics of the VM, as well as common settings such asthe network and whether public internet access is enabled.When you create a runtime, its VM is created according to the specificationsof a runtime template.

Workflow

You can create a Colab Enterprise notebook and run code in it withoutneeding to understand runtimes. When you run your code for the first time,Colab Enterprise provisions a default runtime and runs your code on it.Colab Enterprise continues to use the default runtime until youconnect to a different runtime.

To configure a runtime for specific needs, you must:

  1. Create a runtime template with the configuration that you need.

  2. Create a runtime based on that template.

  3. Connect to the runtime from your notebook and run your code.

Runtimes

This section describes the characteristics of runtimes.

Default runtime

If you don't create a runtime, a runtime is created for you the first time thatyou run code or connect to the default runtime.

When Colab Enterprise creates your default runtime, it also createsa default runtime template. Both the runtime and runtime template appear inthe Google Cloud console, where you can get information about them.

There is one default runtime and one default runtime templateper project, per region.

Default runtime specifications

The default runtime includes the following specifications:

  • Machine type: e2-standard-4
  • Accelerators: None
  • Idle shutdown (Experimental): Enabled
  • Network: Your project's default Virtual Private Cloud network
  • Public internet access: Enabled
  • End user credential authentication: Enabled
  • Auto deletion: Automatic deletion 18 hours after creation

Runtimes are regional

Runtimes are regional, and must be located in the same region as your notebook.

Runtimes are exclusive to a user

Runtimes are exclusive to a user. You can't share your runtimes with othersand you can't use their runtimes. Even if you share a notebook with someone,they don't have access to your runtime and must run the notebook ontheir own runtime.

However, users can create their own runtimes based on the same runtime template.See Runtime templates can be shared with users.

You can connect more than one notebook to the same runtime but this isn'trecommended. Multiple notebooks sharing the same runtime can cause problems,including:

  • The notebooks may run slowly because they are sharing the runtime'scompute resources.

  • The code in one notebook can affect the state of the runtime's VM forthe other notebook. For example, if you install version 1.3 of a packagein one notebook, but your other notebook requires version 1.2, you mighthave a version incompatibility when you run the second notebook.

Instead of running code from multiple notebooks on the same runtime, you cancreate a runtime for each notebook based on the same runtime template. SeeYou can create multiple runtimes fromthe same runtime template.

Runtime charges

You are charged for runtime processing based on the machine type andaccelerators that you use.See Colab Enterprise pricing.

You can create multiple runtimes from the same runtime template

You can create multiple runtimes from a single non-default runtime template. This way, youcan run multiple notebooks on VMs with the same configuration without sharingthe resources of that VM.

Runtime templates

This section describes the characteristics of runtime templates.

Runtime templates are regional

Runtime templates are regional. When you create a runtime, it is in the sameregion as the runtime template, and the runtime can only be used with notebooksin that region.

You can share a runtime template with other users. This way, each usercan create their own runtime based on the same runtime template, andtherefore multiple users can run the same notebook on the same VM configuration.

To learn more, see Manage access toa runtime template.

Configuration

Runtime templates determine the configuration of your runtime's VM. Youcan specify any of the following:

Region

Choose the region where your notebook is. Runtimes created fromruntime templates are in the same region as the runtime template.For the notebook to run code in the runtime, the notebook and runtime must bein the same region.

Machine type, disk type, and disk size

For information on machine types, see theMachine families resource andcomparison guide.

Accelerators

You can add accelerators to your runtime template configuration.Accelerator availability is based on the machine type and region.

Network

Specify your network or use the project's default Virtual Private Cloud network.

Idle shutdown

Colab Enterprise enables idle shutdown by default. Thissetting shuts down your instance after 180 minutes of inactivity.You can change the number of minutes of inactivitybefore shutdown, or you can disable idle shutdown.

Public internet access

To get more control over the security of your notebook and other resources,you can turn off public internet access. If you configure your runtime templatethis way, notebooks that use runtimes created from the runtime templatewill not have access to the public internet.

End-user credential authentication

By default runtime templates use end-user credential authentication togive your notebook access to Application Default Credentials (ADC).You can use this access to ADC to run code in your notebook that interactswith Vertex AI and other Google Cloud services.When end-user credentials are enabled, your notebook uses the credentialsof whoever runs the notebook to determine accessto Google Cloud resources.

If end-user credentials aren't enabled, you can get access to ADC byauthenticating the user through your notebook's code. To learn more,see the "User credentials" section of How to provide credentialsto ADC.

Runtime templates are not editable

After you create a runtime template, you can't change it. To use aruntime template with a different configuration, you must create a newruntime template.

Runtime template charges

There are no charges for creating or storing runtime templates. See alsoRuntime charges.

What's next

  • Create a runtime based on a runtime template.
  • Connect to a runtime.
  • Create a runtime template.
Runtimes and runtime templates  |  Colab Enterprise  |  Google Cloud (2024)
Top Articles
What Is P2P Exchange User Verification?
Texas’ Bail Bonds Laws, Explained: How The System Works
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Jerrold Considine

Last Updated:

Views: 6218

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Jerrold Considine

Birthday: 1993-11-03

Address: Suite 447 3463 Marybelle Circles, New Marlin, AL 20765

Phone: +5816749283868

Job: Sales Executive

Hobby: Air sports, Sand art, Electronics, LARPing, Baseball, Book restoration, Puzzles

Introduction: My name is Jerrold Considine, I am a combative, cheerful, encouraging, happy, enthusiastic, funny, kind person who loves writing and wants to share my knowledge and understanding with you.