Skip to content

AWS bedrock Provisioned Throughput

0

Does Provisioned Throughput mean that we are not bound to a limited TPD/ TPM?' Is there a document that shows how to calculate TPD/ TPM for each Model Unit. Speciefically Anthropic Sonnet 3.5. Thanks

2 Answers
1

Hi,

When you buy Provisioned Throughput, basically you buy the allowance to consume a given number of input and output tokens on your model of choice.

You can follow your consumption in real by capturing the number of input and output tokens computed by Bedrock: they are returned in the http headers of your request to Bedrock.

For example, in Python, you reach them this way:

response['ResponseMetadata']['HTTPHeaders']['x-amzn-bedrock-input-token-count']
response['ResponseMetadata']['HTTPHeaders']['x-amzn-bedrock-output-token-count']

If you don't have an app yet, you can go to Bedrock playground and try some requests to your LLM: you'll see the token counts in top right section like below

Enter image description here

With those samples and your estimated trafic patterns, you can estimate the level of Provisioned Throughput that you need to buy.

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Provisioned Throughput in AWS Bedrock does not completely remove limits on tokens per minute (TPM) or tokens per day (TPD), but it does allow you to increase your model invocation capacity beyond the standard on-demand limits.

When you purchase Provisioned Throughput, you're allocating a specific level of resources for your model usage, measured in Model Units (MUs). Each MU provides a defined throughput level for a specific model, which is expressed in terms of the number of input and output tokens that can be processed within a minute.

The exact throughput capacity for each Model Unit varies depending on the specific model you're using. Unfortunately, there isn't a single comprehensive document that shows how to calculate TPM/TPD for each Model Unit across all models. The throughput capacity can differ significantly between models.

To determine the specific throughput capacity for a Model Unit of your chosen model, you would need to refer to the detailed specifications provided by AWS for that particular model. This information is typically available in the AWS Bedrock documentation or through AWS support channels.

It's important to note that while Provisioned Throughput increases your capacity, it doesn't provide unlimited usage. Instead, it guarantees a certain level of throughput based on the number of Model Units you purchase. If you need even higher throughput, you may need to purchase additional Model Units.

Remember, Provisioned Throughput is billed hourly regardless of actual usage, so it's crucial to carefully assess your needs and monitor your usage to optimize costs while ensuring you have the capacity required for your application.
Sources
Increase model invocation capacity with Provisioned Throughput in Amazon Bedrock - Amazon Bedrock
Can somebody explain Bedrock Provisioned Throughput? | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years 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.