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.

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠