You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* First working prototype - no schedules, no isolated steps, duplicated code
* Added support to launch dynamic steps
* Resolved code duplication and reworked metadata extraction
* Fix use of processing jobs
* Fix docstrings
* Add metadata for sync dynamic pipeline runs
* Code review improvements
* Add docs
Copy file name to clipboardExpand all lines: docs/book/component-guide/orchestrators/sagemaker.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ Create a custom policy for the execution role that SageMaker will assume:
165
165
166
166
### Client Permissions (for pipeline submission)
167
167
168
-
Create a custom policy for the client/user submitting pipelines:
168
+
Create a custom policy for the client/user submitting pipelines and training/processing jobs:
169
169
170
170
```json
171
171
{
@@ -183,6 +183,12 @@ Create a custom policy for the client/user submitting pipelines:
183
183
"sagemaker:ListPipelineExecutionSteps",
184
184
"sagemaker:UpdatePipeline",
185
185
"sagemaker:DeletePipeline"
186
+
"sagemaker:CreateProcessingJob",
187
+
"sagemaker:DescribeProcessingJob",
188
+
"sagemaker:StopProcessingJob",
189
+
"sagemaker:CreateTrainingJob",
190
+
"sagemaker:DescribeTrainingJob",
191
+
"sagemaker:StopTrainingJob"
186
192
],
187
193
"Resource": "*"
188
194
},
@@ -206,7 +212,7 @@ Replace `ACCOUNT-ID` and `EXECUTION-ROLE-NAME` with your actual values.
206
212
ZenML will build a Docker image called `<CONTAINER_REGISTRY_URI>/zenml:<PIPELINE_NAME>` which includes your code and use it to run your pipeline steps in Sagemaker. Check out [this page](https://docs.zenml.io/how-to/customize-docker-builds/) if you want to learn more about how ZenML builds these images and how you can customize them.
207
213
{% endhint %}
208
214
209
-
You can now run any ZenML pipeline using the Sagemaker orchestrator:
215
+
You can now run any ZenML static pipeline or dynamic pipeline using the Sagemaker orchestrator:
210
216
211
217
```shell
212
218
python run.py
@@ -237,6 +243,8 @@ Once the Studio UI has launched, click on the 'Pipeline' button on the left side
237
243
238
244

239
245
246
+
If you are running dynamic pipelines, you can access the training/processing jobs in the SageMaker UI by clicking on the 'Jobs' button on the left side. From there you can view the jobs that have been launched via ZenML. A training job will be created for each dynamic pipeline run and for each step in the dynamic pipeline marked to run as an isolated step.
247
+
240
248
### Debugging SageMaker Pipelines
241
249
242
250
If your SageMaker pipeline encounters an error before the first ZenML step starts, the ZenML run will not appear in the ZenML dashboard. In such cases, use the [SageMaker UI](sagemaker.md#sagemaker-ui) to review the error message and logs. Here's how:
@@ -470,6 +478,10 @@ Note that if you wish to use this orchestrator to run steps on a GPU, you will n
470
478
471
479
### Scheduling Pipelines
472
480
481
+
{% hint style="warning" %}
482
+
The SageMaker orchestrator does not support scheduling for dynamic pipelines yet.
483
+
{% endhint %}
484
+
473
485
The SageMaker orchestrator supports running pipelines on a schedule using SageMaker's native scheduling capabilities. You can configure schedules in three ways:
0 commit comments