Skip to content

Commit 05c914d

Browse files
Merge pull request #3399 from Blackmist/402358-fresh
402358 fresh
2 parents e46536e + 3cc03d2 commit 05c914d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/machine-learning/v1/how-to-deploy-profile-model.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Use CLI (v1) or SDK (v1) to profile your model before deployment. P
55
services: machine-learning
66
ms.service: azure-machine-learning
77
ms.subservice: inferencing
8-
ms.date: 11/04/2022
8+
ms.date: 03/07/2025
99
ms.topic: how-to
1010
zone_pivot_groups: aml-control-methods
1111
ms.reviewer: None
@@ -18,37 +18,37 @@ ms.custom: UpdateFrequency5, deploy, cliv1, sdkv1
1818

1919
[!INCLUDE [dev v1](../includes/machine-learning-dev-v1.md)]
2020

21-
This article shows how to profile a machine learning to model to determine how much CPU and memory you will need to allocate for the model when deploying it as a web service.
21+
This article shows how to profile a machine learning to model to determine how much CPU and memory you need to allocate for the model when deploying it as a web service.
2222

2323
> [!IMPORTANT]
24-
> This article applies to CLI v1 and SDK v1. This profiling technique is not available for v2 of either CLI or SDK.
24+
> This article applies to CLI v1 and SDK v1. This profiling technique isn't available for v2 of either CLI or SDK.
2525
2626
[!INCLUDE [cli v1 deprecation](../includes/machine-learning-cli-v1-deprecation.md)]
2727

2828
## Prerequisites
2929

30-
This article assumes you have trained and registered a model with Azure Machine Learning. See the [sample tutorial here](../how-to-train-scikit-learn.md) for an example of training and registering a scikit-learn model with Azure Machine Learning.
30+
This article assumes you train and register a model with Azure Machine Learning. See the [sample tutorial here](how-to-train-scikit-learn.md) for an example of training and registering a scikit-learn model with Azure Machine Learning.
3131

3232
## Limitations
3333

34-
* Profiling will not work when the Azure Container Registry (ACR) for your workspace is behind a virtual network.
34+
* Profiling doesn't work when the Azure Container Registry (ACR) for your workspace is behind a virtual network.
3535

3636
## Run the profiler
3737

38-
Once you have registered your model and prepared the other components necessary for its deployment, you can determine the CPU and memory the deployed service will need. Profiling tests the service that runs your model and returns information such as the CPU usage, memory usage, and response latency. It also provides a recommendation for the CPU and memory based on resource usage.
38+
Once you register your model and prepared the other components necessary for its deployment, you can determine the CPU and memory the deployed service need. Profiling tests the service that runs your model and returns information such as the CPU usage, memory usage, and response latency. It also provides a recommendation for the CPU and memory based on resource usage.
3939

40-
In order to profile your model, you will need:
40+
In order to profile your model, you need:
4141
* A registered model.
4242
* An inference configuration based on your entry script and inference environment definition.
4343
* A single column tabular dataset, where each row contains a string representing sample request data.
4444

4545
> [!IMPORTANT]
46-
> At this point we only support profiling of services that expect their request data to be a string, for example: string serialized json, text, string serialized image, etc. The content of each row of the dataset (string) will be put into the body of the HTTP request and sent to the service encapsulating the model for scoring.
46+
> Azure Machine Learning only supports profiling of services that expect their request data to be a string, for example: string serialized json, text, string serialized image, etc. The content of each row of the dataset (string) is put into the body of the HTTP request and sent to the service encapsulating the model for scoring.
4747
4848
> [!IMPORTANT]
4949
> We only support profiling up to 2 CPUs in ChinaEast2 and USGovArizona region.
5050
51-
Below is an example of how you can construct an input dataset to profile a service that expects its incoming request data to contain serialized json. In this case, we created a dataset based 100 instances of the same request data content. In real world scenarios we suggest that you use larger datasets containing various inputs, especially if your model resource usage/behavior is input dependent.
51+
The following is an example of how you can construct an input dataset to profile a service that expects its incoming request data to contain serialized json. In this case, we created a dataset based 100 instances of the same request data content. In real world scenarios we suggest that you use larger datasets containing various inputs, especially if your model resource usage/behavior is input dependent.
5252

5353
::: zone pivot="py-sdk"
5454

0 commit comments

Comments
 (0)