Skip to content

Commit 0708f05

Browse files
committed
rename cpu to aml cluster
1 parent 985d342 commit 0708f05

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Labs/04/Work with compute.ipynb

+5-9
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"from azure.ai.ml.entities import AmlCompute\n",
152152
"\n",
153153
"# Name assigned to the compute cluster\n",
154-
"cpu_compute_target = \"cpu-cluster\"\n",
154+
"cpu_compute_target = \"aml-cluster\"\n",
155155
"\n",
156156
"try:\n",
157157
" # let's see if the compute target already exists\n",
@@ -181,11 +181,7 @@
181181
" )\n",
182182
"\n",
183183
" # Now, we pass the object to MLClient's create_or_update method\n",
184-
" cpu_cluster = ml_client.compute.begin_create_or_update(cpu_cluster)\n",
185-
"\n",
186-
" print(\n",
187-
" f\"AMLCompute with name {cpu_cluster.name} is created, the compute size is {cpu_cluster.size}\"\n",
188-
" )"
184+
" cpu_cluster = ml_client.compute.begin_create_or_update(cpu_cluster)\n"
189185
]
190186
},
191187
{
@@ -232,7 +228,7 @@
232228
"from azure.ai.ml.entities import AmlCompute\n",
233229
"\n",
234230
"cluster_scale = AmlCompute(\n",
235-
" name=\"cpu-cluster\",\n",
231+
" name=\"aml-cluster\",\n",
236232
" max_instances=2,\n",
237233
")\n",
238234
"ml_client.begin_create_or_update(cluster_scale)"
@@ -273,7 +269,7 @@
273269
},
274270
"outputs": [],
275271
"source": [
276-
"cpu_cluster = ml_client.compute.get(\"cpu-cluster\")\n",
272+
"cpu_cluster = ml_client.compute.get(\"aml-cluster\")\n",
277273
"\n",
278274
"print (\n",
279275
" f\"AMLCompute with name {cpu_cluster.name} has a maximum of {cpu_cluster.max_instances} nodes\"\n",
@@ -383,7 +379,7 @@
383379
" code=\"./src\",\n",
384380
" command=\"python diabetes-training.py\",\n",
385381
" environment=\"AzureML-sklearn-0.24-ubuntu18.04-py37-cpu@latest\",\n",
386-
" compute=\"cpu-cluster\",\n",
382+
" compute=\"aml-cluster\",\n",
387383
" display_name=\"diabetes-train-cluster\",\n",
388384
" experiment_name=\"diabetes-training\"\n",
389385
" )\n",

0 commit comments

Comments
 (0)