Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

DEVOPS AND MACHINE LEARNING

In this session, we will take a deep-dive into the DevOps process that comes with Azure Machine Learning service, a cloud service that you can use to track as you build, train, deploy and manage models. We zoom into how the data science process can be made traceable and deploy the model with Azure DevOps to a Kubernetes cluster.

At the end of this session, you will have a good grasp of the technological building blocks of Azure machine learning services and can bring a machine learning project safely into production.

  • Sé el primero en comentar

  • Sé el primero en recomendar esto

DEVOPS AND MACHINE LEARNING

  1. 1. DevOps and Machine Learning Henk Boelman Cloud Advocate @ Microsoft @hboelman github.com/hnky henkboelman.com
  2. 2. Machine Learning Ability to learn without being explicitly programmed.
  3. 3. Programming Algorithm Data Answers
  4. 4. Machine Learning Algorithm Data Answers
  5. 5. Machine Learning Model Data Answers
  6. 6. Machine Learning Model Data Answers
  7. 7. Machine Learning Predictions Data Model Data Answers
  8. 8. Sophisticated pretrained models To simplify solution development Azure Databricks Machine Learning VMs Popular frameworks To build advanced deep learning solutions TensorFlow Keras Pytorch Onnx Azure Machine Learning Language Speech … Azure Search Vision On-premises Cloud Edge Productive services To empower data science and development teams Powerful infrastructure To accelerate deep learning Flexible deployment To deploy and manage models on intelligent cloud and edge Machine Learning on Azure Cognitive Services
  9. 9. DevOps is the union of people, process, and products to enable continuous delivery of value to your end users. “ ”
  10. 10. Developers Data Scientists Operations
  11. 11. Ask a sharp question Collect the data Prepare the data Select the algorithm Train the model Use the answer The data science process
  12. 12. Azure Machine Learning A fully-managed cloud service that enables you to easily build, deploy, and share predictive analytics solutions.
  13. 13. What is Azure Machine Learning? Set of Azure Cloud Services Python SDK Prepare Data Build Models Train Models Manage Models Track Experiments Deploy Models That enables you to:
  14. 14. Prepare your environment Experiment with your model & data Deploy Your model into production
  15. 15. Step 1: Prepare your environment
  16. 16. Datasets – registered, known data sets Experiments – Training runs Pipelines – Training workflows Models – Registered, versioned models Endpoints: Real-time Endpoints – Deployed model endpoints Pipeline Endpoints – Training workflow endpoints Compute – Managed compute Environments – defined training and inference environments Datastores – Connections to data Azure Machine Learning
  17. 17. Demo: Azure Machine Learning
  18. 18. Step 2: Create a ML pipeline to deliver a model
  19. 19. Pipelines Azure ML Service Pipelines Azure Pipelines
  20. 20. Azure Machine Learning Pipelines Workflows of steps that can use Data Sources, Datasets and Compute targets Unattended runs Reusability Tracking and versioning
  21. 21. Azure Pipelines Orchestration for Continuous Integration and Continuous Delivery Gates, tasks and processes for quality Integration with other services Trigger on code and non-code events
  22. 22. Create a pipeline step Input Output Runs a script on a Compute Target in a Docker container. Parameters
  23. 23. Create a pipeline Dataset of Simpsons Images Prepare data Train the Model with PyTorch Processed dataset model Register the model Blob Storage Account Model Management
  24. 24. Submit the pipeline to the cluster
  25. 25. Demo: Create an Azure ML Pipeline
  26. 26. Jupyter Notebook Compute Target Docker Image Data store 1. Snapshot folder and send to experiment 2. create docker image 3. Deploy docker and snapshot to compute 4. Mount datastore to compute 6. Stream stdout, logs, metrics 5. Launch the script 7. Copy over outputs Experiment
  27. 27. Azure Machine Learning Service Pipelines A repeatable process to deliver a ML model
  28. 28. Continuous Integration
  29. 29. Code and comments only (not Jupyter output) Plus every part of the pipeline And Infrastructure and dependencies And maybe a subset of data Source Control
  30. 30. Everything should be in source control! Except your training data which should be a known, shared data source
  31. 31. Triggered on code change Refresh and execute AML Pipeline Code quality, linting, and unit testing Pull request process Continuous Integration
  32. 32. Demo: Setup Azure Pipeline for AMLS Pipeline
  33. 33. Step 3: Deploy your model
  34. 34. Trigger on model registration Deploy to test and staging environments Run integration and load tests Control: rollout, feature flags, A/B testing Continuous Delivery
  35. 35. Control model rollout! The same way you do with other software
  36. 36. AMLS to deploy The Model Score.py Environment file Docker Image
  37. 37. Demo: Deploy with Azure DevOps
  38. 38. Complete Pipeline
  39. 39. @hboelman github.com/hnky henkboelman.com Thank you! Read more on: henkboelman.com

×