0
0
MLOpsdevops~10 mins

Why CI/CD differs for ML vs software in MLOps - Visual Breakdown

Choose your learning style9 modes available
Process Flow - Why CI/CD differs for ML vs software
Start: Code Commit
Software CI/CD
Build -> Test -> Deploy
Production Software
ML CI/CD
Data Collection -> Model Training
Model Validation -> Deployment
Production Model & Monitoring
Shows two parallel flows: software CI/CD is code-focused with build-test-deploy, while ML CI/CD adds data and model training steps before deployment.
Execution Sample
MLOps
# Software CI/CD steps
code_commit()
build()
test()
deploy()

# ML CI/CD steps
collect_data()
train_model()
validate_model()
deploy_model()
This code outlines the main steps in software CI/CD versus ML CI/CD pipelines.
Process Table
StepProcessActionFocusOutcome
1Software CI/CDcode_commit()Code changesTrigger pipeline
2Software CI/CDbuild()Compile codeBuild artifact
3Software CI/CDtest()Run testsVerify code correctness
4Software CI/CDdeploy()Deploy appRelease software
5ML CI/CDcollect_data()Gather dataPrepare dataset
6ML CI/CDtrain_model()Train modelCreate model artifact
7ML CI/CDvalidate_model()Evaluate modelCheck model quality
8ML CI/CDdeploy_model()Deploy modelRelease model to production
9ML CI/CDmonitor_model()Monitor performanceDetect model drift
10EndConditionAll steps donePipeline complete
💡 All pipeline steps completed for both software and ML CI/CD
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5After Step 6After Step 7After Step 8After Step 9Final
CodeInitial codeCommittedBuiltTestedDeployedDeployedDeployedDeployedDeployedDeployedDeployed
DataRaw dataRaw dataRaw dataRaw dataRaw dataCollectedCollectedCollectedCollectedCollectedCollected
ModelNoneNoneNoneNoneNoneNoneTrainedValidatedDeployedMonitoredMonitored
Key Moments - 3 Insights
Why does ML CI/CD include data collection and model training steps unlike software CI/CD?
ML CI/CD pipelines must handle data and model lifecycle, not just code. Execution table rows 5 and 6 show data collection and model training steps unique to ML.
Why is model validation a separate step in ML CI/CD?
Model validation ensures the model works well before deployment, unlike software tests which run earlier. See execution table row 7 for this distinct step.
Why is monitoring important after ML model deployment but not always shown in software CI/CD?
ML models can degrade over time due to data changes, so monitoring (row 9) detects this drift, which is less common in traditional software.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, at which step does the ML pipeline first produce a model artifact?
AStep 5
BStep 7
CStep 6
DStep 8
💡 Hint
Check the 'Action' and 'Outcome' columns for model creation in ML CI/CD steps.
According to the variable tracker, what is the state of 'Model' after step 7?
ANone
BValidated
CTrained
DDeployed
💡 Hint
Look at the 'Model' row under 'After Step 7' in the variable tracker.
If monitoring was removed from the ML pipeline, which step would be missing from the execution table?
AStep 9
BStep 7
CStep 8
DStep 6
💡 Hint
Look for the step related to monitoring in the execution table.
Concept Snapshot
CI/CD for software focuses on code build, test, and deploy.
ML CI/CD adds data collection, model training, validation, and monitoring.
ML pipelines handle data and model lifecycle, not just code.
Monitoring is critical for ML to detect model drift.
Each step ensures quality before production release.
Full Transcript
This visual execution compares CI/CD pipelines for software and machine learning. Software CI/CD runs code commit, build, test, and deploy steps focused on code changes. ML CI/CD includes extra steps: collecting data, training a model, validating it, deploying, and monitoring performance. Variables like code, data, and model change state at different steps. Key differences are the handling of data and models in ML pipelines and the need for monitoring after deployment to catch model drift. The execution table and variable tracker show these steps clearly, helping beginners see why ML CI/CD is more complex than traditional software CI/CD.