Skip to content

Commit c8c2b9b

Browse files
committed
updates
2 parents 4993117 + 19660ae commit c8c2b9b

12 files changed

+168
-32
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Create Azure Container for PyTorch Custom Curated Environment
3+
titleSuffix: Azure Machine Learning
4+
description: Create custom curated Azure Container for PyTorch Environments in Azure Machine Learning studio to run your machine learning models and reuse it in different scenarios.
5+
services: machine-learning
6+
author: sheetalarkadam
7+
ms.author: parinitarahi
8+
ms.reviewer: ssalgado
9+
ms.service: machine-learning
10+
ms.subservice: core
11+
ms.topic: how-to
12+
ms.date: 03/20/2023
13+
---
14+
15+
# Create custom curated Azure Container for PyTorch Environments in Azure Machine Learning studio
16+
17+
If you're looking to extend curated environment and add Hugging Face (HF) transformers or datasets or any other external packages to be installed, Azure Machine Learning offers to create a new env with docker context containing ACPT curated environment as base image and additional packages on top of it as below.
18+
19+
## Prerequisites
20+
21+
Before following the steps in this article, make sure you have the following prerequisites:
22+
23+
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/en-us/free/).
24+
25+
- An Azure Machine Learning workspace. If you don't have one, use the steps in the [Quickstart: Create workspace resources](quickstart-create-resources.md) article to create one.
26+
27+
## Navigate to environments
28+
29+
In the [Azure Machine Learning studio](https://ml.azure.com/registries/environments), navigate to the "Environments" section by selecting the "Environments" option.
30+
31+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-environments.png" alt-text="Screenshot of navigating to environments from Azure Machine Learning studio." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-environments.png":::
32+
33+
## Navigate to curated environments
34+
35+
Navigate to curated environments and search "acpt" to list all the available ACPT curated environments. Selecting the environment shows details of the environment.
36+
37+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-curated-environments.png" alt-text="Screenshot of navigating to curated environments." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-curated-environments.png":::
38+
39+
40+
## Get details of the curated environments
41+
42+
To create custom environment, you need the base docker image repository, which can be found in the "Description" section as "Azure Container Registry". Copy the "Azure Container Registry" name, which is used later when you create a new custom environment.
43+
44+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/get-details-curated-environments.png" alt-text="Screenshot of getting container registry name." lightbox= "./media/how-to-azure-container-for-pytorch-environment/get-details-curated-environments.png":::
45+
46+
## Navigate to custom environments
47+
48+
Go back and select the " Custom Environments" tab.
49+
50+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-custom-environment.png" alt-text="Screenshot of navigating to custom environments." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-custom-environment.png":::
51+
52+
## Create custom environments
53+
54+
Select **+ Create**. In the "Create Environment" window, name the environment, description and select "Create a new docker context" in Select environments type section.
55+
56+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/create-environment-window.png" alt-text="Screenshot of creating custom environment." lightbox= "./media/how-to-azure-container-for-pytorch-environment/create-environment-window.png":::
57+
58+
Paste the docker image name that you copied in previously. Configure your environment by declaring the base image and add any env variables you want to use and the packages that you want to include.
59+
60+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/configure-environment.png" alt-text="Screenshot of configuring the environment with name, packages with docker context." lightbox= "./media/how-to-azure-container-for-pytorch-environment/configure-environment.png":::
61+
62+
Review your environment settings, add any tags if needed and select on the **Create** button to create your custom environment.
63+
64+
That's it! You've now created a custom environment in Azure Machine Learning studio and can use it to run your machine learning models.
65+
66+
## Next steps
67+
68+
- Learn more about environment objects:
69+
- [What are Azure Machine Learning Environments? ](concept-environments.md).
70+
- Learn more about [curated environments](concept-environments.md).
71+
- Learn more about [training models in AML](concept-train-machine-learning-model.md).
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
title: Create Azure Container for PyTorch Custom Curated Environment
3+
titleSuffix: Azure Machine Learning
4+
description: Create custom curated Azure Container for PyTorch Environments in Azure Machine Learning studio to run your machine learning models and reuse it in different scenarios.
5+
services: machine-learning
6+
author: sheetalarkadam
7+
ms.author: parinitarahi
8+
ms.reviewer: ssalgado
9+
ms.service: machine-learning
10+
ms.subservice: core
11+
ms.topic: how-to
12+
ms.date: 03/20/2023
13+
---
14+
15+
# Create custom curated Azure Container for PyTorch Environments in Azure Machine Learning studio
16+
17+
If you're looking to extend curated environment and add Hugging Face (HF) transformers or datasets or any other external packages to be installed, Azure Machine Learning offers to create a new env with docker context containing ACPT curated environment as base image and additional packages on top of it as below.
18+
19+
## Prerequisites
20+
21+
Before following the steps in this article, make sure you have the following prerequisites:
22+
23+
- An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/en-us/free/).
24+
25+
- An Azure Machine Learning workspace. If you don't have one, use the steps in the [Quickstart: Create workspace resources](quickstart-create-resources.md) article to create one.
26+
27+
## Navigate to environments
28+
29+
In the [Azure Machine Learning studio](https://ml.azure.com/registries/environments), navigate to the "Environments" section by selecting the "Environments" option.
30+
31+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-environments.png" alt-text="Screenshot of navigating to environments from Azure Machine Learning studio." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-environments.png":::
32+
33+
## Navigate to curated environments
34+
35+
Navigate to curated environments and search "acpt" to list all the available ACPT curated environments. Selecting the environment shows details of the environment.
36+
37+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-curated-environments.png" alt-text="Screenshot of navigating to curated environments." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-curated-environments.png":::
38+
39+
40+
## Get details of the curated environments
41+
42+
To create custom environment, you need the base docker image repository, which can be found in the "Description" section as "Azure Container Registry". Copy the "Azure Container Registry" name, which is used later when you create a new custom environment.
43+
44+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/get-details-curated-environments.png" alt-text="Screenshot of getting container registry name." lightbox= "./media/how-to-azure-container-for-pytorch-environment/get-details-curated-environments.png":::
45+
46+
## Navigate to custom environments
47+
48+
Go back and select the " Custom Environments" tab.
49+
50+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/navigate-to-custom-environment.png" alt-text="Screenshot of navigating to custom environments." lightbox= "./media/how-to-azure-container-for-pytorch-environment/navigate-to-custom-environment.png":::
51+
52+
## Create custom environments
53+
54+
Select **+ Create**. In the "Create Environment" window, name the environment, description and select "Create a new docker context" in Select environments type section.
55+
56+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/create-environment-window.png" alt-text="Screenshot of creating custom environment." lightbox= "./media/how-to-azure-container-for-pytorch-environment/create-environment-window.png":::
57+
58+
Paste the docker image name that you copied in previously. Configure your environment by declaring the base image and add any env variables you want to use and the packages that you want to include.
59+
60+
:::image type="content" source="./media/how-to-azure-container-for-pytorch-environment/configure-environment.png" alt-text="Screenshot of configuring the environment with name, packages with docker context." lightbox= "./media/how-to-azure-container-for-pytorch-environment/configure-environment.png":::
61+
62+
Review your environment settings, add any tags if needed and select on the **Create** button to create your custom environment.
63+
64+
That's it! You've now created a custom environment in Azure Machine Learning studio and can use it to run your machine learning models.
65+
66+
## Next steps
67+
68+
- Learn more about environment objects:
69+
- [What are Azure Machine Learning Environments? ](concept-environments.md).
70+
- Learn more about [curated environments](concept-environments.md).
71+
- Learn more about [training models in AML](concept-train-machine-learning-model.md).
109 KB
Loading
76.2 KB
Loading
79.5 KB
Loading
Loading
Loading
57.6 KB
Loading
354 KB
Loading

articles/machine-learning/reference-azure-container-for-pytorch.md renamed to articles/machine-learning/resource-azure-container-for-pytorch.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.reviewer: ssalgado
99
ms.service: machine-learning
1010
ms.subservice: core
1111
ms.topic: reference
12-
ms.date: 03/17/2023
12+
ms.date: 03/20/2023
1313
---
1414

1515
# Azure Container for PyTorch (ACPT)
@@ -19,14 +19,13 @@ Azure Container for PyTorch is a lightweight, standalone environment that includ
1919
> [!NOTE]
2020
> Use the [Python SDK](how-to-use-environments.md), [CLI](/cli/azure/ml/environment#az-ml-environment-list), or Azure Machine Learning [studio](how-to-manage-environments-in-studio.md) to get the full list of environments and their dependencies. For more information, see the [environments article](how-to-use-environments.md#use-a-curated-environment).
2121
22-
2322
## Why should I use ACPT?
2423

2524
* Use as is with preinstalled packages or build on top of the curated environment.
2625
* Optimized training framework to set up, develop, accelerate PyTorch model on large workloads.
2726
* Up-to-date stack with the latest compatible versions of Ubuntu, Python, PyTorch, CUDA\RocM, etc.
2827
* Ease of use: All components installed and validated against dozens of Microsoft workloads to reduce setup costs and accelerate time to value.
29-
* Latest Training Optimization Technologies: [ONNX RunTime](https://onnxruntime.ai/) , [DeepSpeed](https://www.deepspeed.ai/),  [MSCCL](https://github.com/microsoft/msccl),and others.
28+
* Latest Training Optimization Technologies: [ONNX RunTime](https://onnxruntime.ai/) , [DeepSpeed](https://www.deepspeed.ai/), [MSCCL](https://github.com/microsoft/msccl),and others.
3029
* Integration with Azure Machine Learning: Track your PyTorch experiments on Azure Machine Learning studio or using the SDK.
3130
* The image is also available as a [Data Science Virtual Machine (DSVM)](https://azure.microsoft.com/products/virtual-machines/data-science-virtual-machines/). To learn more about Data Science Virtual Machines, see [the DSVM overview documentation](data-science-virtual-machine/overview.md).
3231
* Azure customer support reduces training and deployment latency.
@@ -45,15 +44,19 @@ The following configurations are supported:
4544

4645
| Environment Name | OS | GPU Version| Python Version | PyTorch Version | ORT-training Version | DeepSpeed Version | torch-ort Version |
4746
| --- | --- | --- | --- | --- | --- | --- | --- |
48-
|acpt-pytorch-2.0-cuda11.7 | Ubuntu 20.04 | cu117|3.8| 2.0 | 1.14.1 | 0.8.2 | 0.15.1 |
49-
|acpt-pytorch-1.13-cuda11.7 | Ubuntu 20.04  | cu117 | 3.8 | 1.13.1 | 1.14.0 | 0.8.0 | 1.14.0 |
50-
| acpt-pytorch-1.12-py39-cuda11.6 | Ubuntu 20.04  | cu116 | 3.9 | 1.12.1 | 1.13.1 | 0.7.3 | 1.13.1 |
51-
| acpt-pytorch-1.12-cuda11.6 | Ubuntu 20.04  | cu116 | 3.8 | 1.12.1 | 1.13.1 | 0.7.3 | 1.13.1 |
52-
|acpt-pytorch-1.11-cuda11.5 | Ubuntu 20.04  | cu115 | 3.8 | 1.11.0 | 1.11.1 | 0.7.3 | 1.11.0 |
53-
|acpt-pytorch-1.11-cuda11.5 | Ubuntu 20.04  | cu113 | 3.8 | 1.11.0 | 1.11.1 | 0.7.3 | 1.11.1 |
47+
|acpt-pytorch-2.0-cuda11.7|Ubuntu 20.04|cu117|3.8|2.0|1.14.1|0.8.2 |0.14.0|
48+
|acpt-pytorch-1.13-cuda11.7|Ubuntu 20.04|cu117|3.8|1.13.1|1.14.1|0.8.2| 1.14.0|
49+
|acpt-pytorch-1.12-py39-cuda11.6|Ubuntu 20.04|cu116|3.9 |1.12.1|1.14.1| 0.8.2|1.14.0|
50+
|acpt-pytorch-1.12-cuda11.6|Ubuntu 20.04|cu116|3.8|1.12.1|1.14.1|0.8.2| 1.14.0|
51+
|acpt-pytorch-1.11-cuda11.5|Ubuntu 20.04|cu115|3.8|1.11.0|1.11.1|0.7.3| 1.11.0| 
52+
|acpt-pytorch-1.11-cuda11.3|Ubuntu 20.04|cu113|3.8|1.11.0|1.14.1|0.8.2| 1.14.0| 
53+
5454

5555
Other packages like fairscale, horovod, msccl, protobuf, pyspark, pytest, pytorch-lightning, tensorboard, NebulaML, torchvision, torchmetrics to support all training needs
5656

57+
[!NOTE]
58+
> Currently, due to underlying cuda and cluster incompatibilities, on [NC series](../virtual-machines/nc-series.md) only acpt-pytorch-1.11-cuda11.3 with cuda 11.3 and torch 1.11 can be used.
59+
5760
## Support
5861

5962
Version updates for supported environments, including the base images they reference, are released every two weeks to address vulnerabilities no older than 30 days. Based on usage, some environments may be deprecated (hidden from the product but usable) to support more common machine learning scenarios.

0 commit comments

Comments
 (0)