-
Notifications
You must be signed in to change notification settings - Fork 1.2k
How to save model? #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @meownoid , Model artifacts from a training job are uploaded to S3 when training completes, so the model is already saved. You can use sagemaker-python-sdk/src/sagemaker/estimator.py Lines 531 to 550 in 157d867
Does this answer your question? |
I will close the issue now. Feel free to reply if you have any further questions. |
@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. |
Added: Introduction to PCA, Linear Learner, and PCA notebooks
Follow up here. What format does sagemaker save models in? To be more precise, after you unzip the |
@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. |
How can I save model after the
model.fit()
so next time I could load and deploy it usingmodel.deploy()
?The text was updated successfully, but these errors were encountered: