サービス · Machine Learning · AIF-C01 の発展
Amazon SageMaker Pipelines
A graph of ML steps with parameters, caching, retries and CI/CD templates.
このレッスンはまだ翻訳されていないため、英語で表示しています。
AI Practitionerで学んだこと
- Pipelines automates the ML workflow as a repeatable graph.
- It works with Model Registry, which holds model versions and approval status.
- 1Processing prepares the data.
- 2Training builds the model.
- 3Evaluation measures it, and the Condition step checks the metric.
流れ
- 1Processing prepares the data.
- 2Training builds the model.
- 3Evaluation measures it, and the Condition step checks the metric.
A small pipeline: the condition decides between registering and failing.
Parameters
- It does
- Values set at run time
- Use it to
- Change data path or instance type
Step caching
- It does
- Reuses an earlier result
- Use it to
- Skip unchanged steps
Retry policies
- It does
- Re-run after listed errors
- Use it to
- Survive capacity and throttling
Projects
- It does
- CI/CD templates
- Use it to
- Start with a ready repository and pipeline
| Feature | It does | Use it to |
|---|---|---|
| Parameters | Values set at run time | Change data path or instance type |
| Step caching | Reuses an earlier result | Skip unchanged steps |
| Retry policies | Re-run after listed errors | Survive capacity and throttling |
| Projects | CI/CD templates | Start with a ready repository and pipeline |
1 / 2
Parameters
- It does
- Values set at run time
- Use it to
- Change data path or instance type
Step caching
- It does
- Reuses an earlier result
- Use it to
- Skip unchanged steps
Retry policies
- It does
- Re-run after listed errors
- Use it to
- Survive capacity and throttling
| Feature | It does | Use it to |
|---|---|---|
| Parameters | Values set at run time | Change data path or instance type |
| Step caching | Reuses an earlier result | Skip unchanged steps |
| Retry policies | Re-run after listed errors | Survive capacity and throttling |
2 / 2
Projects
- It does
- CI/CD templates
- Use it to
- Start with a ready repository and pipeline
| Feature | It does | Use it to |
|---|---|---|
| Projects | CI/CD templates | Start with a ready repository and pipeline |
概要
A pipeline is a directed acyclic graph of steps. Common steps are Processing, Training, Tuning, Transform, Model or RegisterModel, Condition, Callback, Lambda and Fail. There are also QualityCheck and ClarifyCheck steps and an EMR step. A step that uses another step output, through its properties, creates the dependency, and DependsOn adds one by hand. Steps with no dependency run in parallel, and ParallelismConfiguration limits how many.
概要
Parameters (string, integer, float or Boolean) let you change inputs for a run, such as the data path or instance type, without editing the definition. Step caching reuses the result of an earlier successful step with the same arguments, for a time you set with expire_after. Retry policies re-run a step after errors such as service faults, throttling or SageMaker AI capacity errors, with a maximum number of attempts and a back-off.
概要
A Condition step compares a metric, for example accuracy from an evaluation, and branches to registration or to a Fail step. Start a pipeline from the SDK, the console or an EventBridge rule. SageMaker Projects give MLOps templates that create the repository, a CodePipeline with CodeBuild and a registry group, using Service Catalog. A push then builds and runs the pipeline, and an approval in Model Registry deploys the model.
覚えること
- Steps: Processing, Training, Tuning, Transform, Model, Condition, Callback, Lambda, Fail and more.
- Dependencies come from step properties or DependsOn. Independent steps run in parallel.
- Parameters change inputs per run. Caching skips repeated steps.
- Retry policies handle service faults, throttling and capacity errors.
覚えること
- A Condition step gates registration on a metric.
- Projects add CI/CD templates through Service Catalog.
試験では
- “Skip the processing step when its inputs have not changed” points to step caching.
- “Only register the model if accuracy is above a threshold” points to a Condition step.
- “Training step fails sometimes with a capacity error” points to a retry policy.
- “Reusable MLOps starter with a repository and a pipeline” points to a SageMaker Projects template.
このタスクの内容 · 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