MLOps lifecycle description

MLOps.community · Beginner ·📐 ML Fundamentals ·6y ago

Key Takeaways

The MLOps lifecycle is described, highlighting its complexity compared to traditional software development lifecycles, and how it involves data engineering, model training, and deployment, with a focus on reproducibility and monitoring. Tools and techniques such as versioning, CI, and Docker are mentioned.

Full Transcript

life-cycle sorry the ml the ml ops lifecycle is just fundamentally more complicated than the software development lifecycle so when you're doing software development and life is easy it kind of it's easier anyway because all you need to do is you need to think about versioning specific versions of your code because as long as your doctor izing things then you ought to only need to know exactly which version of the code was used plus the doc file and dependencies in order to reproducibly build the same or effectively the same deployable artifact and so you can build you can create code you can test that code in CI you can deploy that code into production and then your monitoring system can tell you how well it's performing maybe you need to upgrade a database maybe you need to go and optimize a certain code path and you can go around this loop as quickly as you can that's basically what we're doing with tables but with machine learning in ml ops you've got this fundamentally more complicated thing going on which is that you've got data coming into the system which is a major form of entropy and you've got code that's that's being written to train the models and you've got parameters which are being fed in to the training the models the model runs the training model run the model training runs sorry and all of these things combined and before you even train a model you've also got the data runs which is when you're doing feature engineering or your filtering or splitting the data and so you're executing a certain version of a piece of code against a certain input dataset and creating an intermediate dataset that's what a data run is or you're you're running a certain version of a piece of code against an input dataset like a test training validation set and then you're creating a model as an output and so when you're doing ml when you're developing machine you are doing these data runs and these model runs whether you're keeping track of them or not these might be the cells that you're running your dupes are notebook or the Python scripts that you run on your laptop and these runs are happening you just haven't given a name to them and so what we've realized is that it's really important to introduce this notion of run as a kind of a building block it's a fundamental object in the system when you're doing ml outs it's this version of this piece of code ran in this environment with this input data and these parameters and it created this output and one of those types of outputs like I said is models and then the model itself the serialize model file is the deploy Balazs fax it has some metrics associated with it like how well it performed against the validations data and then it's that model that you're deploying into production and then you're monitoring in the way that I described that monitoring models is different to monitoring microservices and and then you're monitoring might actually cause you to go back around all sorts of different loops through this diagram so that's kind of the the flow that we're looking at here and so I'm a little short on time so I'm going to skip over the lifecycle quickly and the lifecycle is really just a visual representation of how the diagram I just showed you is cyclic and so you do data engineering you need to keep track of the data runs when you're doing things like feature engineering and then you train a model which means you take a certain version of the data and you you train the model and out of the model development process come serialized models typically docker images with serialize models baked into them and then those serialize models get run in production or staging and then production and then there are these kind of two feedback loops there's the statistical monitoring feedback loop which is the first one where you can say show me the behavior of my model in production in real time based on like the distribution of classifications it's making and then there's also this slow feedback loop which is that you retrain the models with new data as you get new data coming in and of course the model making decisions can change the world and so can also impact on the data that is being recorded in the database so so that's kind of the the ml ops lifecycle and and hopefully I've adequately answered the first part of the talk title now which is what is ml ours my opinion is that ml Ops is not just about operating models it's actually about the entire lifecycle of doing data engineering training models and then getting models into production and it's about being able to implement this process in in your company or in your organization with the same level of rigor that sort of best-in-class DevOps and software engineering teams manage and so

Original Description

Machine Learning lifecycle vs traditional software development lifecycles. How do they differ, how are they the same, what can be done about making Machine Learning lifecycles easier? Exert taken from Luke Marsden's talk on what is MLOps and how can it help us work remotely. https://www.youtube.com/watch?v=P5cNwyeq0_c&t=3s
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from MLOps.community · MLOps.community · 4 of 60

1 Our 1st MLOps Meetup // Luke Marsden // MLOps Meetup #1
Our 1st MLOps Meetup // Luke Marsden // MLOps Meetup #1
MLOps.community
2 Remote Collaboration as a Data Scientist
Remote Collaboration as a Data Scientist
MLOps.community
3 MLOps Manifesto with Luke Marsden from Dotscience
MLOps Manifesto with Luke Marsden from Dotscience
MLOps.community
MLOps lifecycle description
MLOps lifecycle description
MLOps.community
5 What Does Best in Class AI/ML Governance Look Like in Fin Services? // Charles Radclyffe // MLOps #2
What Does Best in Class AI/ML Governance Look Like in Fin Services? // Charles Radclyffe // MLOps #2
MLOps.community
6 Life purpose and too many spreadsheets
Life purpose and too many spreadsheets
MLOps.community
7 Explainability, Black boxes and EU white paper on reproducibility
Explainability, Black boxes and EU white paper on reproducibility
MLOps.community
8 Hierarchy of Machine Learning Needs // Phil Winder // MLOps Meetup #3
Hierarchy of Machine Learning Needs // Phil Winder // MLOps Meetup #3
MLOps.community
9 Automatically Retrain Machine Learning Models? Are best practices worth it?
Automatically Retrain Machine Learning Models? Are best practices worth it?
MLOps.community
10 Building an MLOps Team? Key ideas to keep in mind
Building an MLOps Team? Key ideas to keep in mind
MLOps.community
11 Hierarchy of MLOps Needs
Hierarchy of MLOps Needs
MLOps.community
12 Bare necessities for getting an ML model into production
Bare necessities for getting an ML model into production
MLOps.community
13 MLOps and Monitoring
MLOps and Monitoring
MLOps.community
14 How Phil Winder got into Data Science and Software Engineering
How Phil Winder got into Data Science and Software Engineering
MLOps.community
15 Provenance and Reproducibility in Machine Learning; what is it and why you need it?
Provenance and Reproducibility in Machine Learning; what is it and why you need it?
MLOps.community
16 Friction Between Data Scientists and Software Engineers
Friction Between Data Scientists and Software Engineers
MLOps.community
17 MLOps Problems in different size companies
MLOps Problems in different size companies
MLOps.community
18 ML tooling in large companies
ML tooling in large companies
MLOps.community
19 ML Platforms - The build vs buy question
ML Platforms - The build vs buy question
MLOps.community
20 ML Services Gateway at SurveyMonkey
ML Services Gateway at SurveyMonkey
MLOps.community
21 Message buses, Async and sync architecture
Message buses, Async and sync architecture
MLOps.community
22 MLOps #4: Shubhi Jain - Building an ML Platform @SurveyMonkey
MLOps #4: Shubhi Jain - Building an ML Platform @SurveyMonkey
MLOps.community
23 Hybrid Data Science Teams @SurveyMonkey
Hybrid Data Science Teams @SurveyMonkey
MLOps.community
24 How do you handle ML version control at SurveyMonkey
How do you handle ML version control at SurveyMonkey
MLOps.community
25 Doing ML with Personal Information
Doing ML with Personal Information
MLOps.community
26 Evolution of the ML feature store @SurveyMonkey
Evolution of the ML feature store @SurveyMonkey
MLOps.community
27 Developing a Machine Learning Feature Store
Developing a Machine Learning Feature Store
MLOps.community
28 Auto retrain ML models is not the question
Auto retrain ML models is not the question
MLOps.community
29 3 key parts to Machine Learning monitoring
3 key parts to Machine Learning monitoring
MLOps.community
30 MLOps Meetup #6: Mid-Scale Production Feature Engineering with Dr. Venkata Pingali
MLOps Meetup #6: Mid-Scale Production Feature Engineering with Dr. Venkata Pingali
MLOps.community
31 MLOps meetup #5 High Stakes ML: Active Failures, Latent Factors with Flavio Clesio
MLOps meetup #5 High Stakes ML: Active Failures, Latent Factors with Flavio Clesio
MLOps.community
32 MLOps: Airflow Pros and Cons
MLOps: Airflow Pros and Cons
MLOps.community
33 Specific challenges in Machine Learning
Specific challenges in Machine Learning
MLOps.community
34 Current State Of Machine Learning
Current State Of Machine Learning
MLOps.community
35 Humans in the Loop are a defining factor in Machine Learning
Humans in the Loop are a defining factor in Machine Learning
MLOps.community
36 Learning from real life Machine Learning failures
Learning from real life Machine Learning failures
MLOps.community
37 Survivorship Bias in machine learning tutorials
Survivorship Bias in machine learning tutorials
MLOps.community
38 Swiss Cheese model in Machine Learning
Swiss Cheese model in Machine Learning
MLOps.community
39 Resume driven development in Machine learning & software engineering
Resume driven development in Machine learning & software engineering
MLOps.community
40 Who has the highest standards in ML?
Who has the highest standards in ML?
MLOps.community
41 Venkata Pingali of Scribble Data Thoughts on the Current State of Machine Learning
Venkata Pingali of Scribble Data Thoughts on the Current State of Machine Learning
MLOps.community
42 Dependable data and being able to Trust in your Data with Venkata Pengali of Scribble Data
Dependable data and being able to Trust in your Data with Venkata Pengali of Scribble Data
MLOps.community
43 Speed, Trust, Evolution and Scale in MLOps
Speed, Trust, Evolution and Scale in MLOps
MLOps.community
44 More difficult transition for data scientists to become ML engineers
More difficult transition for data scientists to become ML engineers
MLOps.community
45 How many models in prod til I need a dedicated ML platform?
How many models in prod til I need a dedicated ML platform?
MLOps.community
46 Deeper thinking from data scientists around platform blackholes
Deeper thinking from data scientists around platform blackholes
MLOps.community
47 Checkpointing, metadata, and confidence in your data
Checkpointing, metadata, and confidence in your data
MLOps.community
48 Adjacent usecases and multistep feature engineering
Adjacent usecases and multistep feature engineering
MLOps.community
49 Standardization of Machine Learning tools like in Software Engineering with Venkata Pingali
Standardization of Machine Learning tools like in Software Engineering with Venkata Pingali
MLOps.community
50 Reproducability flaws in end to end Machine Learning debugging
Reproducability flaws in end to end Machine Learning debugging
MLOps.community
51 3rd wave of data scientists
3rd wave of data scientists
MLOps.community
52 MLOps meetup #7 Alex Spanos // TrueLayer 's MLOps Pipeline
MLOps meetup #7 Alex Spanos // TrueLayer 's MLOps Pipeline
MLOps.community
53 MLOps Meetup #8 Optimizing Your ML Workflow with Kubeflow 1.0
MLOps Meetup #8 Optimizing Your ML Workflow with Kubeflow 1.0
MLOps.community
54 Are Kubeflow and Airflow complementary?
Are Kubeflow and Airflow complementary?
MLOps.community
55 Why Kubeflow gained so much traction=open community
Why Kubeflow gained so much traction=open community
MLOps.community
56 Who decides the dirrection of Kubeflow
Who decides the dirrection of Kubeflow
MLOps.community
57 What do Kubeflow and Arrikto do and how do they work together?
What do Kubeflow and Arrikto do and how do they work together?
MLOps.community
58 Versioning your ML steps with Kubeflow
Versioning your ML steps with Kubeflow
MLOps.community
59 Machine Learning Lifecycles//Perception vs Reality
Machine Learning Lifecycles//Perception vs Reality
MLOps.community
60 Kubeflow vs SageMaker in Machine Learning
Kubeflow vs SageMaker in Machine Learning
MLOps.community

The MLOps lifecycle is a complex process that involves data engineering, model training, and deployment, with a focus on reproducibility and monitoring. This lesson covers the basics of MLOps and how it differs from traditional software development lifecycles.

Key Takeaways
  1. Identify the key components of the MLOps lifecycle
  2. Understand the importance of reproducibility in MLOps
  3. Implement data engineering workflows
  4. Train and deploy models to production
  5. Monitor model performance and retrain as necessary
💡 The MLOps lifecycle is fundamentally more complicated than traditional software development lifecycles due to the introduction of data and models as first-class citizens

Related Reads

Up next
Dropout in Deep Learning
AnuTech-CH
Watch →