概念 · AIF-C01 の発展
Triggering retraining
Start retraining on a schedule, new data or drift, then compare, approve and avoid loops.
このレッスンはまだ翻訳されていないため、英語で表示しています。
AI Practitionerで学んだこと
- MLOps automates training and deployment so models can be refreshed.
- Models drift as data changes, which is a reason to retrain.
- 1A schedule, new data or an alarm fires.
- 2An EventBridge rule starts the pipeline.
- 3The pipeline trains a challenger model.
- 4The challenger is compared with the champion, and an approval gate decides.
- 5An approved model is registered and deployed.
流れ
- 1A schedule, new data or an alarm fires.
- 2An EventBridge rule starts the pipeline.
- 3The pipeline trains a challenger model.
- 4The challenger is compared with the champion, and an approval gate decides.
- 5An approved model is registered and deployed.
Schedule
- Comes from
- EventBridge schedule
- Watch for
- May retrain on unchanged data
New data
- Comes from
- S3 event through EventBridge
- Watch for
- Batch small arrivals
Drift or quality alarm
- Comes from
- Monitor, CloudWatch alarm
- Watch for
- Labels can arrive late
| Trigger | Comes from | Watch for |
|---|---|---|
| Schedule | EventBridge schedule | May retrain on unchanged data |
| New data | S3 event through EventBridge | Batch small arrivals |
| Drift or quality alarm | Monitor, CloudWatch alarm | Labels can arrive late |
概要
Three triggers start retraining. A schedule (EventBridge) is simple and predictable but may retrain on unchanged data. New data in Amazon S3, announced through EventBridge once the bucket sends events there, retrains when there is enough to learn from. A drift or quality alarm, from a monitor to CloudWatch to EventBridge, retrains only when needed, but quality alarms need ground truth labels, which can arrive late.
概要
The trigger starts a SageMaker Pipelines run or a Step Functions workflow. The new model is the challenger. It is evaluated on the same data as the champion, the model in production. Only a better challenger moves on. An approval gate, manual or a metric rule, sets the Model Registry status to Approved, which starts deployment, ideally with a canary rollout.
Avoid retrain loops. If model output is written to the bucket that triggers training, every run starts the next. Set a minimum time between runs, limit concurrent executions, and trigger on labeled data only. Make a retrain that finds no improvement end quietly, and alert when a pipeline retrains many times in a row.
覚えること
- Triggers: EventBridge schedule, new data in S3, drift or quality alarm.
- The trigger starts Pipelines or Step Functions.
- Champion is in production. Challenger must beat it on the same data.
- An approval gate sets Approved in Model Registry, which starts deployment.
覚えること
- Avoid loops with a minimum interval, limited concurrency and labeled-data triggers.
試験では
- “Retrain only when accuracy drops” points to a quality or drift alarm that starts the pipeline.
- “Retrain every night, simplest” points to an EventBridge schedule.
- “New model must beat the production model before release” points to a champion and challenger comparison.
- “Pipeline keeps retraining itself” points to model output landing in the trigger bucket, a loop.
このタスクの内容 · 3.3
- Deployment strategies and rollback
CodePipeline
CodeBuild
CodeDeploy
SageMaker Pipelines
- Automated testing in ML pipelines
- Triggering retraining
Model Registry
Prompt Management
- Agent deployment pipelines and versions
- AI model and prompt testing
- Automating FM deployment and fine-tuned model versions
- RAG update and knowledge base refresh pipelines
Step Functions