Questo documento descrive come attivare un runtime predefinito con GPU per gli utenti di Colab Enterprise in un progetto. Dopo aver attivato un
runtime predefinito con GPU, gli utenti possono passare da un runtime predefinito normale
a un runtime predefinito con GPU facendo clic su un pulsante nel notebook.
Questo documento è destinato agli amministratori di Colab Enterprise che
vogliono attivare i runtime predefiniti con GPU per altri utenti della loro
organizzazione. Presuppone che tu abbia familiarità con quanto segue:
Come gestire i runtime e i modelli di runtime di Colab Enterprise.
Come utilizzare Identity and Access Management (IAM) per controllare l'accesso.
Panoramica
Per consentire agli utenti di passare a un runtime predefinito con GPU, un amministratore
(roles/aiplatform.colabEnterpriseAdmin)
o un account utente con l'autorizzazione aiplatform.notebookRuntimeTemplates.create
deve prima creare un runtime predefinito con GPU.
La prima volta che crei un runtime predefinito con GPU,
Colab Enterprise crea un nuovo modello di runtime predefinito che
include le GPU nelle sue specifiche. Il runtime predefinito originale non
è interessato ed esiste fino alla scadenza o all'eliminazione. Dopo la creazione del nuovo modello di runtime predefinito con GPU, qualsiasi utente con l'autorizzazione aiplatform.notebookRuntimes.assign per il progetto e l'autorizzazione aiplatform.notebookRuntimeTemplates.apply per il modello di runtime può creare e utilizzare un runtime predefinito con GPU. Queste
autorizzazioni sono incluse nel ruolo Utente Colab Enterprise
(roles/aiplatform.colabEnterpriseUser).
Specifiche
Il runtime predefinito con GPU ha specifiche diverse rispetto
al runtime predefinito originale. I tipi di macchina, le GPU e i tipi di disco dati disponibili variano in base alla regione, pertanto alcune specifiche possono essere diverse dal runtime predefinito originale.
La tabella seguente descrive le specifiche di un runtime predefinito con GPU in base alla regione del runtime predefinito.
Descrizione della regione
Specifiche di runtime predefinite
Regioni che supportano le GPU L4
Tipo di macchina: g2-standard-4
Acceleratore: 1 acceleratore NVIDIA_L4
Disco di dati: 100 GB pd-balanced
Regioni che non supportano le GPU L4, ma supportano le GPU T4
Tipo di macchina: n1-standard-4
Acceleratore: 1 acceleratore NVIDIA_TESLA_T4
Disco di dati: 100 GB pd-standard
Regioni che non supportano le GPU L4 o T4
I runtime predefiniti con GPU non sono supportati.
Disponibilità dell'acceleratore
Colab Enterprise supporta i runtime predefiniti con i seguenti tipi di acceleratore:
L4
T4
Per informazioni sulla disponibilità regionale di questi acceleratori, consulta la sezione
Utilizzo degli acceleratori.
Prima di iniziare
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.
Per assicurarti che il tuo account utente disponga delle autorizzazioni
necessarie per abilitare i runtime predefiniti con GPU in Colab Enterprise,
chiedi all'amministratore di concedere al tuo account utente il ruolo
Amministratore di Colab Enterprise (roles/aiplatform.colabEnterpriseAdmin)
IAM role on the project.
In the Region menu, select the region that contains your notebook.
Click the notebook that you want to open. If you haven't created a notebook yet,
create a notebook.
In your notebook, click Connect.
After Colab Enterprise connects to the default runtime, in the
top right corner of your notebook, click the button to switch to
a default runtime with GPUs. For example, if your notebook is in
a region that supports L4 accelerators, click
Switch to L4.
Colab Enterprise creates a new default runtime that has
GPUs, and then connects to the runtime. The ability to switch to a
default runtime with GPUs is enabled for other users in the project.
Turn off GPUs for default runtimes
To turn off the ability to switch to a default runtime with GPUs, you
must delete the runtime template named Default with GPU.
See Delete a runtime template.
Limitations
Default runtimes with GPUs are only available in regions that support
specific accelerator availability. See
Accelerator availability.
You must first connect a notebook to a default runtime to be able to switch to
a default runtime with GPUs.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Enable default runtimes with GPUs\n=================================\n\n|\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nFor support during the preview, email\n[vertex-notebooks-previews-external@google.com](mailto:vertex-notebooks-previews-external@google.com).\n\nThis document describes how to enable a default runtime with GPUs for\nColab Enterprise users in a project. After enabling a\ndefault runtime with GPUs, users can switch from a regular default runtime\nto a default runtime with GPUs by clicking a button in their notebook.\n\nThis document is intended for Colab Enterprise administrators who\nwant to enable default runtimes with GPUs for other users in their\norganization. It assumes you have knowledge of the following:\n\n- How to manage Colab Enterprise runtimes and runtime templates.\n- How to use Identity and Access Management (IAM) to control access.\n\nOverview\n--------\n\nTo enable users to switch to a default runtime with GPUs, an administrator\n([`roles/aiplatform.colabEnterpriseAdmin`](/colab/docs/access-control#aiplatform.colabEnterpriseAdmin))\nor a user account with the `aiplatform.notebookRuntimeTemplates.create`\npermission must first create a default runtime with GPUs.\n\nThe first time that you create a default runtime with GPUs,\nColab Enterprise creates a new default runtime template that\nincludes GPUs in its specifications. The original default runtime isn't\naffected and exists until it expires or it's deleted. After the\nnew default runtime template with GPUs is created, any user with\nthe `aiplatform.notebookRuntimes.assign` permission on the project\nand the `aiplatform.notebookRuntimeTemplates.apply` permission on the\nruntime template can create and use a default runtime with GPUs. These\npermissions are included in the Colab Enterprise User\n([`roles/aiplatform.colabEnterpriseUser`](/colab/docs/access-control#aiplatform.colabEnterpriseUser))\nrole.\n\n### Specifications\n\nThe default runtime with GPUs has different specifications than\nthe original default runtime. The machine types, GPUs, and data disk types\nthat are available vary by region, so some specifications can be different\nfrom your original default runtime.\n\nThe following table describes the specifications for\na default runtime with GPUs based on the region of the default runtime.\n\n### Accelerator availability\n\nColab Enterprise supports default runtimes with the following\naccelerator types:\n\n- L4\n- T4\n\nTo learn about the regional availability of these accelerators, see\n[Using accelerators](/vertex-ai/docs/general/locations#accelerators).\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-\n\n\n Enable the Vertex AI, Dataform, and Compute Engine APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com, dataform.googleapis.com, compute.googleapis.com&redirect=https://console.cloud.google.com)\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\n-\n\n\n Enable the Vertex AI, Dataform, and Compute Engine APIs.\n\n\n [Enable the APIs](https://console.cloud.google.com/flows/enableapi?apiid=aiplatform.googleapis.com, dataform.googleapis.com, compute.googleapis.com&redirect=https://console.cloud.google.com)\n\n### Required roles\n\n\nTo ensure that your user account has the necessary\npermissions to enable default runtimes with GPUs in Colab Enterprise,\n\nask your administrator to grant your user account the\n\n\nColab Enterprise Admin ([`roles/aiplatform.colabEnterpriseAdmin`](/vertex-ai/docs/general/access-control#aiplatform.colabEnterpriseAdmin)`)\nIAM role on the project.\n\n\n`\n| `\n| `**Important:**` You must grant this role\n| to your user account, `*not*` to your user account. Failure to grant the role to the correct principal might result in permission errors.\n| `\n`\n\n\nFor more information about granting roles, see `[Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access)`.\n\n`\n\n\u003cbr /\u003e\n\n`\n\n\n`\n\n\nYour administrator might also be able to give your user account\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n`\n\n\n` One or more of the required roles includes the `dataform.repositories.list` permission. Users who are granted the `dataform.repositories.list` permission or the [Code Creator\n| (`roles/dataform.codeCreator`)](/iam/docs/understanding-roles#dataform.codeCreator) role in a project can list the names of code assets in that project by using the Dataform API or the Dataform command-line interface (CLI). Non-administrators using BigQuery Studio can only see code assets that they created or that were shared with them.\n`\n\n\n`\n\nEnable GPUs for default runtimes\n--------------------------------\n\n`\n\n\n`\n\nTo enable GPUs for default runtimes, do the following:\n`\n\n\n`\n\n1. In the Google Cloud console, go to\n the Colab Enterprise **My notebooks** page.\n\n [Go to My notebooks](https://console.cloud.google.com/vertex-ai/colab/notebooks)\n2. In the **Region** menu, select the region that contains your notebook.\n\n3. Click the notebook that you want to open. If you haven't created a notebook yet,\n [create a notebook](/colab/docs/create-console-quickstart#create).\n\n4. In your notebook, click **Connect** . \n\n\n5. After Colab Enterprise connects to the default runtime, in the\n top right corner of your notebook, click the button to switch to\n a default runtime with GPUs. For example, if your notebook is in\n a region that supports L4 accelerators, click\n **Switch to L4** . \n\n\n`\n\n\n`\n\nColab Enterprise creates a new default runtime that has\nGPUs, and then connects to the runtime. The ability to switch to a\ndefault runtime with GPUs is enabled for other users in the project.\n`\n\n\n`\n\nTurn off GPUs for default runtimes\n----------------------------------\n\n`\n\n`\n\nTo turn off the ability to switch to a default runtime with GPUs, you\nmust delete the runtime template named `Default with GPU`.\nSee [Delete a runtime template](/colab/docs/create-runtime-template#delete).\n`\n\n`\n\nLimitations\n-----------\n\n`\n\n`\n\n- Default runtimes with GPUs are only available in regions that support\n specific accelerator availability. See\n [Accelerator availability](#accelerator-availability).\n\n- You must first connect a notebook to a default runtime to be able to switch to\n a default runtime with GPUs.\n\n`\n\n`\n\nWhat's next\n-----------\n\n`\n\n`\n\n- To manage your runtime, see [Manage runtimes](/colab/docs/manage-runtimes).\n- Learn more about [runtimes and runtime templates](/colab/docs/runtimes).\n\n`\n\n\n``\n\n`"]]