Skip to content

Commit 0e9d073

Browse files
authored
Update how-to-batch-scoring-script.md
1 parent 6978c25 commit 0e9d073

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

articles/machine-learning/how-to-batch-scoring-script.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,32 @@ Batch endpoints allow you to deploy models to perform long-running inference at
2727
2828
## Understanding the scoring script
2929

30-
The scoring script is a Python file (`.py`) that contains the logic about how to run the model and read the input data submitted by the batch deployment executor driver. Each model deployment has to provide a scoring script, however, an endpoint may host multiple deployments using different scoring script versions.
30+
The scoring script is a Python file (`.py`) that contains the logic about how to run the model and read the input data submitted by the batch deployment executor. Each model deployment provides the scoring script (allow with any other depenency required) at creation time. It is usually indicated as follows:
31+
32+
# [Azure CLI](#tab/cli)
33+
34+
__deployment.yml__
35+
36+
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/batch/deploy-models/mnist-classifier/deployment-torch/deployment.yml" range="8-10":::
37+
38+
# [Python](#tab/python)
39+
40+
```python
41+
deployment = BatchDeployment(
42+
...
43+
code_path="deployment-torch/code",
44+
scoring_script="batch_driver.py",
45+
...
46+
)
47+
```
48+
49+
# [Studio](#tab/azure-studio)
50+
51+
On [Azure Machine Learning studio portal](https://ml.azure.com), when creating a new deployment, you will be prompted for an scoring script and dependencies as follows:
52+
53+
:::image type="content" source="./media/how-to-batch-scoring-script/configure-scoring-script.png" alt-text="Screenshot of the step where you can configure the scroing script in a new deployment.":::
54+
55+
---
3156

3257
The scoring script must contain two methods:
3358

0 commit comments

Comments
 (0)