Skip to content

Commit b85b48d

Browse files
Merge pull request #223773 from santiagxf/santiagxf/batch-env
Update how-to-use-batch-endpoint.md
2 parents bff06e8 + 9769e3b commit b85b48d

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

articles/machine-learning/how-to-use-batch-endpoint.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,17 @@ A deployment is a set of resources required for hosting the model that does the
269269
* The environment in which the model runs.
270270
* The pre-created compute and resource settings.
271271
272-
1. Create an environment where your batch deployment will run. Include in the environment any dependency your code requires for running. In this case, the dependencies have been captured in a `conda.yml`.
273-
272+
1. Create an environment where your batch deployment will run. Such environment needs to include the packages `azureml-core` and `azureml-dataset-runtime[fuse]` which are required by batch endpoints plus any dependency your code requires for running. In this case, the dependencies have been captured in a `conda.yml`:
273+
274+
__mnist/environment/conda.yml__
275+
276+
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/batch/mnist/environment/conda.yml":::
277+
278+
> [!IMPORTANT]
279+
> The packages `azureml-core` and `azureml-dataset-runtime[fuse]` are required by batch deployments and should be included in the environment dependencies.
280+
281+
Indicate the environment as follows:
282+
274283
# [Azure CLI](#tab/azure-cli)
275284
276285
The environment definition will be included in the deployment definition itself as an anonymous environment. You will see in the following lines in the deployment:
@@ -303,19 +312,9 @@ A deployment is a set of resources required for hosting the model that does the
303312
304313
---
305314
306-
The conda file we used looks as follows:
307-
308-
__mnist/environment/conda.yml__
309-
310-
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/batch/mnist/environment/conda.yml":::
311-
312315
> [!WARNING]
313316
> Curated environments are not supported in batch deployments. You will need to indicate your own environment. You can always use the base image of a curated environment as yours to simplify the process.
314317
315-
> [!IMPORTANT]
316-
> The packages `azureml-core` and `azureml-dataset-runtime[fuse]` are required by batch deployments and should be included in the environment dependencies.
317-
318-
319318
1. Create a deployment definition
320319
321320
# [Azure CLI](#tab/azure-cli)

0 commit comments

Comments
 (0)