Skip to main content
This guide shows you how to deploy a Holo model as a real-time endpoint using the managed service Amazon SageMaker.

Pre-requisites

Make sure you have already subscribed to the model in AWS Marketplace. The notebook does not require a GPU; it uses the AWS API (boto3) to deploy the endpoint. Make sure the selected IAM role has enough privileges. You can start with a role that has the AmazonSageMakerFullAccess policy attached and whose trust relationship policy allows the action sts:AssumeRole for the service principal sagemaker.amazonaws.com.

Step 1: Install required Python dependencies

Use the following code to install the required packages and import the necessary libraries:

Step 2: Set up the SageMaker session and client

Set up a SageMaker session and client so you can connect to AWS and run your models.

Step 3: Select Holo model package

Choose your Holo model package.

Step 4: Deploy Holo

Deploy a SageMaker real-time endpoint hosted on a GPU instance. For general information on real-time inference with Amazon SageMaker, see the SageMaker documentation. The deployed endpoint uses vLLM serve, so it supports the OpenAI APIs and exposes the v1/chat/completions endpoint.

Step 4a. Define the endpoint configuration

Step 4b. Create the endpoint

Step 5: Run an example

The endpoint is in service. You can use the SageMaker invoke_endpoint API to perform real-time inference on the deployed Holo-1 model.

Step 6: Clean-up

Once you have run inference, you no longer need the endpoint. Terminate it to avoid being charged. Run the cells below to delete all resources and avoid unnecessary charges.