Get started on SageMaker

View as Markdown

Everything you need before deploying your first endpoint. You do this setup once per AWS account, then reuse it for every Saaras v3, Bulbul v3, and Sarvam Vision deployment.

Prerequisites

  • An AWS account with permission to subscribe on AWS Marketplace and create SageMaker resources.
  • Amazon SageMaker Studio (or a local environment with the AWS CLI and boto3).
  • GPU instance quota in your region for the instance types you plan to use (see Request quota).
  • The SageMaker Python SDK and boto3 if you’re deploying from code.
pip
$pip install "sagemaker>=2.220" boto3

1. Create a SageMaker execution role (once)

Every endpoint runs under an IAM execution role. Create it once and reuse it. The managed policy AmazonSageMakerFullAccess covers most needs; add S3 access if you’ll use batch or async (so SageMaker can read inputs and write outputs).

The role needs a trust policy allowing SageMaker to assume it:

Trust policy
1{
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Effect": "Allow",
6 "Principal": { "Service": "sagemaker.amazonaws.com" },
7 "Action": "sts:AssumeRole"
8 }
9 ]
10}

Your own user or role also needs permission to subscribe to Marketplace products and manage SageMaker:

Managed policyAttached toWhy
AWSMarketplaceManageSubscriptionsYour user/roleSubscribe to the Sarvam listing
AmazonSageMakerFullAccessYour user/role and the execution roleCreate and invoke endpoints
AmazonS3FullAccess (or a scoped bucket policy)Execution roleRead/write data for batch and async

Reuse a single execution role across all your Sarvam endpoints. You only create it once — deployments just reference its ARN.

2. Subscribe on AWS Marketplace

1

Open the listing

Go to the Sarvam listing for the model you want — Speech-to-Text, Text-to-Speech, or Sarvam Vision.

2

Continue to subscribe and accept the EULA

Review pricing and the end-user licence agreement, then subscribe. There’s no end date — you can cancel anytime.

3

Copy the model package ARN for your region

From Configuration, choose the software version and your region, then copy the model package ARN. You’ll pass this to the deploy step.

Model package ARNs are region-specific. Copy the ARN for the exact region you’ll deploy into — a mismatch fails at model creation.

3. Request service quotas

GPU instances often need a quota increase before first use. In the Service Quotas console, search for Amazon SageMaker and request the endpoint-usage quota for the instance types you’ll run.

Both models run best on the ml.g6e family (NVIDIA L40S). Start with the recommended instance and scale up for more throughput or concurrency.

ModelRecommended instanceModes
Saaras v3 (STT)ml.g6e.xlargereal-time, streaming
Bulbul v3 (TTS)ml.g6e.xlargereal-time, streaming (SSE + WebSocket)
Sarvam Vision (OCR)ml.g6e.xlargereal-time (sync), async, batch

For Sarvam Vision, the concurrent documents an instance handles scales with its size:

ml.g6e instanceGPUsConcurrent documents
ml.g6e.xlarge12
ml.g6e.2xlarge14
ml.g6e.4xlarge / 8xlarge / 16xlarge16
ml.g6e.12xlarge424
ml.g6e.48xlarge8~48

These are the recommended ml.g6e (L40S) instances. See the AWS Marketplace listing for the full instance and pricing matrix, and Operations for sizing and autoscaling.

Read the endpoint’s API reference carefully before you integrate. Each model’s request/response contract, accepted content types, limits, and error behaviour are enforced by the container — the Speech-to-Text, Text-to-Speech, and Sarvam Vision references are the source of truth. Start with Error handling on SageMaker for the shared error contract.

You’re set