在使用a1.small实例调用SageMaker deploy_端点函数时,我遇到一个错误,无法打开m5.xlarge实例

2024-10-02 22:25:41 发布

您现在位置:Python中文网/ 问答频道 /正文

因此,在通过自动驾驶仪生成的笔记本执行时,我执行了最后一个代码单元:

pipeline_model.deploy(initial_instance_count=1,
                      instance_type='a1.small',
                      endpoint_name=pipeline_model.name,
                      wait=True)

我得到这个错误

ResourceLimitExceeded: An error occurred (ResourceLimitExceeded) when calling the CreateEndpoint operation: The account-level service limit 'ml.m5.2xlarge for endpoint usage' is 0 Instances, with current utilization of 0 Instances and a request delta of 1 Instances. Please contact AWS support to request an increase for this limit.

其中最重要的部分是最后一行,其中提到了资源限制。我没有试图打开实例的类型,它给了我一个关于打开的错误

端点是否需要位于ml.m5.2xlarge实例上?还是代码出了问题

提前谢谢各位


Tags: ofinstancesinstance代码nameformodelpipeline
1条回答
网友
1楼 · 发布于 2024-10-02 22:25:41

您应该使用this link中详细介绍的受支持的按需ML托管实例之一。我认为无效的instance_type='a1.small'被一个有效的(ml.m5.2xlarge)替换,这不在您的AWS服务配额中。奇怪的是,seinginstance_type='a1.small'是由SageMaker自动驾驶仪生成的

相关问题 更多 >