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 réponse
0
Réponse acceptée

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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions