Announcing managed endpoints in Azure Machine Learning for simplified model deployment

Published May 25 2021 08:00 AM 7,805 Views
Microsoft

At Microsoft Build 2021 we announced the public preview of Azure Machine Learning managed endpoints. In this post, we’ll walk you through some of the capabilities of managed endpoints. But first a quick recap - Managed endpoints are designed to help our customers deploy their models in a turnkey manner across powerful CPU and GPU machines in Azure in a scalable, fully managed way. These take care of serving, scaling, securing & monitoring your ML models, freeing you from the overhead of setting up and managing the underlying infrastructure.

 

Customer challenges

Currently, when customers want to deploy models for online/real-time inference in a production environment with Azure ML, they create and manage the underlying cluster infrastructure by themselves. These are some of the challenges we have heard from customers:

  • Need ability to swiftly launch a new endpoint backed by a large set of instances.
  • Need a better experience to debug issues locally before deploying to azure.
  • Need the ability to set up SLA monitoring on endpoint metrics.
  • It is challenging to maintain custom infrastructure like Kubernetes - Performing version updates, security hardening, scaling clusters, and getting internal security approval - all require specialized expertise.

Similarly, when customers want to run a batch inference with Azure ML they need to learn a different set of concepts. At Build 2020, we released the parallel runstep, a new step in the Azure Machine Learning pipeline, designed for embarrassingly parallel machine learning workload. Nestlé uses it to perform batch inference and flag phishing emails. AGL uses it to build parallel at-scale training and batch inference. While customers are happy with the experience, performance, and scale parallel run step provides, the feedback was that there’s a steep learning curve to use it for the first time. They must construct a pipeline with a parallel run step, prepare an environment, write a scoring script, create a dataset, run the pipeline, and publish the pipeline to re-use or run from external platforms. Essentially customers want the ability to run batch inference seamlessly without the need for any additional steps once the models are registered in Azure ML.

This is what managed endpoints in Azure ML are designed to address. Let’s look at them in more detail.

 

Managed online endpoints

This is a new capability for the online/real-time scoring of your models. Following is a summary of features and benefits:

  • Managed infrastructure:
    • Users specify the VM instance type (SKU) and scale settings and the system takes care of provisioning the compute and hosting the
    • The system handles update/patch of the underlying host OS images
    • The system handles node recovery in case of system failure.
  • The safe rollout of a model by using native support for blue/green deployment. When rolling out a new version of a model, you can create a new deployment under the same endpoint and gradually divert traffic to it by validating that there are no errors and disruptions.

Sethu_Raman_0-1621546335839.png

  • Monitor SLA: Monitor endpoint metrics like latency and throughput, and resource metrics like CPU/GPU utilization using out-of-the-box integration with Azure Monitor. You can also set alerts for threshold breaches.

Sethu_Raman_1-1621546335842.png

  • Debug in a local Docker environment using Local endpoints. You will be able to use the same CLI command and configuration that you will use for cloud deployment, with just an additional flag.
  • Enable log analytics integration to analyze issues and identify trends. Analyze performance by enabling integration with App Insights

Sethu_Raman_2-1621546335851.png

  • View costs at endpoint & deployment level using Azure cost analysis

 Sethu_Raman_3-1621546335859.png

  • Security: Endpoints support key and azure ml token auth. To access secured resources, both user-assigned, and system-assigned managed identities are supported.
  • Build MLOps pipelines using our new CLI & REST/ARM interfaces. The YAML file in CLI enables GitOps support with full audibility and repeatability by declaring HOW you want production.
  • Users can also use Azure ML Studio to create and manage endpoints.

 

Here’s a quick 3-minute walkthrough of the experience:

 

 

Managed batch endpoints

We are simplifying the batch inference experience through managed batch endpoints. This would help our customers speed up model deployment in a turnkey manner, with all the following capabilities:

  • No-code model deployment for MLflow: With Batch Endpoints, we eliminate numerous steps with creating pipelines, setting up a parallel run step, writing the scoring script, preparing environments, automation, etc. Now, for MLflow registered models, customers only need to provide the model and a compute target, run one command, and a batch endpoint is ready to use. The scoring script and environment will be automatically generated.
Sethu_Raman_4-1621546335871.png

 

Sethu_Raman_5-1621546335876.png

 

 

  • Flexible input data sources and configurable output location: Customers can run batch inference through managed batch endpoint using an Azure ML registered dataset, other datasets in the cloud, or datasets stored locally. The output location can also be specified to any data store.
  • Managed cost with autoscaling compute: Invoking a batch endpoint triggers an asynchronous batch inference job. Compute resources are automatically provisioned when the job starts, and automatically de-allocated as the job completes. Customers only pay for compute when they use it. They can override compute resource settings (like instance count) and advanced settings (like mini-batch size, error threshold, and so on) for each individual batch inference job to speed up execution as well as reduce cost.

How managed endpoints work

We are introducing the concept of “endpoint” and “deployment”. Using these, users will be able to create multiple versions of models under a single endpoint and perform safe rollout to newer versions.

Sethu_Raman_6-1621546335878.png

 

Endpoint

An HTTPS endpoint that clients can invoke to get the inference output of models. It provides:

  • Stable URI:  my-endpoint.region.inference.ml.azure.com
  • Authentication: Key & Token-based auth
  • SSL Termination
  • Traffic split between deployments

Deployment

A set of compute resources hosting the model and performing inference. Users can configure:

  • Model details (code, model, environment)
  • Resource and scale settings
  • Advanced settings like request and probe settings

The above picture shows a managed online endpoint with a traffic split of 90% and 10% between blue and green deployments, respectively (these names are for illustration purposes – you can have any name). The blue deployment is running model version 1 in three CPU nodes (F2S VMs) and the green deployment is running on model version 2 in three GPU nodes (NC6v2 VMs).

With multiple deployment support and traffic split capability, users can perform safe rollout of new models by gradually migrating traffic [in this case] from blue to green and monitoring metrics at every stage to ensure the rollout has been successful.

Endpoints and deployments are applicable for Batch endpoints as well, with the following exceptions:

  • Only AAD token auth is supported
  • The concept of traffic split (there can be only active deployment with 100% traffic) and safe rollout is not applicable
  • For deployments, the advanced settings are batch-specific (e.g. mini_batch_size, error_threshold, etc)

Summary

In summary, managed endpoints help ML teams focus more on the business problem than the underlying infrastructure. It provides a simple developer interface to deploy and score models and help in the operational aspects of model deployment including safely rolling out models, debugging issues faster, and monitoring SLA. Please give these a spin using the following assets and do share your feedback with us.

Get started now!

Deploy an online endpoint

Deploy a batch endpoint

Data Scientist Resources

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2366481%22%20slang%3D%22en-US%22%3EAnnouncing%20managed%20endpoints%20in%20Azure%20Machine%20Learning%20for%20simplified%20model%20deployment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2366481%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20Microsoft%20Build%202021%20we%20announced%20the%20public%20preview%20of%20Azure%20Machine%20Learning%20managed%20endpoints.%20In%20this%20post%2C%20we%E2%80%99ll%20walk%20you%20through%20some%20of%20the%20capabilities%20of%20managed%20endpoints.%20But%20first%20a%20quick%20recap%20-%20Managed%20endpoints%20are%20designed%20to%20help%20our%20customers%20deploy%20their%20models%20in%20a%20turnkey%20manner%20across%20powerful%20CPU%20and%20GPU%20machines%20in%20Azure%20in%20a%20scalable%2C%20fully%20managed%20way.%20These%20take%20care%20of%20serving%2C%20scaling%2C%20securing%20%26amp%3B%20monitoring%20your%20ML%20models%2C%20freeing%20you%20from%20the%20overhead%20of%20setting%20up%20and%20managing%20the%20underlying%20infrastructure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--464217960%22%20id%3D%22toc-hId--464218020%22%3ECustomer%20challenges%3C%2FH2%3E%0A%3CP%3ECurrently%2C%20when%20customers%20want%20to%20deploy%20models%20for%20%3CSTRONG%3Eonline%3C%2FSTRONG%3E%2Freal-time%20inference%20in%20a%20production%20environment%20with%20Azure%20ML%2C%20they%20create%20and%20manage%20the%20underlying%20cluster%20infrastructure%20by%20themselves.%20These%20are%20some%20of%20the%20challenges%20we%20have%20heard%20from%20customers%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ENeed%20ability%20to%20swiftly%20launch%20a%20new%20endpoint%20backed%20by%20a%20large%20set%20of%20instances.%3C%2FLI%3E%0A%3CLI%3ENeed%20a%20better%20experience%20to%20debug%20issues%20locally%20before%20deploying%20to%20azure.%3C%2FLI%3E%0A%3CLI%3ENeed%20the%20ability%20to%20set%20up%20SLA%20monitoring%20on%20endpoint%20metrics.%3C%2FLI%3E%0A%3CLI%3EIt%20is%20challenging%20to%20maintain%20custom%20infrastructure%20like%20Kubernetes%20-%20Performing%20version%20updates%2C%20security%20hardening%2C%20scaling%20clusters%2C%20and%20getting%20internal%20security%20approval%20-%20all%20require%20specialized%20expertise.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ESimilarly%2C%20when%20customers%20want%20to%20run%20a%20%3CSTRONG%3Ebatch%3C%2FSTRONG%3E%20inference%20with%20Azure%20ML%20they%20need%20to%20learn%20a%20different%20set%20of%20concepts.%20At%20Build%202020%2C%20we%20released%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-ai%2Fbatch-inference-in-azure-machine-learning%2Fba-p%2F1417010%22%20target%3D%22_blank%22%3Eparallel%20runstep%3C%2FA%3E%2C%20a%20new%20step%20in%20the%20Azure%20Machine%20Learning%20pipeline%2C%20designed%20for%20embarrassingly%20parallel%20machine%20learning%20workload.%20%3CA%20href%3D%22https%3A%2F%2Fcustomers.microsoft.com%2Fen-us%2Fstory%2F844797-nestle-consumer-goods-azure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ENestl%C3%A9%3C%2FA%3E%20uses%20it%20to%20perform%20batch%20inference%20and%20flag%20phishing%20emails.%20%3CA%20href%3D%22https%3A%2F%2Fcustomers.microsoft.com%2Fen-us%2Fstory%2F844796-agl-energy-azure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAGL%3C%2FA%3E%20uses%20it%20to%20build%26nbsp%3Bparallel%20at-scale%20training%20and%20batch%20inference.%20While%20customers%20are%20happy%20with%20the%20experience%2C%20performance%2C%20and%20scale%20parallel%20run%20step%20provides%2C%20the%20feedback%20was%20that%20there%E2%80%99s%20a%20steep%20learning%20curve%20to%20use%20it%20for%20the%20first%20time.%20They%20must%20construct%20a%20pipeline%20with%20a%20parallel%20run%20step%2C%20prepare%20an%20environment%2C%20write%20a%20scoring%20script%2C%20create%20a%20dataset%2C%20run%20the%20pipeline%2C%20and%20publish%20the%20pipeline%20to%20re-use%20or%20run%20from%20external%20platforms.%20Essentially%20customers%20want%20the%20ability%20to%20run%20batch%20inference%20seamlessly%20without%20the%20need%20for%20any%20additional%20steps%20once%20the%20models%20are%20registered%20in%20Azure%20ML.%3C%2FP%3E%0A%3CP%3EThis%20is%20what%20managed%20endpoints%20in%20Azure%20ML%20are%20designed%20to%20address.%20Let%E2%80%99s%20look%20at%20them%20in%20more%20detail.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2023294873%22%20id%3D%22toc-hId-2023294813%22%3EManaged%20online%20endpoints%3C%2FH2%3E%0A%3CP%3EThis%20is%20a%20new%20capability%20for%20the%20online%2Freal-time%20scoring%20of%20your%20models.%20Following%20is%20a%20summary%20of%20features%20and%20benefits%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EManaged%20infrastructure%3C%2FSTRONG%3E%3A%3CUL%3E%0A%3CLI%3EUsers%20specify%20the%20VM%20instance%20type%20(SKU)%20and%20scale%20settings%20and%20the%20system%20takes%20care%20of%20provisioning%20the%20compute%20and%20hosting%20the%3C%2FLI%3E%0A%3CLI%3EThe%20system%20handles%20update%2Fpatch%20of%20the%20underlying%20host%20OS%20images%3C%2FLI%3E%0A%3CLI%3EThe%20system%20handles%20node%20recovery%20in%20case%20of%20system%20failure.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EThe%3CSTRONG%3E%20safe%20rollout%3C%2FSTRONG%3E%20of%20a%20model%20by%20using%20native%20support%20for%20blue%2Fgreen%20deployment.%20When%20rolling%20out%20a%20new%20version%20of%20a%20model%2C%20you%20can%20create%20a%20new%20deployment%20under%20the%20same%20endpoint%20and%20gradually%20divert%20traffic%20to%20it%20by%20validating%20that%20there%20are%20no%20errors%20and%20disruptions.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_0-1621546335839.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282433iD8E9CA61369AD00B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_0-1621546335839.png%22%20alt%3D%22Sethu_Raman_0-1621546335839.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EMonitor%20SLA%3A%3C%2FSTRONG%3E%20Monitor%20endpoint%20metrics%20like%20latency%20and%20throughput%2C%20and%20resource%20metrics%20like%20CPU%2FGPU%20utilization%20using%20out-of-the-box%20integration%20with%20Azure%20Monitor.%20You%20can%20also%20set%20alerts%20for%20threshold%20breaches.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_1-1621546335842.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282434iB80140BEDD3E4813%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_1-1621546335842.png%22%20alt%3D%22Sethu_Raman_1-1621546335842.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDebug%20in%20a%20local%20Docker%20environment%20using%20%3CSTRONG%3ELocal%20endpoints%3C%2FSTRONG%3E.%20You%20will%20be%20able%20to%20use%20the%20same%20CLI%20command%20and%20configuration%20that%20you%20will%20use%20for%20cloud%20deployment%2C%20with%20just%20an%20additional%20flag.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3EEnable%20%3CSTRONG%3Elog%20analytics%20integration%3C%2FSTRONG%3E%20to%20analyze%20issues%20and%20identify%20trends.%20Analyze%20performance%20by%20enabling%20%3CSTRONG%3Eintegration%20with%20%3C%2FSTRONG%3E%3CSTRONG%3EApp%20Insights%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_2-1621546335851.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282435i1BF4B2516A1DAF17%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_2-1621546335851.png%22%20alt%3D%22Sethu_Raman_2-1621546335851.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EView%20costs%3C%2FSTRONG%3E%20at%20endpoint%20%26amp%3B%20deployment%20level%20using%20Azure%20cost%20analysis%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_3-1621546335859.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282436iC4C3582E914F8FFD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_3-1621546335859.png%22%20alt%3D%22Sethu_Raman_3-1621546335859.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ESecurity%3C%2FSTRONG%3E%3A%20Endpoints%20support%20key%20and%20azure%20ml%20token%20auth.%20To%20access%20secured%20resources%2C%20both%20user-assigned%2C%20and%20system-assigned%20managed%20identities%20are%20supported.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3EBuild%20MLOps%20pipelines%20using%20our%20new%20CLI%20%26amp%3B%20REST%2FARM%20interfaces.%20The%20YAML%20file%20in%20CLI%20enables%20GitOps%20support%20with%20full%20audibility%20and%20repeatability%20by%20declaring%20HOW%20you%20want%20production.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%3EUsers%20can%20also%20use%20Azure%20ML%20Studio%20to%20create%20and%20manage%20endpoints.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%E2%80%99s%20a%20quick%203-minute%20walkthrough%20of%20the%20experience%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fchannel9.msdn.com%2FShows%2FDocs-AI%2FManaged-online-endpoints%2Fplayer%22%20width%3D%22960%22%20height%3D%22540%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20title%3D%22Managed%20online%20endpoints%20-%20Microsoft%20Channel%209%20Video%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-215840410%22%20id%3D%22toc-hId-215840350%22%3EManaged%20batch%20endpoints%3C%2FH2%3E%0A%3CP%3EWe%20are%20simplifying%20the%20batch%20inference%20experience%20through%20managed%20batch%20endpoints.%20This%20would%20help%20our%20customers%20speed%20up%20model%20deployment%20in%20a%20turnkey%20manner%2C%20with%20all%20the%20following%20capabilities%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ENo-code%20model%20deployment%20for%20MLflow%3C%2FSTRONG%3E%3A%20With%20Batch%20Endpoints%2C%20we%20eliminate%20numerous%20steps%20with%20creating%20pipelines%2C%20setting%20up%20a%20parallel%20run%20step%2C%20writing%20the%20scoring%20script%2C%20preparing%20environments%2C%20automation%2C%20etc.%20Now%2C%20for%20MLflow%20registered%20models%2C%20customers%20only%20need%20to%20provide%20the%20model%20and%20a%20compute%20target%2C%20run%20one%20command%2C%20and%20a%20batch%20endpoint%20is%20ready%20to%20use.%20The%20scoring%20script%20and%20environment%20will%20be%20automatically%20generated.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CTABLE%20width%3D%221277%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22432%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_4-1621546335871.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282438i2B7B2E68CEC6086A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_4-1621546335871.png%22%20alt%3D%22Sethu_Raman_4-1621546335871.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22845%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_5-1621546335876.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282437i043179D3483140A2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_5-1621546335876.png%22%20alt%3D%22Sethu_Raman_5-1621546335876.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EFlexible%20input%20data%20sources%20and%20configurable%20output%20location%3A%20%3C%2FSTRONG%3ECustomers%20can%20run%20batch%20inference%20through%20managed%20batch%20endpoint%20using%20an%20Azure%20ML%20registered%20dataset%2C%20other%20datasets%20in%20the%20cloud%2C%20or%20datasets%20stored%20locally.%20The%20output%20location%20can%20also%20be%20specified%20to%20any%20data%20store.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EManaged%20cost%20with%20autoscaling%20compute%3C%2FSTRONG%3E%3A%20Invoking%20a%20batch%20endpoint%20triggers%20an%20asynchronous%20batch%20inference%20job.%20Compute%20resources%20are%20automatically%20provisioned%20when%20the%20job%20starts%2C%20and%20automatically%20de-allocated%20as%20the%20job%20completes.%20Customers%20only%20pay%20for%20compute%20when%20they%20use%20it.%20They%20can%20override%20compute%20resource%20settings%20(like%20instance%20count)%20and%20advanced%20settings%20(like%20mini-batch%20size%2C%20error%20threshold%2C%20and%20so%20on)%20for%20each%20individual%20batch%20inference%20job%20to%20speed%20up%20execution%20as%20well%20as%20reduce%20cost.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fchannel9.msdn.com%2FShows%2FDocs-AI%2FBatch-Inference-with-Azure-Machine-Learning-Batch-Endpoints%2Fplayer%22%20width%3D%22960%22%20height%3D%22540%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20title%3D%22Batch%20Inference%20with%20Azure%20Machine%20Learning%20Batch%20Endpoints%20-%20Microsoft%20Channel%209%20Video%22%3E%3C%2FIFRAME%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1591614053%22%20id%3D%22toc-hId--1591614113%22%3EHow%20managed%20endpoints%20work%3C%2FH2%3E%0A%3CP%3EWe%20are%20introducing%20the%20concept%20of%20%E2%80%9Cendpoint%E2%80%9D%20and%20%E2%80%9Cdeployment%E2%80%9D.%20Using%20these%2C%20users%20will%20be%20able%20to%20create%20multiple%20versions%20of%20models%20under%20a%20single%20endpoint%20and%20perform%20safe%20rollout%20to%20newer%20versions.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sethu_Raman_6-1621546335878.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282439iF10292F821EBDBBB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sethu_Raman_6-1621546335878.png%22%20alt%3D%22Sethu_Raman_6-1621546335878.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--901052579%22%20id%3D%22toc-hId--901052639%22%3E%3CSPAN%3EEndpoint%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%3EAn%20HTTPS%20endpoint%20that%20clients%20can%20invoke%20to%20get%20the%20inference%20output%20of%20models.%20It%20provides%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EStable%20URI%3A%26nbsp%3B%20my-endpoint.region.inference.ml.azure.com%3C%2FLI%3E%0A%3CLI%3EAuthentication%3A%20Key%20%26amp%3B%20Token-based%20auth%3C%2FLI%3E%0A%3CLI%3ESSL%20Termination%3C%2FLI%3E%0A%3CLI%3ETraffic%20split%20between%20deployments%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId-1586460254%22%20id%3D%22toc-hId-1586460194%22%3EDeployment%3C%2FH3%3E%0A%3CP%3EA%20set%20of%20compute%20resources%20hosting%20the%20model%20and%20performing%20inference.%20Users%20can%20configure%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EModel%20details%20(code%2C%20model%2C%20environment)%3C%2FLI%3E%0A%3CLI%3EResource%20and%20scale%20settings%3C%2FLI%3E%0A%3CLI%3EAdvanced%20settings%20like%20request%20and%20probe%20settings%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20above%20picture%20shows%20a%20%3CSTRONG%3Emanaged%20online%3C%2FSTRONG%3E%3CSTRONG%3E%20endpoint%3C%2FSTRONG%3E%20with%20a%20traffic%20split%20of%2090%25%20and%2010%25%20between%20blue%20and%20green%20deployments%2C%20respectively%20(these%20names%20are%20for%20illustration%20purposes%20%E2%80%93%20you%20can%20have%20any%20name).%20The%20blue%20deployment%20is%20running%20model%20version%201%20in%20three%20CPU%20nodes%20(F2S%20VMs)%20and%20the%20green%20deployment%20is%20running%20on%20model%20version%202%20in%20three%20GPU%20nodes%20(NC6v2%20VMs).%3C%2FP%3E%0A%3CP%3EWith%20multiple%20deployment%20support%20and%20traffic%20split%20capability%2C%20users%20can%20perform%20safe%20rollout%20of%20new%20models%20by%20gradually%20migrating%20traffic%20%5Bin%20this%20case%5D%20from%20blue%20to%20green%20and%20monitoring%20metrics%20at%20every%20stage%20to%20ensure%20the%20rollout%20has%20been%20successful.%3C%2FP%3E%0A%3CP%3EEndpoints%20and%20deployments%20are%20applicable%20for%20%3CSTRONG%3EBatch%20endpoints%3C%2FSTRONG%3E%20as%20well%2C%20with%20the%20following%20exceptions%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOnly%20AAD%20token%20auth%20is%20supported%3C%2FLI%3E%0A%3CLI%3EThe%20concept%20of%20traffic%20split%20(there%20can%20be%20only%20active%20deployment%20with%20100%25%20traffic)%20and%20safe%20rollout%20is%20not%20applicable%3C%2FLI%3E%0A%3CLI%3EFor%20deployments%2C%20the%20advanced%20settings%20are%20batch-specific%20(e.g.%20mini_batch_size%2C%20error_threshold%2C%20etc)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId--922058787%22%20id%3D%22toc-hId--922058847%22%3ESummary%3C%2FH1%3E%0A%3CP%3EIn%20summary%2C%20managed%20endpoints%20help%20ML%20teams%20focus%20more%20on%20the%20business%20problem%20than%20the%20underlying%20infrastructure.%20It%20provides%20a%20simple%20developer%20interface%20to%20deploy%20and%20score%20models%20and%20help%20in%20the%20operational%20aspects%20of%20model%20deployment%20including%20safely%20rolling%20out%20models%2C%20debugging%20issues%20faster%2C%20and%20monitoring%20SLA.%20Please%20give%20these%20a%20spin%20using%20the%20following%20assets%20and%20do%20share%20your%20feedback%20with%20us.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--231497313%22%20id%3D%22toc-hId--231497373%22%3EGet%20started%20now!%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fmanaged-online-endpoints%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDeploy%20an%20online%20endpoint%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fmanaged-batch-endpoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDeploy%20a%20batch%20endpoint%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fdata-scientists%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EData%20Scientist%20Resources%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2366481%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Machine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMachine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Build%202021%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jun 10 2021 11:36 AM
Updated by: