Skip to content

Commit 3888c05

Browse files
committed
Extra edits
1 parent 372735a commit 3888c05

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/machine-learning/how-to-train-pytorch.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Whether you're training a deep learning PyTorch model from the ground-up or you'
2828

2929
- An Azure subscription. If you don't have one already, [create a free account](https://azure.microsoft.com/free/).
3030
- Run the code in this article using either an Azure Machine Learning compute instance or your own Jupyter notebook.
31-
- Azure Machine Learning compute instance—no downloads or installation necessary
31+
- Azure Machine Learning compute instance—no downloads or installation necessary:
3232
- Complete the [Quickstart: Get started with Azure Machine Learning](quickstart-create-resources.md) to create a dedicated notebook server preloaded with the SDK and the sample repository.
33-
- In the samples deep learning folder on the notebook server, find a completed and expanded notebook by navigating to this directory: *v2/sdk/python/jobs/single-step/pytorch/train-hyperparameter-tune-deploy-with-pytorch*.
34-
- Your Jupyter notebook server
33+
- Under the **Samples** tab in the **Notebooks** section of your workspace, find a completed and expanded notebook by navigating to this directory: *v2/sdk/python/jobs/single-step/pytorch/train-hyperparameter-tune-deploy-with-pytorch*
34+
- Your Jupyter notebook server:
3535
- Install the [Azure Machine Learning SDK (v2)](https://aka.ms/sdk-v2-install).
3636
- Download the training script file [pytorch_train.py](https://github.com/Azure/azureml-examples/blob/main/sdk/python/jobs/single-step/pytorch/train-hyperparameter-tune-deploy-with-pytorch/src/pytorch_train.py).
3737

@@ -81,7 +81,7 @@ The result of running this script is a workspace handle that you can use to mana
8181

8282
Azure Machine Learning needs a compute resource to run a job. This resource can be single or multi-node machines with Linux or Windows OS, or a specific compute fabric like Spark.
8383

84-
In the following example script, we provision a Linux [`compute cluster`](./how-to-create-attach-compute-cluster.md?tabs=python). You can see the [`Azure Machine Learning pricing`](https://azure.microsoft.com/pricing/details/machine-learning/) page for the full list of VM sizes and prices. Since we need a GPU cluster for this example, let's pick a *STANDARD_NC6* model and create an Azure Machine Learning compute.
84+
In the following example script, we provision a Linux [compute cluster](./how-to-create-attach-compute-cluster.md?tabs=python). You can see the [Azure Machine Learning pricing](https://azure.microsoft.com/pricing/details/machine-learning/) page for the full list of VM sizes and prices. Since we need a GPU cluster for this example, let's pick a `STANDARD_NC6` model and create an Azure Machine Learning compute.
8585

8686
[!notebook-python[](~/azureml-examples-main/sdk/python/jobs/single-step/pytorch/train-hyperparameter-tune-deploy-with-pytorch/train-hyperparameter-tune-deploy-with-pytorch.ipynb?name=gpu_compute_target)]
8787

@@ -99,11 +99,11 @@ In this section, we begin by introducing the data for training. We then cover ho
9999

100100
### Obtain the training data
101101

102-
You can use data that's stored on a public blob as a [zip file](https://azuremlexamples.blob.core.windows.net/datasets/fowl_data.zip). This dataset consists of about 120 training images each for two classes (turkeys and chickens), with 100 validation images for each class. The images are a subset of the [Open Images v5 Dataset](https://storage.googleapis.com/openimages/web/index.html). Download and extract the dataset as part of our training script *pytorch_train.py*.
102+
You can use the dataset in this [zipped file](https://azuremlexamples.blob.core.windows.net/datasets/fowl_data.zip). This dataset consists of about 120 training images each for two classes (turkeys and chickens), with 100 validation images for each class. The images are a subset of the [Open Images v5 Dataset](https://storage.googleapis.com/openimages/web/index.html). Download and extract the dataset as part of our training script *pytorch_train.py*.
103103

104104
### Prepare the training script
105105

106-
In this article, we provided the training script *pytorch_train.py*. In practice, you should be able to take any custom training script as is and run it with Azure Machine Learning without having to modify your code.
106+
In the prerequisites section, we provided the training script *pytorch_train.py*. In practice, you should be able to take any custom training script *as is* and run it with Azure Machine Learning without having to modify your code.
107107

108108
The provided training script downloads the data, trains a model, and registers the model.
109109

@@ -204,7 +204,7 @@ After you create the endpoint, you can retrieve it as follows:
204204

205205
You can now deploy the model with the entry script. An endpoint can have multiple deployments. Using rules, the endpoint can then direct traffic to these deployments.
206206

207-
In the following code, you'll create a single deployment that handles 100% of the incoming traffic. We specified an arbitrary color name (*aci-blue*) for the deployment. You could also use any other name such as *aci-green* or *aci-red* for the deployment.
207+
In the following code, you'll create a single deployment that handles 100% of the incoming traffic. We specified an arbitrary color name *aci-blue* for the deployment. You could also use any other name such as *aci-green* or *aci-red* for the deployment.
208208

209209
The code to deploy the model to the endpoint:
210210

0 commit comments

Comments
 (0)