Skip to content

Commit c80249f

Browse files
committed
update python code
1 parent 33fdfde commit c80249f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/machine-learning/how-to-use-serverless-compute.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.topic: how-to
1212
ms.author: sgilley
1313
author: sdgilley
1414
ms.reviewer: vijetaj
15-
ms.date: 10/23/2023
15+
ms.date: 09/25/2024
1616
---
1717

1818
# Model training on serverless compute
@@ -102,7 +102,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
102102
)
103103
job = command(
104104
command="echo 'hello world'",
105-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
105+
environment="azureml://registries/azureml/environments/sklearn-1.5/labels/latest",
106106
identity=UserIdentityConfiguration(),
107107
)
108108
# submit the command job
@@ -143,7 +143,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
143143
)
144144
job = command(
145145
command="echo 'hello world'",
146-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
146+
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
147147
identity= ManagedIdentityConfiguration(),
148148
)
149149
# submit the command job
@@ -235,7 +235,7 @@ You can override these defaults. If you want to specify the VM type or number o
235235
)
236236
job = command(
237237
command="echo 'hello world'",
238-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
238+
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
239239
resources = JobResourceConfiguration(instance_type="Standard_NC24", instance_count=4)
240240
)
241241
# submit the command job
@@ -274,7 +274,7 @@ You can override these defaults. If you want to specify the VM type or number o
274274
)
275275
job = command(
276276
command="echo 'hello world'",
277-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
277+
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
278278
queue_settings={
279279
"job_tier": "spot"
280280
}
@@ -315,7 +315,7 @@ ml_client = MLClient(
315315
)
316316
job = command(
317317
command="echo 'hello world'",
318-
environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu@latest",
318+
environment=""azureml://registries/azureml/environments/sklearn-1.5/labels/latest"",
319319
identity=UserIdentityConfiguration(),
320320
queue_settings={
321321
"job_tier": "Standard"

0 commit comments

Comments
 (0)