Redshift ML / SageMaker - Deploy an existing model artifact to a Redshift Cluster

0

Is it possible to deploy an existing model artifact from SageMaker to Redshift ML?

For example, with an Aurora ML you can reference a SageMaker endpoint and then use it as a UDF in a SELECT statement. Redshift ML works a bit differently - when you call CREATE MODEL - the model is trained with SageMaker Autopilot and then deployed to the Redshift Cluster.

What if I already have a trained model, can i deploy it to a Redshift Cluster and then use a UDF for Inference?

1 回答
0
已接受的回答

As of January 30 2021, you can't deploy an existing model artifact from SageMaker to Redshift ML directly with currently announced Redshift ML preview features. But you can reference sagemaker endpoint through a lambda function and use that lambda function as an user defined function in Redshift.

Below would be the steps:

  1. Train and deploy your SageMaker model in a SageMaker Endpoint.
  2. Use Lambda function to reference sagemaker endpoint.
  3. Create a Redshift Lambda UDF referring above lambda function to run predictions.
AWS
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则