Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SageMaker AIワークフローのあれこれ紹介
Search
Shota Totsuka
February 12, 2025
140
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SageMaker AIワークフローのあれこれ紹介
Shota Totsuka
February 12, 2025
More Decks by Shota Totsuka
See All by Shota Totsuka
Figma to Codeから Code to Figmaへ
totsukash
0
1.8k
コードレビューはCLAUDE.md/skillsに書け。同じ指摘を繰り返すな。
totsukash
20
21k
HITL実装によるマルチエージェント組織の設計パターン
totsukash
1
120
Claude Codeの知らない知識に立ち向かう
totsukash
1
1.2k
Claude Codeの知らない知識、ADK, A2Aを用いた プロダクト開発をClaude Codeで行う
totsukash
0
1.8k
Claude Code で Vibe Coding
totsukash
1
140
MCP, A2Aをプロダクトに組み込んで 開発している話
totsukash
1
71
Mastra活用|Text-to-SQLの実装と応用
totsukash
1
300
Bedrockでのプロンプト管理戦略
totsukash
3
290
Featured
See All Featured
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
340
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
47k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Being A Developer After 40
akosma
PRO
92
590k
Designing Powerful Visuals for Engaging Learning
tmiket
1
620
Crafting Experiences
bethany
1
390
The Invisible Side of Design
smashingmag
301
52k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
For a Future-Friendly Web
brad_frost
184
10k
The Curious Case for Waylosing
cassininazir
1
580
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
470
Transcript
None
自己紹介 ©Blueish 2024. All rights reserved. 戸塚 翔太|BLUEISH Shota Totsuka
・LLMアプリ開発者(Go/Python …etc) ・生成AI, 機械学習 ・趣味: スキー/スノボ, 最近はDifyにContribute ・静岡県(浜松)に住んでます 近くの方がいれば、一緒に勉強会しましょう! Xアカウント @totsukash
自己紹介 ©Blueish 2024. All rights reserved. AWS認定(1月から開始)
01 SageMaker AIのワークフロー 02 Pipelines 03 Kubernetesのオーケストレーション 04 SageMakerノートブックジョブ 目次
©Blueish 2024. All rights reserved. 05 Airflow ワークフロー 06 Step Functionsによるワークフロー
今までモデルの学習などは Notebookでやっていました。 ©Blueish 2024. All rights reserved.
AWSにも色々な パイプラインがあるらしい! ©Blueish 2024. All rights reserved.
このLTのために調べて、 自分で使ってみました。 ©Blueish 2024. All rights reserved.
もっといい方法や使い方があれば、 私も知りたいので教えてください!! ©Blueish 2024. All rights reserved.
Let's go!!! ©Blueish 2024. All rights reserved.
01 SageMaker AIの ワークフロー ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. SageMaker AIのワークフロー - Pipelines -
ML パイプラインを構築して管理するためのツール - Kubernetesのオーケストレーション - Kubernetes クラスターの SageMaker AI カスタム演算子と Kubeflow Pipelines のコンポーネント - SageMakerノートブックジョブ - Jupyter Notebook のオンデマンドまたはスケジュール済み非インタラクティブなバッチ実行 - Airflowワークフロー - Airflow ワークフローを作成および管理するための設定をエクスポートする SageMaker API - Step Functions - リソースを個別にプロビジョニングすることなく SageMaker AI インフラストラクチャを調整する Python の複数ステップの ML ワークフロー ワークフローの種類
02 Pipelines ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. Pipelines Pipelinesとは?
©Blueish 2024. All rights reserved. Pipelines - SageMaker Studioの中でVisual Blockで作成できる
- 有向非巡回グラフ (DAG) で相互接続された一連のステップ - JSONスキーマを使用してパイプラインを構築することもできる - import/export 可能 - MLパイプラインを構築して管理するためのツール Pipelinesとは?
©Blueish 2024. All rights reserved. Pipelines Pipelinesとは? - Create model
- Deploy model(batch inference) - Deploy model(endpoint) - Fine tune - Process data - Register model - Run notebook or code - Train model - Condition - Fail
03 Kubernetesの オーケストレーション ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. Kubernetesのオーケストレーション - SageMaker AI Operators
for Kubernetes - Kubernetes を使用して SageMaker AI で機械学習 (ML) モデルを簡単にト レーニング、調整、デプロイできる - Kubeflow Pipelines 用 SageMaker AI コンポーネント - データ処理ジョブとトレーニングジョブを Kubernetes クラスターから SageMaker AI の機械学習最適化マネージドサービスに移動できる Kubernetesのオーケストレーション
©Blueish 2024. All rights reserved. Kubernetesのオーケストレーション - SageMaker AI OperatorsをEKSのK8sクラスターにインストール
- k8sクラスターから SageMaker AI でモデルトレーニング, ハイパーパラメータ調整, 推論が可能 SageMaker AI Operators for Kubernetes
Kubernetesのオーケストレーション - Kubernetes クラスターから SageMaker AI のジョブを管理できる - Kubernetes API
を使用して Kubernetes クラスター内から SageMaker AI でモデルトレーニングを実行可能 AWS Controllers for Kubernetes (ACK)
©Blueish 2024. All rights reserved. Kubernetesのオーケストレーション - Kubeflow Pipelines からネイティブ
SageMaker AI トレーニング、チューニング、エンドポイ ントデプロイ、バッチ変換ジョブを作成およびモニタリングできる - Kubeflow Pipelines SDK を使用してコンポーネントを読み込み、パイプラインを記述 - コンポーネント - Ground Truth / 作業チーム - データ処理(Processing) - トレーニング / ハイパーパラメータの最適化 - 推論: ホスティングデプロイ / バッチ変換 / モデルモニター ※IAM周りでハマったので、ドキュメントは要確認!!! Kubeflow Pipelines用 SageMaker AI コンポーネント
04 SageMaker ノートブックジョブ ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. SageMakerノートブックジョブ JupyterLab
©Blueish 2024. All rights reserved. SageMakerノートブックジョブ JupyterLab in SageMaker Studio
©Blueish 2024. All rights reserved. SageMakerノートブックジョブ - オンデマンド, スケジュールに従って実行できる -
JupyterLab から直接ジョブをスケジュール - SageMaker AI Python SDK を使用してジョブをスケジュールすることもできる - 複数のノートブックを並列に実行し、ノートブック内のセルをパラメータ化して入力パラメー タをカスタマイズできる SageMakerノートブックジョブ
05 Airflow ワークフロー ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. Airflow ワークフロー - ワークフローと呼ばれる一連のプロセスとタスクをプログラムで作成、スケジュール、監視す るために使用されるオープンソースのツール
- 定期的なETL処理とかバッチ処理、機械学習のパイプラインとかを自動化 Managed Workflows for Apache Airflow(MWAA)
©Blueish 2024. All rights reserved. Airflow ワークフロー Managed Workflows for
Apache Airflow(MWAA)
06 Step Functionsによる ワークフロー ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. Step Functionsによるワークフロー Step Functions
©Blueish 2024. All rights reserved. Step Functionsによるワークフロー サポートされている SageMaker AI
APIs - CreateEndpoint - CreateEndpointConfig - CreateHyperParameterTuningJob - CreateLabelingJob - CreateModel - CreateProcessingJob - CreateTrainingJob - CreateTransformJob - UpdateEndpoint
06 振り返り ©Blueish 2024. All rights reserved.
©Blueish 2024. All rights reserved. 振り返り 01 SageMaker AIのワークフロー 02
Pipelines 03 Kubernetesのオーケストレーション 04 SageMakerノートブックジョブ 05 Airflow ワークフロー 06 Step Functionsによるワークフロー
ご清聴ありがとうございました。 ©Blueish 2024. All rights reserved.