With an sagemaker.estimator.Estimator
,我想重新deploy https://sagemaker.readthedocs.io/en/stable/api/training/estimators.html#sagemaker.estimator.EstimatorBase.deploy重新训练后的模型(调用fit
与新数据)。
当我调用这个
estimator.deploy(initial_instance_count=1, instance_type='ml.m5.xlarge')
我收到一个错误
botocore.exceptions.ClientError: An error occurred (ValidationException)
when calling the CreateEndpoint operation:
Cannot create already existing endpoint "arn:aws:sagemaker:eu-east-
1:1776401913911:endpoint/zyx".
显然我想使用类似的功能更新端点 https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateEndpoint.html。如何从此 API 访问该功能?
是的,在引擎盖下model.deploy
创建模型、端点配置和端点。当您从已部署的、经过训练的估计器再次调用该方法时,它将产生错误,因为已经部署了类似配置的端点。我鼓励你尝试:
-
use the update_endpoint=True
范围。来自SageMaker SDK 文档 https://sagemaker.readthedocs.io/en/stable/overview.html:
“此外,可以部署不同的端点配置,该配置链接到您的模型、现有的
SageMaker 端点。这可以通过指定现有的
的端点名称endpoint_name
参数以及update_endpoint
参数为 True 在你的deploy()
call."
-
或者,如果您想创建一个单独的模型,您可以指定一个新的model_name
在你的deploy
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)