Create Sklearn model.tar.gz in one sagemaker, use the model in another sagemaker without using endpoint #2389
Replies: 2 comments
-
Hi @radhakrishnang, if you have a pre-trained model, assuming that you have the S3 uri of the model artifact and your SageMaker role has access to the object, you can do the following to deploy the model to an endpoint: https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/sklearn/model.py#L53
As for the batch transform, after your endpoint is in service, you can proceed batch transforming as normal. |
Beta Was this translation helpful? Give feedback.
-
Ni hao @ChuyangDeng, I want to use model.tar.gz created from already trained model in sagemaker to be directly deployed in another sagemaker environment for batch transform without training again or having endpoint creation ... is it feasible? Xiexie |
Beta Was this translation helpful? Give feedback.
-
I am creating model.tar.gz for random forest classifier in sagemaker using sklearn based on sagemaker sklearn end 2 end example
my goal is to use the saved model in one sagemaker environment to deploy in another sagemaker environment without doing estimator or training again i just need to do batch transform
can you please point any documentation on loading the model and doing batch
Beta Was this translation helpful? Give feedback.
All reactions