You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model artifacts from a training job are uploaded to S3 when training completes, so the model is already saved. You can use attach() with the training job name from fit() to deploy this model:
@andremoeller, that is true if you did the training on the SageMaker, but in my example, I did not. I train everything in EC2 instances, then saved the architecture file in json format and the weights in h5 format.
Is there any way that I can deploy and estimator to SageMaker from this files?
Follow up here. What format does sagemaker save models in? To be more precise, after you unzip the model.tar.gz what is the resulting format of the model file. It does not seem to be mleap. Was wondering if its possible to load the model.tar.gz produced by sagemaker training job using an mleap like library.
@KobaKhit the format of the model depends on how you trained the image, e.g. if you use TensorFlow, then the model is saved in the format specified by your training script.
Activity
andremoeller commentedon Dec 27, 2017
Hi @meownoid ,
Model artifacts from a training job are uploaded to S3 when training completes, so the model is already saved. You can use
attach()with the training job name fromfit()to deploy this model:sagemaker-python-sdk/src/sagemaker/estimator.py
Lines 531 to 550 in 157d867
Does this answer your question?
yangaws commentedon Jan 16, 2018
@meownoid
I will close the issue now. Feel free to reply if you have any further questions.
Add hyperparameter range validation (aws#31)
ricoms commentedon Aug 2, 2018
@andremoeller, that is true if you did the training on the SageMaker, but in my example, I did not. I train everything in EC2 instances, then saved the architecture file in json format and the weights in h5 format.
Is there any way that I can deploy and estimator to SageMaker from this files?
I'm following this material: https://github.com/samir-souza/ai-workshop/blob/master/lab/03_ImageClassification/ImageClassificationFashionMNIST.ipynb my application is similar.
Merge pull request aws#31 from awslabs/arpin_intro_pca_linear_fm
KobaKhit commentedon Feb 25, 2020
Follow up here. What format does sagemaker save models in? To be more precise, after you unzip the
model.tar.gzwhat is the resulting format of the model file. It does not seem to be mleap. Was wondering if its possible to load themodel.tar.gzproduced by sagemaker training job using an mleap like library.laurenyu commentedon Feb 25, 2020
@KobaKhit the format of the model depends on how you trained the image, e.g. if you use TensorFlow, then the model is saved in the format specified by your training script.