使用SageMaker SDK 获取 镜像 URI 时遇到问题

0

【以下的问题经过翻译处理】 当获取Catboost镜像URI时,我遇到了问题。这是用于获取预构建SageMaker Docker ECR镜像URI的函数。我的代码如下:catboost_container = sagemaker.image_uris.retrieve("catboost", my_region, "latest")。

1 Answer
0

【以下的回答经过翻译处理】 正如此算法的文档中所示,检索此URI的参数有些不同:这更像是使用新的JumpStart模型(如果您熟悉)而不是旧式的预构建算法。

我在SageMaker Studio中测试了上述代码片段,它能正常运行。如果您仍然看到错误,可能是因为您的SageMaker Python SDK版本过时(例如,定期不重新启动SageMaker Studio应用程序或SageMaker Notebook实例可能会导致这种情况)。如果需要,可以使用sagemaker.__version__进行检查,使用!pip install --upgrade sagemaker进行升级。

profile picture
EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions