[英]AWS SageMaker - training locally but deploying to AWS?
I have a the following challenge with SageMaker: SageMaker面临以下挑战:
I ran the training locally (successfully) with the modifying the following line: 我通过修改以下行在本地(成功地)运行了培训:
abalone_estimator = TensorFlow(entry_point='abalone.py', role=role, training_steps= 100, evaluation_steps= 100, hyperparameters={'learning_rate': 0.001}, train_instance_count=1, **train_instance_type='local'**) abalone_estimator.fit(inputs)
I then wanted to deploy my model to AWS with the following line but it seems the SDK deploys it locally (it doesn't fail, I just see it running on my machine) 然后,我想通过以下代码行将模型部署到AWS,但似乎SDK在本地部署了(它不会失败,我只是看到它在我的机器上运行)
abalone_predictor = abalone_estimator.deploy(initial_instance_count=1, instance_type='ml.m4.xlarge')
Any tips on how to either fix it so it gets deployed to AWS or alternatively re-load my training model and deploy it to AWS from scratch? 关于如何修复它以便将其部署到AWS或重新加载我的训练模型并将其从头部署到AWS的任何技巧?
Many thanks, Stefan 非常感谢,斯特凡
Its easier to run the training again on SageMaker. 在SageMaker上再次运行培训更加容易。 Otherwise, here are the steps that you would have to do.
否则,这是您必须执行的步骤。
If you want details on each of the specific steps above do let me know, but if your dataset is not too big, I would say just retrain on SageMaker. 如果您想了解上述每个特定步骤的详细信息,请告诉我,但是如果您的数据集不太大,我想说的就是对SageMaker进行重新培训。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.