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
Up until now, there have been multiple methods for configuring a training job in Azure Machine Learning via the SDK, including Estimators, ScriptRunConfig, and the lower-level RunConfiguration. To address this ambiguity and inconsistency, we are simplifying the job configuration process in Azure ML. You should now use ScriptRunConfig as the recommended option for configuring training jobs.
21
21
22
-
Estimators are deprecated with the 1.19.0 release of the Python SDK. You should also generally avoid explicitly instantiating a RunConfiguration object yourself, and instead configure your job using the ScriptRunConfig class.
22
+
Estimators are deprecated with the 1.19. release of the Python SDK. You should also generally avoid explicitly instantiating a RunConfiguration object yourself, and instead configure your job using the ScriptRunConfig class.
23
23
24
24
This article covers common considerations when migrating from Estimators to ScriptRunConfig.
25
25
@@ -30,7 +30,7 @@ This article covers common considerations when migrating from Estimators to Scri
30
30
Azure Machine Learning documentation and samples have been updated to use [ScriptRunConfig](/python/api/azureml-core/azureml.core.script_run_config.scriptrunconfig) for job configuration and submission.
31
31
32
32
For information on using ScriptRunConfig, refer to the following documentation:
33
-
*[Configure and submit training jobs](v1/how-to-set-up-training-targets.md)
33
+
*[Configure and submit training jobs](how-to-set-up-training-targets.md)
34
34
*[Configuring PyTorch training jobs](how-to-train-pytorch.md)
35
35
*[Configuring TensorFlow training jobs](how-to-train-tensorflow.md)
36
36
*[Configuring scikit-learn training jobs](how-to-train-scikit-learn.md)
@@ -44,15 +44,15 @@ While the various framework estimators have preconfigured environments that are
44
44
45
45
When using ScriptRunConfig, all environment-related configurations are encapsulated in the `Environment` object that gets passed into the `environment` parameter of the ScriptRunConfig constructor. To configure a training job, provide an environment that has all the dependencies required for your training script. If no environment is provided, Azure ML will use one of the Azure ML base images, specifically the one defined by `azureml.core.environment.DEFAULT_CPU_IMAGE`, as the default environment. There are a couple of ways to provide an environment:
46
46
47
-
*[Use a curated environment](how-to-use-environments.md#use-a-curated-environment) - curated environments are predefined environments available in your workspace by default. There is a corresponding curated environment for each of the preconfigured framework/version Docker images that backed each framework estimator.
47
+
*[Use a curated environment](../how-to-use-environments.md#use-a-curated-environment) - curated environments are predefined environments available in your workspace by default. There is a corresponding curated environment for each of the preconfigured framework/version Docker images that backed each framework estimator.
48
48
*[Define your own custom environment](how-to-use-environments.md)
49
49
50
-
Here is an example of using the curated PyTorch 1.6 environment for training:
50
+
Here is an example of using the curated environment for training:
51
51
52
52
```python
53
53
from azureml.core import Workspace, ScriptRunConfig, Environment
54
54
55
-
curated_env_name ='AzureML-PyTorch-1.6-GPU'
55
+
curated_env_name ='<add Pytorch curated environment name here>'
For more information on using data for training, see:
104
-
*[Train with datasets in Azure ML](v1/how-to-train-with-datasets.md)
107
+
*[Train with datasets in Azure ML](how-to-train-with-datasets.md)
105
108
106
109
## Distributed training
107
110
If you need to configure a distributed job for training, do so by specifying the `distributed_job_config` parameter in the ScriptRunConfig constructor. Pass in an [MpiConfiguration](/python/api/azureml-core/azureml.core.runconfig.mpiconfiguration), [PyTorchConfiguration](/python/api/azureml-core/azureml.core.runconfig.pytorchconfiguration), or [TensorflowConfiguration](/python/api/azureml-core/azureml.core.runconfig.tensorflowconfiguration) for distributed jobs of the respective types.
@@ -129,4 +132,4 @@ src.run_config
129
132
130
133
## Next steps
131
134
132
-
*[Configure and submit training jobs](v1/how-to-set-up-training-targets.md)
135
+
*[Configure and submit training jobs](how-to-set-up-training-targets.md)
0 commit comments