Meetup

End to End MLOps Basics

Raviraja Ganta, EnterpretEpisode 82 · 57:59 · Oct 2021 · 7,403 viewsHosted by Demetrios Brinkmann
Thumbnail for End to End MLOps Basics Watch on YouTube
TL;DR
  1. 1

    MLOps reduces the technical friction between a model idea and production by covering development, training, deployment, serving, monitoring, and data and model management.

  2. 2

    A repeatable pipeline can use PyTorch Lightning, Weights & Biases, Hydra, DVC, ONNX, Docker, GitHub Actions, Amazon Elastic Container Registry, AWS Lambda, and Kibana for different parts of the workflow.

  3. 3

    Production monitoring must check for data distribution changes, unseen cases, configuration errors, prediction quality, latency, and error rates after a model is deployed.

Summary

Raviraja Ganta explains MLOps through the lifecycle of an ML system, starting with development and ending with monitoring in production. He argues that training is often easier than deployment, monitoring, maintenance, and retraining. His example pipeline uses PyTorch Lightning for model development, Weights & Biases for experiment tracking, Hydra for configuration, DVC for data and model versioning, ONNX for a shared model format, Docker for packaging, GitHub Actions for automation, and AWS services for storage and serving. He prefers a serverless design with AWS Lambda for workloads that can tolerate startup time and do not need GPUs, while noting that EC2 or other deployment options fit different requirements. The talk also covers data drift, new classes, misconfiguration, logging, dashboards, continuous evaluation, orchestration, infrastructure as code, and testing. Raviraja is clear that these are personal choices and that every architecture and tool selection involves trade-offs.

Key ideas
04:04

MLOps focuses on the parts of ML that become difficult after training

Raviraja cites surveys showing that many organizations struggle to get AI applications into production. In the Full Stack Deep Learning survey he discusses, model training appears easier than deployment, monitoring, maintenance, and retraining. He defines the goal of MLOps as reducing the technical friction between a model idea and production, with less time and risk. That includes automation, monitoring, scaling, and keeping the model running after deployment. The point is to treat the whole system as a lifecycle rather than stopping when a model produces acceptable offline results.

05:57

A complete ML lifecycle needs separate stages for development, training, serving, and management

Raviraja presents seven broad lifecycle steps. ML development covers data preparation, transformation, feature development, model training, and evaluation, with an emphasis on robust, repeatable pipelines. Training operationalization makes the process reliable and reproducible. Continuous training responds to new data or changed hyperparameters without rebuilding the workflow manually. Deployment packages and moves a model into an environment. Prediction serving deals with infrastructure and scaling. Continuous monitoring checks production behavior, while data and model management handles large, reusable, reproducible artifacts.

09:31

Tools should be selected as personal and organizational choices around required outcomes

Raviraja warns that his tool choices are not a complete industry recommendation. He uses them because of his experience and preferences, and says that teams should first understand the function they need before exploring alternatives. When Demetrios Brinkmann asks about overlapping tools, Raviraja gives DVC and Weights & Biases as an example. Both can store artifacts and support related workflows, so a team may choose one tool for most functions or split storage and monitoring between them. The deciding factors include existing infrastructure, integration, learning curve, cost, and whether the tool supports tracking and reproducibility.

12:09

Experiment tracking makes model and configuration comparisons easier

Raviraja uses Weights & Biases to compare runs, metrics, configurations, code, and generated artifacts. A dashboard can show which run produced the best validation accuracy, then expose the parameters used for that run. He says this helps identify whether a problem comes from data or the model and provides a single place to compare architectures, parameter settings, and evaluation metrics. He also describes Continuous Machine Learning as a way to put comparison tables, metrics, or confusion matrices directly into a GitHub pull request after a code or hyperparameter change.

15:37

Versioning and common formats separate training choices from deployment choices

Raviraja says GitHub and Bitbucket are not designed for the large data and model files common in ML. He uses DVC to keep data and model content in remote storage while Git tracks hashes and snapshots. He then describes ONNX as a common model format that lets a team train with one framework and deploy with another, including environments such as C++, mobile, edge, or browser systems. Docker packages the code and dependencies into an image, which can be stored in a central container registry and run in another environment without depending on the original developer's local setup.

23:40

Serverless inference reduces infrastructure work when startup and hardware limits are acceptable

Raviraja's example uses GitHub Actions to trigger training, stores models in Amazon S3, builds a Docker image, and places that image in Amazon Elastic Container Registry. AWS Lambda can then use the image for inference. He prefers this over manually managing EC2 instances when request volume varies, because Lambda can scale and can sleep when there are no requests. He also describes the trade-offs. A cold start can delay the first response, debugging is less direct, and Lambda does not provide GPU instances. Always-running EC2 or other infrastructure may be better for immediate responses or GPU workloads.

39:32

Monitoring must detect useful-prediction failures that service checks cannot see

A deployed model can load successfully and return predictions while still producing poor results. Raviraja names several causes: the input distribution can shift, new edge cases or classes can appear, and the wrong model or configuration can be deployed. Monitoring should therefore cover predictions, confidence, labels, errors, request timing, and data characteristics. His example logs requests, inputs, predictions, model information, and errors to CloudWatch Logs, streams them to an Elastic cluster, and visualizes them with Kibana. Alerts can trigger retraining or deployment workflows when production behavior changes.

44:05

A basic pipeline can grow through model rollout strategies, orchestration, infrastructure automation, and testing

Raviraja's end-to-end diagram connects experiment tracking, Hydra configuration, ONNX conversion, DVC storage, Docker packaging, continuous integration and delivery, a container registry, Lambda deployment, an API, CloudWatch logging, and Kibana monitoring. He then lists areas for improvement. Larger model fleets may need blue-green, canary, or A/B deployment and model-serving frameworks such as Kubeflow or Seldon Core. Teams can monitor data drift and prediction distributions, reevaluate models on tracked test sets, define infrastructure with AWS SAM or Terraform, orchestrate data work with tools such as Dagster, Prefect, Metaflow, or Airflow, and add unit and adversarial testing.

"The goal of MLOps is to reduce the technical friction to get the model from an idea to production in the shortest possible time to the market with as little risk as possible."05:12
Who should watch
  • You are building your first model-to-production workflow and need a concrete sequence of stages and tools.
  • Your team has trained models successfully but struggles with packaging, deployment, retraining, or production monitoring.
  • You are choosing between overlapping MLOps tools and want to weigh learning effort, cost, existing infrastructure, and reproducibility.