ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

サービス · 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.
AI Practitionerのレッスンを読む
Processing step
Training step
Evaluation step
Condition step
Register model
Fail step
yesno
  1. 1Processing prepares the data.
  2. 2Training builds the model.
  3. 3Evaluation measures it, and the Condition step checks the metric.
A small pipeline: the condition decides between registering and failing.

流れ

  1. 1Processing prepares the data.
  2. 2Training builds the model.
  3. 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
Four pipeline features worth knowing.

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

2 / 2

  • Projects

    It does
    CI/CD templates
    Use it to
    Start with a ready repository and pipeline
Four pipeline features worth knowing.

概要

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.