如何通过AWS CLI创建SageMaker管道定义文件?

huangapple go评论61阅读模式
英文:

how to create sagemaker pipeline definition file via aws cli?

问题

可以通过AWS CLI创建SageMaker管道定义文件吗?根据这里的文档,https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/abalone_build_train_deploy/sagemaker-pipelines-preprocess-train-evaluate-batch-transform.ipynb,可以通过Jupyter笔记本创建管道步骤,然后创建管道对象,并通过Jupyter笔记本执行它。实际上,所有步骤都记录在一个JSON文件中。我可以简单地在本地或通过CLI创建该JSON文件,然后在本地机器上使用AWS CLI执行它吗,例如

aws sagemaker update-pipeline --pipeline-name $PIPELINE_NAME --role-arn $ROLE_ARN --pipeline-definition "$pipeline_definition_json"
英文:

is it possible to create a sagemaker pipeline definition file via aws cli? based on the docs here, https://github.com/aws/amazon-sagemaker-examples/blob/main/sagemaker-pipelines/tabular/abalone_build_train_deploy/sagemaker-pipelines-preprocess-train-evaluate-batch-transform.ipynb
one can create pipeline steps via jupyter notebook and create a pipeline object and then execute it via jupyter notebook. essentially, all the steps are documented in some json file. can i simply create that json file locally or via cli and then execute it via aws cli from my local machine , for example

aws sagemaker update-pipeline --pipeline-name $PIPELINE_NAME --role-arn $ROLE_ARN --pipeline-definition "$pipeline_definition_json"

答案1

得分: 1

你可以使用Sagemaker SDK定义流水线及其步骤。一旦完成此操作,您可以导出JSON(pipeline.definition()),然后稍后使用CLI创建或更新。

英文:

You can define the pipeline and its steps using the Sagemaker SDK. Once you have this you can export the JSON (pipeline.definition()) and later use it with the cli to create or update.

huangapple
  • 本文由 发表于 2023年3月7日 12:14:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/75657994.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定