Skip to content

Commit 848e5bc

Browse files
Inference image and server updates
1 parent d6ebb6b commit 848e5bc

File tree

4 files changed

+76
-38
lines changed

4 files changed

+76
-38
lines changed

articles/machine-learning/concept-prebuilt-docker-images-inference.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@ ms.service: machine-learning
77
ms.subservice: core
88
ms.author: ssambare
99
author: shivanissambare
10-
ms.date: 10/21/2021
10+
ms.date: 07/14/2022
1111
ms.topic: conceptual
1212
ms.reviewer: larryfr
13-
ms.custom: deploy, docker, prebuilt, curated environments
13+
ms.custom: deploy, docker, prebuilt
1414
---
1515

1616
# Prebuilt Docker images for inference
1717

1818
Prebuilt Docker container images for inference are used when deploying a model with Azure Machine Learning. The images are prebuilt with popular machine learning frameworks and Python packages. You can also extend the packages to add other packages by using one of the following methods:
1919

20-
* [Add Python packages](how-to-prebuilt-docker-images-inference-python-extensibility.md).
2120
* [Use prebuilt inference image as base for a new Dockerfile](how-to-extend-prebuilt-docker-image-inference.md). Using this method, you can install both **Python packages and apt packages**.
2221

2322
## Why should I use prebuilt images?
@@ -29,6 +28,9 @@ Prebuilt Docker container images for inference are used when deploying a model w
2928

3029
## List of prebuilt Docker images for inference
3130

31+
> [!IMPORTANT]
32+
> The list provided below includes only **currently supported** inference images by Azure Machine Learning.
33+
3234
[!INCLUDE [list-of-inference-prebuilt-docker-images](../../includes/aml-inference-list-prebuilt-docker-images.md)]
3335

3436
## Next steps

articles/machine-learning/how-to-inference-server-http.md

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: machine-learning
1010
ms.subservice: core
1111
ms.topic: how-to
1212
ms.custom: inference server, local development, local debugging, devplatv2
13-
ms.date: 05/14/2021
13+
ms.date: 07/14/2022
1414
---
1515

1616
# Azure Machine Learning inference HTTP server (preview)
@@ -135,15 +135,53 @@ There are two ways to use Visual Studio Code (VSCode) and [Python Extension](htt
135135
1. User starts the AzureML Inference Server in a command line and use VSCode + Python Extension to attach to the process.
136136
1. User sets up the `launch.json` in the VSCode and start the AzureML Inference Server within VSCode.
137137
138+
**launch.json**
139+
```json
140+
{
141+
"name": "Debug score.py",
142+
"type": "python",
143+
"request": "launch",
144+
"module": "azureml_inference_server_http.amlserver",
145+
"args": [
146+
"--entry_script",
147+
"score.py"
148+
]
149+
}
150+
```
151+
138152
In both ways, user can set breakpoint and debug step by step.
139153
140154
## Frequently asked questions
141155
142-
### Do I need to reload the server when changing the score script?
156+
### 1. I encountered the following error during server startup:
157+
158+
```bash
159+
160+
TypeError: register() takes 3 positional arguments but 4 were given
161+
162+
File "/var/azureml-server/aml_blueprint.py", line 251, in register
163+
164+
super(AMLBlueprint, self).register(app, options, first_registration)
165+
166+
TypeError: register() takes 3 positional arguments but 4 were given
167+
168+
```
169+
170+
You have **Flask 2** installed in your python environment but are running a server (< 7.0.0) that does not support Flask 2. To resolve, please upgrade to the latest version of server.
171+
172+
### 2. I encountered an ``ImportError`` or ``ModuleNotFoundError`` on modules ``opencensus``, ``jinja2``, ``MarkupSafe``, or ``click`` during startup like the following:
173+
174+
```bash
175+
ImportError: cannot import name 'Markup' from 'jinja2'
176+
```
177+
178+
Some older versions of the server do not have the correct boundaries for these dependencies. Please upgrade to the latest version of the server. We also recommend to not include these packages in their dependencies and rely on our server package to install the compatible versions of these dependencies.
179+
180+
### 3. Do I need to reload the server when changing the score script?
143181
144182
After changing your scoring script (`score.py`), stop the server with `ctrl + c`. Then restart it with `azmlinfsrv --entry_script score.py`.
145183
146-
### Which OS is supported?
184+
### 4. Which OS is supported?
147185
148186
The Azure Machine Learning inference server runs on Windows & Linux based operating systems.
149187

articles/machine-learning/resource-curated-environments.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This article lists the curated environments with latest framework versions in Az
2929
>[!IMPORTANT]
3030
> To view more information about curated environment packages and versions, visit the Environments tab in the Azure Machine Learning [studio](./how-to-manage-environments-in-studio.md).
3131
32-
## Training curated environments
32+
## Curated environments
3333

3434
### PyTorch
3535

@@ -89,9 +89,5 @@ Azure ML pipeline training workflows that use AutoML automatically selects a cur
8989

9090
For more information on AutoML and Azure ML pipelines, see [use automated ML in an Azure Machine Learning pipeline in Python](how-to-use-automlstep-in-pipelines.md).
9191

92-
## Inference curated environments and prebuilt docker images
93-
94-
[!INCLUDE [list-of-inference-prebuilt-docker-images](../../includes/aml-inference-list-prebuilt-docker-images.md)]
95-
9692
## Support
9793
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.

includes/aml-inference-list-prebuilt-docker-images.md

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,49 @@ ms.service: machine-learning
77
ms.author: ssambare
88
ms.custom: "include file"
99
ms.topic: "include"
10-
ms.date: 10/07/2021
10+
ms.date: 07/14/2022
1111
---
1212

1313
* All the docker images run as non-root user.
14-
* We recommend using `latest` tag for docker images. Prebuilt docker images for inference are published to Microsoft container registry (MCR), to query list of tags available, follow [instructions on their GitHub repository](https://github.com/microsoft/ContainerRegistry#browsing-mcr-content).
14+
* We recommend using `latest` tag for docker images. Prebuilt docker images for inference are published to Microsoft container registry (MCR), to query list of tags available, follow [instructions on the GitHub repository](https://github.com/microsoft/ContainerRegistry#browsing-mcr-content).
15+
16+
### No framework
17+
18+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
19+
--- | --- | --- | --- |
20+
NA | CPU | NA | `mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest`
21+
NA | GPU | NA | `mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cuda11.0.3-gpu-inference:latest`
1522

1623
### TensorFlow
1724

18-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
19-
--- | --- | --- | --- | --- |
20-
1.15 | CPU | pandas==0.25.1 </br> numpy=1.20.1 | `mcr.microsoft.com/azureml/tensorflow-1.15-ubuntu18.04-py37-cpu-inference:latest` | AzureML-tensorflow-1.15-ubuntu18.04-py37-cpu-inference |
21-
2.4 | CPU | numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/tensorflow-2.4-ubuntu18.04-py37-cpu-inference:latest` | AzureML-tensorflow-2.4-ubuntu18.04-py37-cpu-inference |
22-
2.4 | GPU | numpy >= 1.16.0 </br> pandas~=1.1.x </br> CUDA==11.0.3 </br> CuDNN==8.0.5.39 | `mcr.microsoft.com/azureml/tensorflow-2.4-ubuntu18.04-py37-cuda11.0.3-gpu-inference:latest` | AzureML-tensorflow-2.4-ubuntu18.04-py37-cuda11.0.3-gpu-inference |
25+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
26+
--- | --- | --- | --- |
27+
2.4 | CPU | numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/tensorflow-2.4-ubuntu18.04-py37-cpu-inference:latest`
28+
2.4 | GPU | numpy >= 1.16.0 </br> pandas~=1.1.x </br> CUDA==11.0.3 </br> CuDNN==8.0.5.39 | `mcr.microsoft.com/azureml/tensorflow-2.4-ubuntu18.04-py37-cuda11.0.3-gpu-inference:latest`
29+
1.15 | CPU | pandas == 0.25.1 </br> numpy == 1.20.1 | `mcr.microsoft.com/azureml/tensorflow-1.15-ubuntu18.04-py37-cpu-inference:latest`
2330

2431
### PyTorch
2532

26-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
27-
--- | --- | --- | --- | --- |
28-
1.6 | CPU | numpy==1.20.1 </br> pandas==0.25.1 | `mcr.microsoft.com/azureml/pytorch-1.6-ubuntu18.04-py37-cpu-inference:latest` | AzureML-pytorch-1.6-ubuntu18.04-py37-cpu-inference |
29-
1.7 | CPU | numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/pytorch-1.7-ubuntu18.04-py37-cpu-inference:latest` | AzureML-pytorch-1.7-ubuntu18.04-py37-cpu-inference |
33+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
34+
--- | --- | --- | --- |
35+
1.10 | CPU | numpy >= 1.16.0 </br> pandas >= 1.1, < 1.2 | `mcr.microsoft.com/azureml/pytorch-1.10-ubuntu18.04-py37-cpu-inference`
36+
1.9 | CPU | numpy >= 1.16.0 </br> pandas >= 1.1, < 1.2 | `mcr.microsoft.com/azureml/pytorch-1.9-ubuntu18.04-py37-cpu-inference:latest`
37+
1.9 | GPU | | `mcr.microsoft.com/azureml/pytorch-1.9-ubuntu18.04-py37-cuda11.0.3-gpu-inference:latest`
3038

3139
### SciKit-Learn
3240

33-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
34-
--- | --- | --- | --- | --- |
35-
0.24.1 | CPU | scikit-learn==0.24.1 </br> numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/sklearn-0.24.1-ubuntu18.04-py37-cpu-inference:latest` | AzureML-sklearn-0.24.1-ubuntu18.04-py37-cpu-inference |
41+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
42+
--- | --- | --- | --- |
43+
0.24.1 | CPU | scikit-learn==0.24.1 </br> numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/sklearn-0.24.1-ubuntu18.04-py37-cpu-inference:latest`
3644

37-
### ONNX Runtime
45+
### LightGBM
3846

39-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
40-
--- | --- | --- | --- | --- |
41-
1.6 | CPU | numpy>=1.16.0 </br> pandas~=1.1.x | `mcr.microsoft.com/azureml/onnxruntime-1.6-ubuntu18.04-py37-cpu-inference:latest` |AzureML-onnxruntime-1.6-ubuntu18.04-py37-cpu-inference |
47+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
48+
--- | --- | --- | --- |
49+
3.2 | CPU | scikit-learn==0.24.1 </br> numpy>=1.16.0, <1.20 </br> pandas>=1.1, <1.2 | `mcr.microsoft.com/azureml/lightgbm-3.2-ubuntu18.04-py37-cpu-inference:latest`
4250

4351
### XGBoost
4452

45-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
46-
--- | --- | --- | --- | --- |
47-
0.9 | CPU | scikit-learn==0.23.2 </br> numpy==1.20.1 </br> pandas==0.25.1 | `mcr.microsoft.com/azureml/xgboost-0.9-ubuntu18.04-py37-cpu-inference:latest` | AzureML-xgboost-0.9-ubuntu18.04-py37-cpu-inference |
48-
49-
### No framework
50-
51-
Framework version | CPU/GPU | Pre-installed packages | MCR Path | Curated environment
52-
--- | --- | --- | --- | --- |
53-
NA | CPU | NA | `mcr.microsoft.com/azureml/minimal-ubuntu18.04-py37-cpu-inference:latest` | AzureML-minimal-ubuntu18.04-py37-cpu-inference |
53+
Framework version | CPU/GPU | Pre-installed packages | MCR Path
54+
--- | --- | --- | --- |
55+
0.9 | CPU | scikit-learn==0.23.2 </br> numpy==1.20.1 </br> pandas==0.25.1 | `mcr.microsoft.com/azureml/xgboost-0.9-ubuntu18.04-py37-cpu-inference:latest` |

0 commit comments

Comments
 (0)