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
Learn how to create and manage a [compute cluster](concept-compute-target.md#azure-machine-learning-compute-managed) in your Azure Machine Learning workspace.
26
25
@@ -40,13 +39,8 @@ In this article, learn how to:
40
39
41
40
* 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:
@@ -86,14 +80,14 @@ The compute autoscales down to zero nodes when it isn't used. Dedicated VMs ar
86
80
87
81
# [Python SDK](#tab/python)
88
82
89
-
To create a persistent Azure Machine Learning Compute resource in Python, specify the **vm_size**and**max_nodes** properties. Azure Machine Learning then uses smart defaults for the other properties.
83
+
To create a persistent Azure Machine Learning Compute resource in Python, specify the **size** and **max_instances** properties. Azure Machine Learning then uses smart defaults for the other properties.
90
84
91
-
***vm_size**: The VM family of the nodes created by Azure Machine Learning Compute.
92
-
***max_nodes**: The max number of nodes to autoscale up to when you run a job on Azure Machine Learning Compute.
85
+
**size**: The VM family of the nodes created by Azure Machine Learning Compute.
86
+
***max_instances*: The max number of nodes to autoscale up to when you run a job on Azure Machine Learning Compute.
You can also configure several advanced properties when you create Azure Machine Learning Compute. The properties allow you to create a persistent cluster of fixed size, or within an existing Azure Virtual Network in your subscription. See the [AmlCompute class](/python/api/azureml-core/azureml.core.compute.amlcompute.amlcompute) for details.
99
93
@@ -177,13 +171,9 @@ Use any of these ways to specify a low-priority VM:
Learn how to create and manage a [compute cluster](../concept-compute-target.md#azure-machine-learning-compute-managed) in your Azure Machine Learning workspace.
25
25
@@ -31,10 +31,6 @@ In this article, learn how to:
31
31
* Lower your compute cluster cost
32
32
* Set up a [managed identity](../../active-directory/managed-identities-azure-resources/overview.md) for the cluster
33
33
34
-
This article covers only the CLI v1 way to accomplish these tasks. To see how to use the SDK, CLI v2, or studio, see [Create an Azure Machine Learning compute cluster (CLI v2)](../how-to-create-attach-compute-cluster.md)
35
-
36
-
> [!NOTE]
37
-
> This article covers only how to do these tasks using CLI v1. For more recent ways to manage a compute instance, see [Create an Azure Machine Learning compute cluster](../how-to-create-attach-compute-cluster.md).
38
34
39
35
## Prerequisites
40
36
@@ -44,6 +40,15 @@ This article covers only the CLI v1 way to accomplish these tasks. To see how t
* 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:
@@ -81,6 +86,23 @@ The dedicated cores per region per VM family quota and total regional quota, whi
81
86
82
87
The compute autoscales down to zero nodes when it isn't used. Dedicated VMs are created to run your jobs as needed.
83
88
89
+
# [Python SDK](#tab/python)
90
+
91
+
To create a persistent Azure Machine Learning Compute resource in Python, specify the **vm_size**and**max_nodes** properties. Azure Machine Learning then uses smart defaults for the other properties.
92
+
93
+
***vm_size**: The VM family of the nodes created by Azure Machine Learning Compute.
94
+
***max_nodes**: The max number of nodes to autoscale up to when you run a job on Azure Machine Learning Compute.
You can also configure several advanced properties when you create Azure Machine Learning Compute. The properties allow you to create a persistent cluster of fixed size, or within an existing Azure Virtual Network in your subscription. See the [AmlCompute class](/python/api/azureml-core/azureml.core.compute.amlcompute.amlcompute) for details.
101
+
102
+
> [!WARNING]
103
+
> When setting the `location` parameter, if it is a different region than your workspace or datastores you may see increased network latency and data transfer costs. The latency and costs can occur when creating the cluster, and when running jobs on it.
@@ -93,12 +115,23 @@ az ml computetarget create amlcompute -n cpu --min-nodes 1 --max-nodes 1 -s STAN
93
115
94
116
For more information, see Az PowerShell module [az ml computetarget create amlcompute](/cli/azure/ml(v1)/computetarget/create#az-ml-computetarget-create-amlcompute).
95
117
96
-
118
+
---
97
119
98
120
## Lower your compute cluster cost
99
121
100
122
You may 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 do not have guaranteed availability and may be preempted while in use. You will have to restart a preempted job.
0 commit comments