
Why Most ML Models Fail After Launch
This six-lecture audio series takes you from the fundamentals of MLOps to the practices needed to reliably ship, monitor, and govern machine learning models in production. It opens with the core problem: only about 10% of ML projects reach production, and the gap between a working notebook and a dependable service is where most efforts fail. From there, the course builds a concrete technical foundation. You'll learn how to design a CI/CD pipeline for machine learning, covering version control, automated testing (unit, integration, and data validation), containerization, and deployment strategies, with tools like Kubeflow Pipelines and MLflow for orchestration. A dedicated lecture on containers explains Docker fundamentals, how to build slim images under 200 MB, GPU support with nvidia-docker, and security scanning with tools like Trivy. The second half shifts to keeping models healthy and accountable once they're live. You'll learn observability practices for deployed models, including tracking latency, error rates, and prediction distributions with Prometheus, Grafana, and Evidently AI, plus how to detect concept drift that can cut accuracy by more than 20% within weeks. A lecture on governance covers model registries, audit trails, role-based access, and automated policy checks for bias and fairness, with attention to regulatory requirements like GDPR. The series closes with organizational patterns for scaling MLOps across teams, comparing platform and product team structures, and a look at emerging trends such as serverless inference, model-as-code, and LLM-assisted pipeline generation. Each lecture is roughly five minutes, building directly on the last.
Why MLOps Matters: From Experiment to Production
Why MLOps Matters: From Experiment to Production
A data scientist trains a model. Accuracy looks great. Everyone celebrates. And then it, it just never ships. That story plays out at companies everywhere, and the reason isn't laziness or bad math. It's that a working experiment and a working production system are two very different animals. Google's own MLOps architecture documentation describes this gap directly. MLOps, they define it, applies DevOps principles to machine learning systems, with automation and monitoring across development, testing, release, deployment, and infrastructure. Notice that word, deployment. That's where most models die.
So what actually changes when a model leaves the laptop, Javier? Almost everything. Think of it like a recipe versus a restaurant. Your notebook is a home kitchen. One cook, one dish, everything within arm's reach. Production is serving ten thousand meals a night, with suppliers who change ingredients without telling you. A production ML system is more than a trained model. It includes the pipelines that prepare data, train and validate models, and deliver predictions to real users. Miss any piece of that, and the dish doesn't just taste worse. It doesn't arrive at all.
Now, the key idea this whole course rests on: models don't just get deployed once. They decay. A well-documented failure mode called training-serving skew shows up when the data or transformations in production differ from what you trained on. Your training evaluation can look fantastic while real predictions quietly fall apart. That's why Google's framework describes continuous training, the automated retraining and serving of models, as a lifecycle capability distinct from conventional software CI/CD. And there's a deeper trap researchers have named hidden technical debt. Dependencies among data, code, models, and external systems make a seemingly small change risky. There can even be undeclared consumers of your model's outputs, downstream systems you never knew existed. Change the model, and you break something invisible. That's the cost.
So how do we keep this manageable? Three pillars. First, CI/CD, but adapted for ML. In this world, continuous delivery can mean deploying an automated training pipeline that itself updates a prediction service, not just shipping a software package. Second, monitoring. You have to watch input data and model behavior after deployment, because production data changes and quality degrades. Third, governance. Promoting models across development, staging, and production should be coordinated with source control and CI/CD. When any pillar is missing, something specific breaks. No CI/CD, and every release is a stressful manual scramble. No monitoring, and you learn about model failure from angry users. No governance, and, um, you can't even answer the question of which model version is live, or roll back to the last one that worked.
Remember that recipe-versus-restaurant image, because it maps perfectly onto the pillars. The recipe is your experiment. The restaurant is MLOps: the suppliers, the kitchen procedures, the health inspections, the complaint desk. For example, experiment tracking tools like MLflow record run parameters, metrics, and artifacts, so a model artifact connects back to the run that produced it. That's lineage. That's how you stop guessing. The takeaway: MLOps is the set of practices that turn experimental ML code into dependable, repeatable production systems. Over the next five lectures, we'll build that system, piece by piece. First stop: how to make your experiments reproducible in the first place.
Designing a CI/CD Pipeline for Machine Learning
Speaker 1
So last time we landed on this idea that a model isn't really deployed once, it's deployed over and over. And I keep hitting a contradiction I can't shake.
Speaker 2
Go on. I like contradictions.
Speaker 1
Many teams say they want automation. And almost nobody has it. Both things are true at the same time, and I want to know what breaks in between.
Speaker 2
That's a fair tension to hold. And the answer is that automation for ML is genuinely harder than automation for ordinary software. Google's MLOps documentation says it outright: you're automating integration, testing, release, deployment, and infrastructure, but also data, schemas, and models.
Speaker 1
So the pipeline has to validate things a normal CI pipeline doesn't typically see.
Speaker 2
Exactly. A normal pipeline validates code. An ML pipeline validates code plus data, data schemas, and models. That's the whole difference.
Speaker 1
Okay, so walk me through it. A data scientist commits something. What actually happens, in order?
Speaker 2
Five components, roughly. Source control, then CI, which runs the tests. Then the pipeline itself, data prep, training, evaluation. Then CD, which packages and deploys. Then monitoring, feeding back into the start.
Speaker 1
Evaluation is a gate? I thought it was just a report.
Speaker 2
No. AWS's Well-Architected guidance is explicit: evaluation can determine whether a model is ready to proceed. The model doesn't move forward unless it passes.
Speaker 1
So the pipeline can just... refuse. Like a bouncer.
Speaker 2
Like a bouncer with metrics. And if the deployment fails anyway, the pipeline can roll back to a previous stable version automatically. Nobody has to scramble at 2 a.m.
Speaker 1
Okay, but here's where I get stuck. GitOps, everything as code. I understand versioning code. How do you version a trained model? It's not a binary you wrote.
Speaker 2
Great question, and this is where tools like DVC get clever. You keep large data files outside the Git repository, but Git‑tracked metadata versions them. So the model artifact, the data it was trained on, the pipeline definition, all of it is traceable.
Speaker 1
So the, the thing Git holds isn't the model itself, it's the pointer plus the recipe.
Speaker 2
Precisely. And that's what makes rollback possible. Versioning source code, data, and model artifacts supports traceability, so you can return to a specific version of the whole workload, not just the code.
Speaker 1
Now, the testing piece. Everyone says unit tests, integration tests. What's different for ML?
Speaker 2
Three layers. Unit and integration tests, same as regular software. But then you need data validation, trained‑model quality evaluation, and model validation. Those don't exist in conventional CI.
Speaker 1
How does data validation actually work? Give me something concrete.
Speaker 2
Think of a schema check. For example, a schema might define an acceptable range for an age field. The schema violation blocks the pipeline run before training ever starts. Bad data can lead to a poor model.
Speaker 1
Wait. So drift gets caught at the gate, not after deployment.
Speaker 2
That's the whole point. Continuous training workflows validate new training input data before the run. Issues can be discovered early, rather than weeks later when users complain.
Speaker 1
Okay, so who builds all this? I keep hearing Kubeflow and MLflow in the same sentence and I genuinely don't know who does what.
Speaker 2
Everyone asks that. A tracking system records experiments, parameters, metrics, and artifacts. Kubeflow Pipelines orchestrates the workflow itself, the ordered stages with explicit dependencies.
Speaker 1
One tool acts as the record keeper while another orchestrates the assembly line.
Speaker 2
That's a good split. And recording metadata and artifacts during training is what makes runs traceable later. Without that, you have a model and no idea where it came from.
Speaker 1
Which brings me to the notebook problem. Can't a data scientist just hand a notebook to a DevOps engineer and call it deployed?
Speaker 2
Because a notebook is a conversation, not a system. It has hidden state, cells run out of order, dependencies live on one laptop. Before it enters a pipeline it has to be refactored into discrete stages, data prep, training, evaluation, with explicit inputs and outputs.
Speaker 1
So the notebook has to be, what, decomposed?
Speaker 2
Decomposed and made reproducible. And here's the uncomfortable truth from the research: strict reproducibility is genuinely hard. Randomized algorithms, nondeterminism in parallel learning, dependence on initial conditions. Real‑world ML resists exact repetition.
Speaker 1
That feels like it undermines the whole pipeline idea, though.
Speaker 2
That is a strong argument against automation, and I grant it fully. But it fails for a specific reason: pipelines don't promise identical results. They promise traceable, testable, rollback‑able results. That's a different and achievable bar.
Speaker 1
Okay. Now, the human element. I've heard there's a classic fight between the data scientist and the DevOps engineer about testing frequency.
Speaker 2
Oh, yes. DevOps engineers often want tests on each commit. The data scientist says retraining takes hours, you can't test that often. The resolution is splitting what gets tested when.
Speaker 1
Splitting how?
Speaker 2
Code quality and model performance both get validated when changes enter the repository, that's the fast loop. Full retraining runs on a schedule or a trigger. And human approval gates can sit before production promotion, so stakeholders review model changes.
Speaker 1
So the fight dissolves because the pipeline design gives each person what they actually needed.
Speaker 2
Exactly. And at the end of the line, deployment strategies. Blue‑green, canary, shadow mode.
Speaker 1
Canary sends a limited portion of traffic to the new version, right?
Speaker 2
Right, and rollouts can advance through configured traffic percentages, with analysis deciding whether to proceed. Testing the deployed service and running online experiments helps assess effectiveness before full rollout.
Speaker 1
And shadow mode is the one where users do not see the new model's predictions?
Speaker 2
Correct. The new model gets live traffic silently, its outputs are logged and compared, but users still get the old model. It's the safest way to find out a new model is broken.
Speaker 1
Here's what I can't let go of, though. Before deployment, a CI/CD routine can check that a model and its dependencies are compatible with the serving infrastructure. But the research also says model prediction behavior is hard to specify in advance.
Speaker 2
Both of those are true, and they sit uncomfortably together. The pipeline can verify compatibility. It cannot fully verify correctness. That gap is real and it doesn't close.
Speaker 1
The pipeline catches the failures you can name, and the ones you can't—
Speaker 2
Unnamed failures need monitoring, which is exactly where we go next. For our listener, the takeaway: a well‑engineered CI/CD pipeline automates testing, packaging, and deployment, so models move across environments consistently. But pipelines have a boundary, and past that boundary, the model is live and on its own.
Containerizing Models: Docker & Beyond
Two things can both be true at once. Your model runs perfectly on your laptop. And it fails, instantly, on the server. Same code. Same data. Different result. Last time we built a pipeline that tests, packages, and deploys. But a pipeline needs something concrete to move. It needs an artifact that behaves identically everywhere. That artifact is a container image. Here's the tension I want to hold. Containers solve the environment problem. They do not, by itself, solve the reproducibility problem. An image packages your serving application and its runtime dependencies, which reduces differences between development and production. But MLflow's own documentation is blunt about this. A container image does not by itself guarantee reproducible predictions. The model artifact, preprocessing logic, dependency versions, configuration, and input-data assumptions all still affect the result. So what is an image, mechanically? The Open Container Initiative, the OCI, defines it precisely. An image is a manifest, an optional image index, filesystem layers, and a configuration. Think of it like a stack of glass plates. Each layer adds files. Each layer sits on the one below. The whole point of that spec is interoperability, so tools that build, transport, and run images can all speak the same language. That's why Docker became the lingua franca. Any runtime that understands the spec can run your image. And that's what kills the, the classic excuse, works on my machine. That phrase is a symptom. It means your environment was not captured. An image is an immutable definition. Build it once, and the environment is frozen. But here's the distinction people miss. The image is the recipe, stored. The container is a running instance of it. One image, many containers. That's exactly how you scale an inference service. Run identical replicas behind a load balancer, and traffic spreads across them. So how do you build a small one? Because a naive ML image can be enormous. The answer is multi-stage builds. Docker's documentation describes using multiple FROM stages, then selectively copying artifacts into the final stage. Your build tools, your compilers, your intermediate files, they get left behind. Here's a detail I find genuinely clever. BuildKit can skip building stages that your final target doesn't depend on. The legacy builder didn't do that. Slim base image, pruned dependencies, multi-stage, that's where the savings come from. Now, the details that bite people. Tags. A tag can be changed by its publisher. Pin by digest instead, and you identify one specific image version. Predictable builds. Second, secrets. Build arguments and environment variables persist in the final image, so they're wrong for passing secrets. Docker provides secret mounts for that. Third, freshness. Docker recommends rebuilding images regularly to pull in updated dependencies and security fixes. A stale image is a vulnerable image. And where does the model itself live? You have options. MLflow, for example, defines a model as a directory with an MLmodel file describing its supported flavors. And MLflow can build the Docker image for you. The command mlflow models build-docker produces an image configured to serve your model. But suppose you're serving with NVIDIA's Triton Inference Server instead. Triton serves models from model repositories you specify at startup, organized into directories with numerically named subdirectories for versions. And its quickstart shows the pattern I'd recommend studying: run the server in a container, and mount the host model repository into it. The model lives outside the image. That mounting pattern matters because it separates two things that change at different speeds. Your serving environment changes rarely. Your model changes constantly. Embedding the model into the image layers means each retrain requires a full rebuild. Your registry fills up fast. There's a deeper layer here too. Build provenance can record verifiable information about how an image was built, image digests, source locations. That's how consumers assess where an artifact actually came from. Once containers run in production, Kubernetes enters. And its resource model surprises people. A CPU or memory request guides scheduling. It is not a hard ceiling. A container can use more than its request when node resources are available. But limits are enforced, and enforced differently. Approach a CPU limit and the kernel throttles you. Exceed a memory limit and the kernel may just terminate the container. Ouch. Kubernetes also gives you readiness probes, which say whether a container is ready to serve traffic, and liveness probes, which decide whether it should be restarted. And security contexts let you lock things down. Set readOnlyRootFilesystem to true and the container's root filesystem becomes read-only. Docker goes further with rootless mode, where the daemon itself and the containers run without root privileges, using a user namespace. That's different from user-namespace remapping, where the daemon still runs as root. And scaling? KServe can autoscale inference services based on incoming request load. One caveat though. Its documented target concurrency is a soft limit, not a strict cap. So, the takeaway. Containerization packages code, dependencies, and model artifacts into a portable unit, and that simplifies scaling and reproducibility. The image freezes the environment so the environment stops being the variable. But remember the tension from the top. The container carries your environment. It does not carry your data's behavior. Which is why, once these containers are live and serving, the next question isn't how to build them. It's how to watch them. And that's where we go next.
Monitoring & Observability for Deployed Models
Speaker 1
So our containers are live now. And I keep running into two things that can't both be true. The model hasn't crashed. No errors, no alerts, infrastructure is green. And it's getting worse over time.
Speaker 2
Both are true, and that's the defining problem of this lecture. A deployed model can fail without crashing. It can fail while the dashboard glows a healthy green.
Speaker 1
Which is exactly where we left off, right? The pipeline catches the failures you can name, and past that boundary the model is on its own.
Speaker 2
Exactly. So now we build the watchtower. And one thing to accept is that monitoring a model means watching three layers at once.
Speaker 1
Three layers.
Speaker 2
Model performance, data quality, and infrastructure health. Google's SRE guidance is explicit: watch latency, traffic, errors, and saturation alongside the ML-specific metrics. Those four signals are the practical starting point for service health.
Speaker 1
So latency, traffic, errors, saturation. That's the service around the model. Then the model itself sits inside it.
Speaker 2
Right. And here's a detail people miss. You have to distinguish failed-request latency from successful-request latency. If you exclude the errors, you can hide how long failures actually take to return.
Speaker 1
Huh. So a fast-failing system looks faster than it is.
Speaker 2
It does. And there's an early-warning trick too. A rise in high-percentile latency over a short window can signal saturation before capacity is fully exhausted.
Speaker 1
Okay, but the model layer is where I get lost. What am I actually watching there? Accuracy?
Speaker 2
If you can get it. And that's the trap. To measure real quality, you need ground-truth labels, actual outcomes, joined back to the predictions you captured.
Speaker 1
So you have to log the inference inputs and outputs.
Speaker 2
Yes. Capture them, because without actual labels, direct evaluation of prediction quality simply isn't available. And labels often arrive late. Think of a fraud model. You don't know a transaction was fraudulent until the dispute lands, weeks later.
Speaker 1
So what do you watch in those weeks before the truth shows up?
Speaker 2
Proxy signals. Feature drift, which is a change in the distribution of incoming inputs. And prediction drift, a change in the distribution of model outputs. Evidently's documentation draws that line clearly. They're different signals and they warrant separate checks.
Speaker 1
Wait, why would the outputs shift if the inputs haven't?
Speaker 2
Because the relationship between input and correct answer changed. That's concept drift. The world moved, the model's map didn't.
Speaker 1
Give me something concrete. When does that actually happen?
Speaker 2
For example, a pricing model trained on last year's market. The code is identical, the infrastructure is identical, and the inputs look normal. But the mapping from features to outcomes has quietly broken.
Speaker 1
And nothing on the latency dashboard would catch that.
Speaker 2
Nothing. That's why watching the distribution of predictions matters, not just error rates. A sudden shift in what the model is saying is a symptom a latency graph is blind to.
Speaker 1
Okay, so how do you actually run a drift check? You have some current data and some... what, old data?
Speaker 2
A reference dataset. A baseline. And this matters more than people realize. You have to document what period or population that baseline represents, because drift results depend entirely on what you're comparing against.
Speaker 1
So the same production data could look drifted or fine depending on the baseline.
Speaker 2
Exactly. And then you choose the test deliberately. Statistical tests, distance measures, or domain-specific rules. Which one fits depends on data type, sample size, and intended use.
Speaker 1
And there's a distinction we covered before, training-serving skew versus drift over time.
Speaker 2
Right. Skew compares serving data with training data. Inference drift tracks production data changing over time. A monitoring plan can assess both when suitable reference data exists.
Speaker 1
Now, the alert itself. Say the drift test fires. Statistically significant. Is the model broken?
Speaker 2
No. And this is the surprising part. A statistically significant drift result does not by itself tell you the shift is practically important, or that model quality has worsened.
Speaker 1
Wait. So the alarm can be true and meaningless at the same time.
Speaker 2
That's the tension. Drift alerts are proxies, not proof. When labels do arrive, you compare predictions with actual outcomes to evaluate quality for real.
Speaker 1
So the alert is the beginning of an investigation, not the verdict.
Speaker 2
Beautifully put. Amazon's guidance says the same thing: inspect monitoring reports and violations against the baseline rather than treating a single alert as a diagnosis.
Speaker 1
What about the data quality layer? Is that just drift again?
Speaker 2
No, it's separate. Schema constraints and feature statistics reveal quality problems in production inputs. Remember our pipeline lecture? The schema check that blocks a run before training starts. Same idea, applied continuously in production.
Speaker 1
So feature-level monitoring catches a broken input before it ever reaches the output.
Speaker 2
Right. Suppose an upstream team changes how they encode a category field. The feature distribution alarm fires immediately. Accuracy metrics won't move for weeks, because labels lag. The feature alarm is the early one.
Speaker 1
Okay, here's where I feel a real fight brewing. Alert sensitivity. The reliability engineer wants alarms on everything. The data scientist is drowning in false positives by Thursday.
Speaker 2
The classic alert fatigue standoff. And the resolution is boring and correct. Define thresholds and response procedures in advance. Who investigates, what evidence they review, and whether the response is rollback, retraining, or pausing use.
Speaker 1
So the threshold question dissolves the same way the testing-frequency fight did last time. You design the split instead of arguing about it.
Speaker 2
Same pattern. And NIST's AI Risk Management Framework goes further. It says monitor relevant subgroups and risk dimensions, not just overall averages. Aggregate metrics can hide important differences in outcomes.
Speaker 1
So a model can look fine on average and be failing for one group of users.
Speaker 2
It can. That's why the averages are the beginning of monitoring, not the end. And NIST also treats incident reporting and response as part of ongoing operational evaluation. Monitoring isn't a dashboard. It's a process with roles attached.
Speaker 1
How often should these checks even run? Is there a cadence?
Speaker 2
It should match how the model is used and how quickly problems matter. Monitoring jobs can run on a schedule or as needed. A batch model scoring quarterly might need different eyes than one serving requests in real time.
Speaker 1
One more thing I keep circling. The hidden feedback loop. Can a model's own predictions poison its future?
Speaker 2
Yes. The research on hidden technical debt names this directly. A model's predictions can influence the world, or the data later used by the system. Gradual effects become genuinely hard to detect.
Speaker 1
So the model changes the very data it will be judged on.
Speaker 2
It does. And there's a clever detection trick for text data. Train a classifier to distinguish reference examples from current examples. Its ability to separate the two datasets becomes the drift signal itself.
Speaker 1
The data betrays itself. Okay, so where does this leave our listener? They've got containers running, pipelines testing. What's the checklist?
Speaker 2
Watch all three layers. Log inputs and outputs. Establish a documented baseline. Treat drift as a proxy, not a verdict. Check subgroups, not just averages. And decide who responds before the alarm fires.
Speaker 1
monitoring tells us when things go wrong. But it doesn't tell us what to do about it.
Speaker 2
That's the honest boundary. Monitoring detects. Governance decides. Who owns the model, who signs off on a retrain, who can pull it. That's where we go next.
Governance, Compliance, and Model Registry
Two things that cannot both be true. Your team ships models faster than ever. And your team cannot answer a basic question: which model made that decision, and who approved it? Last lecture, our monitoring caught failures. But monitoring detects. It doesn't decide. Nobody owns the alarm. So now we formalize ownership itself.
I want to highlight the tension. Teams treat governance as friction. Slowing them down. And the strongest version of that argument is real: approvals, documentation, sign‑offs, all of it adds steps. I'll grant that fully. It still fails. Without governance, rollbacks can feel like an archaeology dig, and audits can become panic‑inducing.
So what does governance actually mean? The Federal Reserve's model‑risk guidance is blunt about it. Effective governance assigns clear roles and responsibilities for managing model risk, supported by policies, procedures, and controls. And notice, it's not just technical checks. The guidance emphasizes senior‑management and board‑level support too. Governance is organizational, not just a pipeline gate.
Now, the key idea: the model registry. Think of it like this. You decide whether to renew a subscription you forgot you had. That's what a registry prevents. MLflow's registry centralizes models and their lifecycle information. Versioning, lineage, aliases, metadata tags, annotations. A registered model can hold multiple versions, and registering another under the same name just increments the version number.
Here's the detail I find genuinely clever. Aliases. An alias is a named reference you can reassign to different versions. Your deployment code points at an alias, not a fixed version number. So the reference stays the same while the version it points to changes. That's how promotion becomes a pointer flip, not a code change. And MLflow links each registered version back to the runs that produced it. That's provenance. Chain of custody, from data to code to artifact.
Why does that chain matter? Because regulators demand it. The EU AI Act requires high‑risk AI systems to technically allow automatic recording of events over their lifetime. Those logs support traceability, risk identification, and post‑market monitoring. And the Act requires effective human oversight, designed in, proportionate to the system's risks. Overseers must be able to recognize limitations, interpret outputs, and disregard or override them when appropriate.
And this isn't just a European concern. NIST's AI Risk Management Framework organizes risk work into four functions: Govern, Map, Measure, and Manage. Govern isn't one step among four. NIST treats it as cross‑cutting, infused throughout the other three. It calls for organizational policies, processes, roles, and responsibilities. ISO takes the same stance. ISO/IEC 42001 specifies requirements for an AI management system, built on a Plan‑Do‑Check‑Act cycle of continual improvement.
So what does good documentation look in practice? Model cards. Google Research introduced them for exactly this. A model card documents intended uses, evaluation procedures, and performance characteristics, including results for relevant demographic subgroups. Remember our monitoring lecture? Averages can hide subgroup failures. The model card is where that honesty gets written down. And the Federal Reserve expects documentation detailed enough for people unfamiliar with the model to understand its operation, limitations, and key assumptions.
Now for my favorite corner of this space. Regulated retraining. Suppose your model is a machine‑learning‑enabled medical device. The FDA, together with Health Canada and the UK's MHRA, issued guiding principles for predetermined change‑control plans. The plan describes planned modifications, how they'll be implemented and controlled, and how their impacts get assessed. And the changes must be focused and bounded, limited to the device's intended use. You promise your changes in advance. That's the opposite of move fast and break things.
One more piece. Validation. The Federal Reserve frames model validation as checking whether a model performs as expected and remains aligned with its design objectives and business uses. Not a one‑time exam. An ongoing check. NIST likewise recommends ongoing monitoring and periodic review of risk‑management processes, with roles clearly defined. And the Manage function includes incident response, remediation, and change‑management plans.
So here's the counterintuitive payoff, and it's the takeaway. A model registry combined with policy enforcement ensures traceability, version control, and compliance. That means governance isn't the brake. It's the steering. When a model has an owner, each version has a lineage, and deployments pass a gate, shipping gets faster, because rollbacks and approvals become routine. But there's an honest limit. Whether your organization actually separates the trainer from the approver, the deployer from the auditor, that's a live disagreement inside most companies right now. We haven't settled it. Next time, we take what we've built, one model, one pipeline, one registry, and ask how it scales across teams.
Scaling MLOps: Organizational Patterns & Future Trends
Speaker 1
So last time we made governance the steering, not the brake. One model, one pipeline, one registry. And now I'm holding two things that can't both be true.
Speaker 2
Go on. You know I like these.
Speaker 1
Companies buy the right tools. Kubeflow, MLflow, the whole stack we've covered. And most pilots still stall before a second team ever uses them.
Speaker 2
Both are true, and the reason is that scaling MLOps is mostly not a tooling problem. It's an operating-model problem. Google's own maturity framing helps here.
Speaker 1
Maturity framing?
Speaker 2
Their architecture describes a progression. Level zero, manually run workflows. Level one, automated pipelines with continuous training. And the point is it's a guide, not a mandate to automate everything at once.
Speaker 1
So a company at level zero shouldn't be shopping for level-one plumbing?
Speaker 2
Right. And the question our listener is probably asking is, okay, so what does the organization actually look at each level?
Speaker 1
That's exactly my next question. Because I keep hearing platform team and product team used interchangeably, and I don't think they are.
Speaker 2
They're not. A product team owns one model and its business problem end to end. A platform team builds the shared machinery underneath, the pipelines, the registry, the serving layer, and offers it to everyone.
Speaker 1
So the platform team is like, what, the kitchen in a restaurant that several dining rooms share?
Speaker 2
That's a decent image. And the failure mode is predictable. Staff a platform with no product teams and you build beautiful machinery nobody needs.
Speaker 1
And the reverse?
Speaker 2
Product teams with no platform. Every team rebuilds the same pipeline from scratch. Multiple teams may each have their own registries and monitoring approaches, which can be hard to integrate.
Speaker 1
I've seen that. So what does the platform actually give them? Concretely.
Speaker 2
Think of what our listener does in a normal week. They want to retrain a model and ship it. Without a platform, that means wiring up tracking, storage, deployment, monitoring, all by hand. The platform makes those shared services.
Speaker 1
And MLflow's registry documentation actually describes that shape, doesn't it? Separate dev, staging, production environments with access controls?
Speaker 2
It does. Promotion through environments as a controlled workflow, with a remote tracking server for production, artifacts in object storage, registry metadata in a relational database. That's the platform's backbone.
Speaker 1
Okay, but here's where I push back. That's a lot of upfront investment. Why not let each team pick its own tools until the pain shows up?
Speaker 2
I'll grant the strongest version of that argument. Early standardization can lock in the wrong choices. But it fails for a specific reason. The research on ML technical debt shows the risk is at the system level. Entanglement, hidden feedback loops, undeclared consumers, data dependencies.
Speaker 1
So the debt compounds while each team, um, while each team reinvents its own wheel.
Speaker 2
Exactly. And there's a data-side trap too. Feature values from the wrong time. Feast's point-in-time joins reconstruct feature values as of each event's timestamp, so training data stays historically correct.
Speaker 1
Wait, that's a platform problem too? I thought that was a data science problem.
Speaker 2
It's both, and that's the point. A shared feature store is a platform service that a product team shouldn't have to build on its own. Even the TTL in Feast is relative to each timestamp in the entity dataframe, not to when the query runs.
Speaker 1
So how does a company actually sequence this? Nobody starts with a platform.
Speaker 2
run one pilot, learn where the friction is, run a second, then a third. Prioritize tooling standardization on later use cases.
Speaker 1
Because at one use case you don't yet know what's shared and what's specific.
Speaker 2
Right. And there's a rubric for the readiness piece. Google's ML Test Score, twenty‑eight tests and monitoring needs, presented as a roadmap for reducing technical debt.
Speaker 1
Twenty‑eight. That's, that's a real checklist, not a vibe.
Speaker 2
It's very much not a vibe. And it pairs with something from Google's Rules of Machine Learning: make infrastructure independently testable, encapsulate the learning components so the surrounding system can be tested.
Speaker 1
Now, the future‑trends part. Serverless inference. Where does that fit?
Speaker 2
KServe's model‑serving framework is a Kubernetes custom resource for deploying trained models, and it supports scaling to and from zero based on traffic.
Speaker 1
Scaling to zero. So when nobody's calling the model, nothing's running.
Speaker 2
Nothing's billed, either. For intermittent workloads, that's where the savings live. But a model serving steady traffic around the clock may not scale down, so serverless offers limited benefit.
Speaker 1
And autoscaling generally, how does that work? Is it just CPU?
Speaker 2
Kubernetes' HorizontalPodAutoscaler adjusts replicas based on observed metrics, CPU, memory, or custom metrics. And with multiple metrics configured, the controller picks the largest proposed scale.
Speaker 1
The largest. So it tends to err toward more replicas.
Speaker 2
It does. And for LLM inference, KServe documents autoscaling on specialized metrics, waiting requests, KV‑cache usage, rather than general CPU utilization.
Speaker 1
Of course. A GPU serving an LLM can be saturated on cache while the CPU looks idle.
Speaker 2
Exactly. Which brings us to the generative‑AI wave, and honestly, the part I find most unsettled. NIST published a whole Generative AI Profile as a companion to the AI Risk Management Framework.
Speaker 1
For risks specific to generative AI. And the RMF itself still runs Govern, Map, Measure, Manage?
Speaker 2
It does, with governance covering design, development, use, and evaluation. And here's where I'll be honest about the open question. LLM‑assisted pipeline generation is emerging, and I don't think anyone knows yet where the line sits.
Speaker 1
The line between what an LLM can generate and what still needs a human?
Speaker 2
Boilerplate pipeline code, maybe. Test scaffolding, maybe. But the judgment calls we've spent five lectures on, whether a drift alert matters, whether a model is safe to promote, those are, those remain human work.
Speaker 1
So the takeaway for our listener is that scaling is an operating model before it's a toolchain. Platform teams, shared services, a maturity progression you climb deliberately.
Speaker 2
And the culture underneath it. Google's Rules of Machine Learning even says to understand how much quality is lost when a model is a day, a week, or a quarter old. That's a habit, not a purchase.
Speaker 1
But whether LLMs end up writing half of what we just described, that's still being argued.
Speaker 2
It is, and I'd rather say that plainly than guess. We've taken this from one dying experiment to an enterprise capability. Where our listener takes it next is the genuinely open part.
