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 actionsts: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 thev1/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 SageMakerinvoke_endpoint API to perform real-time inference on the deployed Holo-1 model.
- Using AWS SageMaker to Invoke Holo1 for a localization task
- Using AWS SageMaker to Invoke Holo1 for a navigation task