@@ -12,7 +12,7 @@ ms.topic: how-to
12
12
ms.author : sgilley
13
13
author : sdgilley
14
14
ms.reviewer : vijetaj
15
- ms.date : 10/23/2023
15
+ ms.date : 09/25/2024
16
16
---
17
17
18
18
# 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
102
102
)
103
103
job = command(
104
104
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" ,
106
106
identity = UserIdentityConfiguration(),
107
107
)
108
108
# submit the command job
@@ -143,7 +143,7 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
143
143
)
144
144
job = command(
145
145
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" " ,
147
147
identity = ManagedIdentityConfiguration(),
148
148
)
149
149
# submit the command job
@@ -235,7 +235,7 @@ You can override these defaults. If you want to specify the VM type or number o
235
235
)
236
236
job = command(
237
237
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" " ,
239
239
resources = JobResourceConfiguration(instance_type = " Standard_NC24" , instance_count = 4 )
240
240
)
241
241
# submit the command job
@@ -274,7 +274,7 @@ You can override these defaults. If you want to specify the VM type or number o
274
274
)
275
275
job = command(
276
276
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" " ,
278
278
queue_settings = {
279
279
" job_tier" : " spot"
280
280
}
@@ -315,7 +315,7 @@ ml_client = MLClient(
315
315
)
316
316
job = command(
317
317
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" " ,
319
319
identity = UserIdentityConfiguration(),
320
320
queue_settings = {
321
321
" job_tier" : " Standard"
0 commit comments