You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Create an Azure Machine Learning compute cluster
@@ -33,12 +33,30 @@ Learn how to:
33
33
34
34
* An Azure Machine Learning workspace. For more information, see [Manage Azure Machine Learning workspaces](how-to-manage-workspace.md).
35
35
36
-
* The [Azure CLI extension for Machine Learning service (v2)](how-to-configure-cli.md), [Azure Machine Learning Python SDK](/python/api/overview/azure/ai-ml-readme), or the [Azure Machine Learning Visual Studio Code extension](how-to-setup-vs-code.md).
36
+
Select the appropriate tab for the rest of the prerequisites based on your preferred method of creating the compute cluster.
37
37
38
-
* If using the Python SDK, [set up your development environment with a workspace](how-to-configure-environment.md). Once your environment is set up, attach to the workspace in your Python script:
38
+
# [Python SDK](#tab/python)
39
+
40
+
* If you're not running your code on a compute instance, install the [Azure Machine Learning Python SDK](/python/api/overview/azure/ai-ml-readme). This SDK is already installed for you on a compute instance.
* If you're not running these commands on a compute instance, install the [Azure CLI extension for Machine Learning service (v2)](how-to-configure-cli.md). This extension is already installed for you on a compute instance.
49
+
50
+
* Authenticate and set the default workspace and resource group. Leave the terminal open to run the rest of the commands in this article.
51
+
52
+
[!INCLUDE [cli first steps](includes/cli-first-steps.md)]
53
+
54
+
# [Studio](#tab/azure-studio)
55
+
56
+
Start at [Azure Machine Learning studio](https://ml.azure.com).
57
+
58
+
---
59
+
42
60
## What is a compute cluster?
43
61
44
62
Azure Machine Learning compute cluster is a managed-compute infrastructure that allows you to easily create a single or multi-node compute. The compute cluster is a resource that can be shared with other users in your workspace. The compute scales up automatically when a job is submitted, and can be put in an Azure Virtual Network. Compute cluster supports **no public IP** deployment as well in virtual network. The compute executes in a containerized environment and packages your model dependencies in a [Docker container](https://www.docker.com/why-docker).
@@ -69,7 +87,7 @@ The dedicated cores per region per VM family quota and total regional quota, whi
The compute autoscales down to zero nodes when it isn't used. Dedicated VMs are created to run your jobs as needed.
90
+
The compute autoscales down to zero nodes when it isn't used. Dedicated VMs are created to run your jobs as needed.
73
91
74
92
Use the following examples to create a compute cluster:
75
93
@@ -112,9 +130,9 @@ Create a single- or multi- node compute cluster for your training, batch inferen
112
130
113
131
1. Under **Manage**, select **Compute**.
114
132
115
-
1. If you have no compute resources, select **Create** in the middle of the page.
133
+
1. If you have no compute resources, select **New** in the middle of the page.
116
134
117
-
:::image type="content" source="media/how-to-create-attach-studio/create-compute-target.png" alt-text="Screenshot that shows the Create button to create a compute target.":::
135
+
:::image type="content" source="media/how-to-create-attach-studio/create-compute-target.png" alt-text="Screenshot that shows the New button to create a compute target.":::
118
136
119
137
1. If you see a list of compute resources, select **+New** above the list.
120
138
@@ -127,15 +145,15 @@ Create a single- or multi- node compute cluster for your training, batch inferen
127
145
|Field |Description |
128
146
|---------|---------|
129
147
| Location | The Azure region where the compute cluster is created. By default, this is the same location as the workspace. If you don't have sufficient quota in the default region, switch to a different region for more options. <br>When using a different region than your workspace or datastores, you might see increased network latency and data transfer costs. The latency and costs can occur when creating the cluster, and when running jobs on it. |
130
-
|Virtual machine type | Choose CPU or GPU. This type can't be changed after creation. |
131
-
|Virtual machine priority | Choose **Dedicated** or **Low priority**. Low priority virtual machines are cheaper but don't guarantee the compute nodes. Your job might be preempted. |
148
+
|Virtual machine type | Choose CPU or GPU. This type can't be changed after creation. |
149
+
|Virtual machine priority | Choose **Dedicated** or **Low priority**. Low priority virtual machines are cheaper but don't guarantee the compute nodes. Your job might be preempted. |
132
150
|Virtual machine size | Supported virtual machine sizes might be restricted in your region. Check the [availability list](https://azure.microsoft.com/global-infrastructure/services/?products=virtual-machines)|
133
151
134
152
1. Select **Next** to proceed to **Advanced Settings** and fill out the form as follows:
135
153
136
154
|Field |Description |
137
155
|---------|---------|
138
-
|Compute name | * Name is required and must be between 3 to 24 characters long.<br><br> * Valid characters are upper and lower case letters, digits, and the **-** character.<br><br> * Name must start with a letter. <br><br> * Name needs to be unique across all existing computes within an Azure region. You see an alert if the name you choose isn't unique. <br><br> * If **-** character is used, then it needs to be followed by at least one letter later in the name. |
156
+
|Compute name | * Name is required and must be between 3 to 24 characters long.<br><br> * Valid characters are upper and lower case letters, digits, and the **-** character.<br><br> * Name must start with a letter. <br><br> * Name needs to be unique across all existing computes within an Azure region. You see an alert if the name you choose isn't unique. <br><br> * If **-** character is used, then it needs to be followed by at least one letter later in the name. |
139
157
|Minimum number of nodes | Minimum number of nodes that you want to provision. If you want a dedicated number of nodes, set that count here. Save money by setting the minimum to 0, so you don't pay for any nodes when the cluster is idle. |
140
158
|Maximum number of nodes | Maximum number of nodes that you want to provision. The compute automatically scales to a maximum of this node count when a job is submitted. |
141
159
| Idle seconds before scale down | Idle time before scaling the cluster down to the minimum node count. |
@@ -146,7 +164,7 @@ Create a single- or multi- node compute cluster for your training, batch inferen
146
164
147
165
### Enable SSH access
148
166
149
-
SSH access is disabled by default. SSH access can't be changed after creation. Make sure to enable access if you plan to debug interactively with [VS Code Remote](how-to-set-up-vs-code-remote.md).
167
+
SSH access is disabled by default. SSH access can't be changed after creation. Make sure to enable access if you plan to debug interactively with [VS Code Remote](how-to-set-up-vs-code-remote.md).
@@ -156,7 +174,7 @@ SSH access is disabled by default. SSH access can't be changed after creation.
156
174
157
175
---
158
176
159
-
## Lower your compute cluster cost with low priority VMs
177
+
###Lower your compute cluster cost with low priority VMs
160
178
161
179
You can also choose to use [low-priority VMs](how-to-manage-optimize-cost.md#low-pri-vm) to run some or all of your workloads. These VMs don't have guaranteed availability and might be preempted while in use. You have to restart a preempted job.
162
180
@@ -193,6 +211,38 @@ In the studio, choose **Low Priority** when you create a VM.
193
211
194
212
---
195
213
214
+
## Delete
215
+
216
+
While your compute cluster scales down to zero nodes when not in use, unprovisioned nodes contribute to your quota usage. Deleting the compute cluster removes the compute target from your workspace, and releases the quota.
This deletes a compute cluster named `basic-example`.
231
+
232
+
```azurecli
233
+
az ml compute delete --name basic-example
234
+
```
235
+
236
+
# [Studio](#tab/azure-studio)
237
+
238
+
1. Navigate to [Azure Machine Learning studio](https://ml.azure.com).
239
+
1. In the left menu, under **Manage**, select **Compute**.
240
+
1. At the top of the Compute page, select **Compute cluster**.
241
+
1. Select the cluster you want to delete.
242
+
1. At the top of the page, select **Delete**.
243
+
244
+
---
245
+
196
246
## Set up managed identity
197
247
198
248
For information on how to configure a managed identity with your compute cluster, see [Set up authentication between Azure Machine Learning and other services](how-to-identity-based-service-authentication.md#compute-cluster).
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-create-compute-instance.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ ms.topic: how-to
10
10
author: jesscioffi
11
11
ms.author: jcioffi
12
12
ms.reviewer: sgilley
13
-
ms.date: 07/05/2023
13
+
ms.date: 05/03/2024
14
14
---
15
15
16
16
# Create an Azure Machine Learning compute instance
@@ -95,11 +95,11 @@ Where the file *create-instance.yml* is:
95
95
1. Select **Compute instance** at the top.
96
96
1. If you have no compute instances, select **Create** in the middle of the page.
97
97
98
-
:::image type="content" source="media/how-to-create-attach-studio/create-compute-target.png" alt-text="Screenshot shows create in the middle of the page.":::
98
+
:::image type="content" source="media/how-to-create-attach-studio/create-compute-instance.png" alt-text="Screenshot shows create in the middle of the page.":::
99
99
100
100
1. If you see a list of compute resources, select **+New** above the list.
101
101
102
-
:::image type="content" source="media/how-to-create-attach-studio/select-new.png" alt-text="Screenshot shows selecting new above the list of compute resources.":::
102
+
:::image type="content" source="media/how-to-create-attach-studio/select-new-instance.png" alt-text="Screenshot shows selecting new above the list of compute resources.":::
0 commit comments