是否可以为我在AWS Sagemaker创建的模型而无需使用SageMaker SDK设置端点

发布于 2025-02-13 02:27:55 字数 358 浏览 1 评论 0原文

我已经在AWS SageMaker实例上创建了自己的模型,并使用了自己的培训和推理循环。我想部署它,以便可以调用AWS Lambda推理的模型。

我根本没有使用SageMaker软件包来开发,但是每个教程(这里是一个)。

如何在不使用SageMaker软件包的情况下创建一个端点。

I've created my own model on a AWS SageMaker instance, with my own training and inference loops. I want to deploy it so that I can call the model for inference from AWS Lambda.

I didn't use the SageMaker package to develop at all, but every tutorial (here is one) I've looked at does so.

How do I create an endpoint without using the SageMaker package.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞美少年 2025-02-20 02:27:56

您可以使用BOTO3库来实现此操作。

这是伪代码的示例 -

import boto3
sm_client = boto3.client('sagemaker')
create_model_respose = sm_client.create_model(ModelName=model_name, ExecutionRoleArn=role, Containers=[container] )

create_endpoint_config_response = sm_client.create_endpoint_config(EndpointConfigName=endpoint_config_name)

create_endpoint_response = sm_client.create_endpoint(EndpointName=endpoint_name, EndpointConfigName=endpoint_config_name)

You can use the boto3 library to do this.

Here is an example of pseudo code for this -

import boto3
sm_client = boto3.client('sagemaker')
create_model_respose = sm_client.create_model(ModelName=model_name, ExecutionRoleArn=role, Containers=[container] )

create_endpoint_config_response = sm_client.create_endpoint_config(EndpointConfigName=endpoint_config_name)

create_endpoint_response = sm_client.create_endpoint(EndpointName=endpoint_name, EndpointConfigName=endpoint_config_name)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文