%3CLINGO-SUB%20id%3D%22lingo-sub-1737522%22%20slang%3D%22en-US%22%3EReal-time%20Inference%20on%20NVIDIA%20GPUs%20in%20Azure%20Machine%20Learning%20(Preview)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1737522%22%20slang%3D%22en-US%22%3E%3CP%3EAI%20today%20is%20about%20scale%3A%20models%20with%20billions%20of%20parameters%20used%20by%20millions%20of%20people.%20%3CA%20href%3D%22https%3A%2F%2Fazure.com%2Fml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Machine%20Learning%3C%2FA%3E%20is%20built%20to%20support%20your%20delivery%20of%20AI-powered%20experiences%20at%20scale.%20With%20our%20notebook-based%20authoring%20experience%2C%20our%20low-code%20and%20no-code%20training%20platform%2C%20our%20responsible%20AI%20integrations%2C%20and%20our%20industry-leading%20ML%20Ops%20capabilities%2C%20we%20give%20you%20the%20ability%20to%20develop%20large%20machine%20learning%20models%20easily%2C%20responsibly%2C%20and%20reliably.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOne%20key%20component%20of%20employing%20AI%20in%20your%20business%20is%20model%20%3CEM%3Eserving%3C%2FEM%3E.%20Once%20you%20have%20trained%20a%20model%20and%20assessed%20it%20per%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fconcept-responsible-ml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eresponsible%20machine%20learning%20principles%3C%2FA%3E%2C%20you%20need%20to%20quickly%20process%20requests%20for%20predictions%2C%20for%20many%20users%20at%20a%20time.%20While%20serving%20models%20on%20general-purpose%20CPUs%20can%20work%20well%20for%20less%20complex%20models%20serving%20fewer%20users%2C%20those%20of%20you%20with%20a%20significant%20reliance%20on%20real-time%20AI%20predictions%20have%20been%20asking%20us%20how%20you%20can%20leverage%20GPUs%20to%20scale%20more%20effectively.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20is%20why%20today%2C%20we%20are%20partnering%20with%20NVIDIA%20to%20announce%20the%20availability%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.nvidia.com%2Fnvidia-triton-inference-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETriton%20Inference%20Server%3C%2FA%3E%20in%20Azure%20Machine%20Learning%20to%20deliver%20cost-effective%2C%20turnkey%20GPU%20inferencing.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20three%20components%20to%20serving%20an%20AI%20model%20at%20scale%3A%20server%2C%20runtime%2C%20and%20hardware.%20This%20new%20Triton%20server%2C%20together%20with%20%3CA%20href%3D%22https%3A%2F%2Fonnxruntime.ai%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EONNX%20Runtime%3C%2FA%3E%20and%20NVIDIA%20GPUs%20on%20Azure%2C%20complements%20Azure%20Machine%20Learning%E2%80%99s%20support%20for%20developing%20AI%20models%20at%20scale%20by%20giving%20you%20the%20ability%20to%20serve%20AI%20models%20to%20many%20users%20cheaply%20and%20with%20low%20latency.%20Below%2C%20we%20go%20into%20detail%20about%20each%20of%20the%20three%20components%20to%20serving%20AI%20models%20at%20scale.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1241707478%22%20id%3D%22toc-hId--1241707444%22%3EServer%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETriton%20Inference%20Server%20in%20Azure%20Machine%20Learning%20can%2C%20through%20server-side%20mini%20batching%2C%20achieve%20significantly%20higher%20throughput%20than%20can%20a%20general-purpose%20Python%20server%20like%20Flask.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22gopalv_0-1601598975457.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F223614i1A8448A624BDE23B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22gopalv_0-1601598975457.png%22%20alt%3D%22gopalv_0-1601598975457.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETriton%20can%20support%20models%20in%20ONNX%2C%20PyTorch%2C%20TensorFlow%2C%20and%20Caffe2%2C%20giving%20your%20data%20scientists%20the%20freedom%20to%20explore%20any%20framework%20of%20interest%20to%20them%20during%20training%20time.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1245805355%22%20id%3D%22toc-hId-1245805389%22%3ERuntime%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20even%20better%20performance%2C%20serve%20your%20models%20in%20ONNX%20Runtime%2C%20a%20high-performance%20runtime%20for%20both%20training%20(in%20preview)%20and%20inferencing.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22gopalv_1-1601598975463.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F223615iD764B20AFA3011A2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22gopalv_1-1601598975463.png%22%20alt%3D%22gopalv_1-1601598975463.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-right%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNVIDIA%2FDeepLearningExamples%2Ftree%2Fmaster%2FPyTorch%2FLanguageModeling%2FBERT%2Ftriton%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CEM%3ENumbers%20Courtesy%20of%20NVIDIA%3C%2FEM%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EONNX%20Runtime%20is%20used%20by%20default%20when%20serving%20ONNX%20models%20in%20Triton%2C%20and%20you%20can%20convert%20%3CA%20href%3D%22https%3A%2F%2Fpytorch.org%2Ftutorials%2Fadvanced%2Fsuper_resolution_with_onnxruntime.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPyTorch%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fonnx%2Ftensorflow-onnx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETensorFlow%3C%2FA%3E%2C%20and%20%3CA%20href%3D%22http%3A%2F%2Fonnx.ai%2Fsklearn-onnx%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EScikit-learn%3C%2FA%3E%20models%20to%20ONNX.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--561649108%22%20id%3D%22toc-hId--561649074%22%3EHardware%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENVIDIA%20Tesla%20T4%20GPUs%20in%20Azure%20provide%20a%20hardware-accelerated%20foundation%20for%20a%20wide%20variety%20of%20models%20and%20inferencing%20performance%20demands.%20The%20NC%20T4%20v3%20series%20is%20a%20new%2C%20lightweight%20GPU-accelerated%20VM%2C%20offering%20a%20cost-effective%20option%20for%20customers%20performing%20real-time%20or%20small%20batch%20inferencing%20who%20may%20not%20need%20the%20throughput%20afforded%20by%20larger%20GPU%20sizes%20such%20as%20the%20V100-powered%20ND%20v2%20and%20NC%20v3-series%20VMs%2C%20and%20desire%20a%20wider%20regional%20deployment%20footprint.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22gopalv_2-1601598975466.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F223613i357739DF6FEBBB6C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22gopalv_2-1601598975466.png%22%20alt%3D%22gopalv_2-1601598975466.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20new%20NCasT4_v3%20VMs%20are%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FNCT4v3Preview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecurrently%20available%20for%20preview%3C%2FA%3E%20in%20the%20West%20US%202%20region%2C%20with%201%20to%204%20NVIDIA%20Tesla%20T4%20GPUs%20per%20VM%2C%20and%20will%20soon%20expand%20in%20availability%20with%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fglobal-infrastructure%2Fservices%2F%3Fproducts%3Dvirtual-machines%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eover%20a%20dozen%20planned%20regions%3C%2FA%3E%20across%20North%20America%2C%20Europe%20and%20Asia.%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20NCasT4_v3-series%20virtual%20machines%2C%20visit%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fvirtual-machines%2Fnct4-v3-series%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ENCasT4_v3-series%20documentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1925863725%22%20id%3D%22toc-hId-1925863759%22%3EEasy%20to%20Use%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20Triton%20Inference%20Server%20with%20ONNX%20Runtime%20in%20Azure%20Machine%20Learning%20is%20simple.%20Assuming%20you%20have%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.nvidia.com%2Fdeeplearning%2Ftriton-inference-server%2Fuser-guide%2Fdocs%2Fmodel_repository.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETriton%20Model%20Repository%3C%2FA%3E%20with%20a%20parent%20directory%20triton%20and%20an%20Azure%20Machine%20Learning%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fmachine-learning%2Freference-azure-machine-learning-cli%23deployment-configuration-schema%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edeploymentconfig.json%3C%2FA%3E%2C%20run%20the%20commands%20below%20to%20register%20your%20model%20and%20deploy%20a%20webservice.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Eaz%20ml%20model%20register%20-n%20triton_model%20-p%20triton%20--model-framework%3DMulti%0Aaz%20ml%20model%20deploy%20-n%20triton-webservice%20-m%20triton_model%3A1%20--dc%20deploymentconfig.json%20--compute-target%20aks-gpu%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-118409262%22%20id%3D%22toc-hId-118409296%22%3ENext%20Steps%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20blog%2C%20you%20have%20seen%20how%20Azure%20Machine%20Learning%20can%20enable%20your%20business%20to%20serve%20large%20AI%20models%20to%20many%20users%20simultaneously.%20By%20bringing%20together%20a%20high-performance%20inference%20server%2C%20a%20high-performance%20runtime%2C%20and%20high-performance%20hardware%2C%20we%20give%20you%20the%20ability%20to%20serve%20many%20requests%20per%20second%20at%20millisecond%20latencies%20while%20saving%20money.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20try%20this%20new%20offering%20yourself%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESign%20up%20for%20an%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Ffree%2Fservices%2Fmachine-learning%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Machine%20Learning%20trial%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Ftriton-aml-sample%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EClone%20our%20samples%20repository%20on%20GitHub%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Ftriton-aml-docs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERead%20our%20documentation%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EBe%20sure%20to%20%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F257792-machine-learning%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elet%20us%20know%20what%20you%20think%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EYou%20can%20also%20request%20access%20to%20the%20new%20NCasT4_v3%20VM%20series%20(In%20Preview)%20by%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FNCT4v3Preview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eapplying%20here.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1737522%22%20slang%3D%22en-US%22%3E%3CP%3ERun%20real-time%20inference%20at%20scale%20and%20under%20budget%20with%20Triton%20Inference%20Server%2C%20ONNX%20Runtime%2C%20and%20T4%20GPUs%20in%20Azure%20Machine%20Learning%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1737522%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Machine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMachine%20Learning%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

AI today is about scale: models with billions of parameters used by millions of people. Azure Machine Learning is built to support your delivery of AI-powered experiences at scale. With our notebook-based authoring experience, our low-code and no-code training platform, our responsible AI integrations, and our industry-leading ML Ops capabilities, we give you the ability to develop large machine learning models easily, responsibly, and reliably.

 

One key component of employing AI in your business is model serving. Once you have trained a model and assessed it per responsible machine learning principles, you need to quickly process requests for predictions, for many users at a time. While serving models on general-purpose CPUs can work well for less complex models serving fewer users, those of you with a significant reliance on real-time AI predictions have been asking us how you can leverage GPUs to scale more effectively.

 

That is why today, we are partnering with NVIDIA to announce the availability of the Triton Inference Server in Azure Machine Learning to deliver cost-effective, turnkey GPU inferencing.

 

There are three components to serving an AI model at scale: server, runtime, and hardware. This new Triton server, together with ONNX Runtime and NVIDIA GPUs on Azure, complements Azure Machine Learning’s support for developing AI models at scale by giving you the ability to serve AI models to many users cheaply and with low latency. Below, we go into detail about each of the three components to serving AI models at scale.

 

Server

 

Triton Inference Server in Azure Machine Learning can, through server-side mini batching, achieve significantly higher throughput than can a general-purpose Python server like Flask.

 

gopalv_0-1601598975457.png

 

Triton can support models in ONNX, PyTorch, TensorFlow, and Caffe2, giving your data scientists the freedom to explore any framework of interest to them during training time.

 

Runtime

 

For even better performance, serve your models in ONNX Runtime, a high-performance runtime for both training (in preview) and inferencing.

 

gopalv_1-1601598975463.png

Numbers Courtesy of NVIDIA

ONNX Runtime is used by default when serving ONNX models in Triton, and you can convert PyTorch, TensorFlow, and Scikit-learn models to ONNX.

 

Hardware

 

NVIDIA Tesla T4 GPUs in Azure provide a hardware-accelerated foundation for a wide variety of models and inferencing performance demands. The NC T4 v3 series is a new, lightweight GPU-accelerated VM, offering a cost-effective option for customers performing real-time or small batch inferencing who may not need the throughput afforded by larger GPU sizes such as the V100-powered ND v2 and NC v3-series VMs, and desire a wider regional deployment footprint.

 

gopalv_2-1601598975466.png

 

The new NCasT4_v3 VMs are currently available for preview in the West US 2 region, with 1 to 4 NVIDIA Tesla T4 GPUs per VM, and will soon expand in availability with over a dozen planned regions across North America, Europe and Asia.

To learn more about NCasT4_v3-series virtual machines, visit the NCasT4_v3-series documentation.

 

Easy to Use

 

Using Triton Inference Server with ONNX Runtime in Azure Machine Learning is simple. Assuming you have a Triton Model Repository with a parent directory triton and an Azure Machine Learning deploymentconfig.json, run the commands below to register your model and deploy a webservice.

 

 

 

az ml model register -n triton_model -p triton --model-framework=Multi
az ml model deploy -n triton-webservice -m triton_model:1 --dc deploymentconfig.json --compute-target aks-gpu

 

 

Next Steps

 

In this blog, you have seen how Azure Machine Learning can enable your business to serve large AI models to many users simultaneously. By bringing together a high-performance inference server, a high-performance runtime, and high-performance hardware, we give you the ability to serve many requests per second at millisecond latencies while saving money.

 

To try this new offering yourself:

  1. Sign up for an Azure Machine Learning trial
  2. Clone our samples repository on GitHub
  3. Read our documentation
  4. Be sure to let us know what you think

You can also request access to the new NCasT4_v3 VM series (In Preview) by applying here.