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
The following diagram is a visual representation of the dynamic installation process:
70
+
71
+
:::image type="content" source="./media/how-to-prebuilt-docker-images-inference-python-extensibility/dynamic-install-python-extend.svg" alt-text="Diagram of dynamic installation process":::
70
72
71
73
## Pre-installed python packages
72
74
@@ -128,6 +130,10 @@ To extend your prebuilt docker container image through pre-installed python pack
128
130
}
129
131
```
130
132
133
+
The following diagram is a visual representation of the pre-installed packages process:
134
+
135
+
:::image type="content" source="./media/how-to-prebuilt-docker-images-inference-python-extensibility/pre-install-python-extend.svg" alt-text="Diagram of the process using preinstalled packages":::
136
+
131
137
### Common problems
132
138
133
139
The mounting solution will only work when your `myenv` site packages directory contains all of your dependencies. If your local environment is using dependencies installed in a different location, they won't be available in the image.
@@ -185,9 +191,9 @@ Instead of using `Model.package()` to add other dependencies, we encourage you t
| Solution | Create a `requirements.txt` that installs the specified packages when the container starts. | Create a local python environment with all of the dependencies. Mount this directory into container at runtime.|
| Solution | Create a `requirements.txt` that installs the specified packages when the container starts. | Create a local python environment with all of the dependencies. Mount this directory into container at runtime. |
191
197
| Package Installation | No extra installation (assuming pip already installed) | Virtual environment or conda environment installation. |
192
198
| Virtual environment Setup | No extra setup of virtual environment required, as users can pull the current local user environment with pip freeze as needed to create the `requirements.txt`. | Need to set up a clean virtual environment, may take extra steps depending on the current user local environment. |
193
199
| Debugging | Easy to set up and debug server, since dependencies are clearly listed. | Unclean virtual environment could cause problems when debugging of server. For example, it may not be clear if errors come from the environment or user code. |
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-troubleshoot-prebuilt-docker-image-inference.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Learn how to troubleshoot problems you may see when using prebuilt docker images
22
22
23
23
If model deployment fails, you won't see logs in [Azure Machine Learning Studio](https://ml.azure.com/) and `service.get_logs()` will return **None**.
24
24
25
-
So you'll need to run the container locally using one of the commands shown below and replace `<MCR-path>` with an image path in this [table of curated images]().
25
+
So you'll need to run the container locally using one of the commands shown below and replace `<MCR-path>` with an image path in this [table of prebuilt images](concept-prebuilt-docker-images-inference.md#list-of-prebuilt-Docker-images-for-inference).
Copy file name to clipboardExpand all lines: articles/machine-learning/media/how-to-prebuilt-docker-images-inference-python-extensibility/dynamic-install-python-extend.svg
Copy file name to clipboardExpand all lines: articles/machine-learning/media/how-to-prebuilt-docker-images-inference-python-extensibility/pre-install-python-extend.svg
0 commit comments