How to run a batch transformation with custom inference code in sagemaker pipeline?

0

based on the docs here , https://sagemaker-examples.readthedocs.io/en/latest/sagemaker-pipelines/tabular/abalone_build_train_deploy/sagemaker-pipelines-preprocess-train-evaluate-batch-transform.html#Define-a-Transform-Step-to-Perform-Batch-Transformation, after creating a model, the example shows a batch transform job is run. how to include any custom inference script that is required to get an inference from the model.

已提問 1 年前檢視次數 331 次
1 個回答
1

The inference code plus model artifacts information is defined with SageMaker Model. In SageMaker Model, you have the option of which model artifact to use plus which inference script to use, usually defined as entry_point in the model object.

To be more specific, after training, you need a step to create/register the model as described here. During this process, you could choose appropriate model artifacts with inference scripts.

Then this model could be defined to be used in a transform job.

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南