View a markdown version of this page

📺 Info Siaran: prescriptive guidance/latest/gen ai inference architecture and best practices on aws/aws inference stack.html - Pertandingan Hari Ini

AWS inference stack

AI inference is the process of using a trained machine learning (ML) model to make predictions based on input data. Traditional ML inference typically involves relatively small models with modest compute requirements. However, generative AI (gen AI) inference has introduced new requirements in terms of compute, specialized hardware, and system optimizations.

As shown in the following diagram, AWS provides a multi-layer AI inference stack to address customers' diverse inference needs.

Layers of the AWS inference stack: Serverless, managed inference, and self-managed inference.

Following are descriptions of each layer of the AI inference stack.

Serverless inference layer

Following are key capabilities of the serverless inference layer, which is the top layer of the AI inference stack:

  • Powered by Amazon Bedrock which offers a wide choice of industry leading foundation models (FMs) along with a broad set of capabilities to build generative AI applications.

  • Supports importing custom models with popular architectures such as Llama, Mistral, and Qwen.

  • Abstracts infrastructure management completely including high availability, scaling, and performance tuning.

  • Pay-as-you-go pricing by using tokens or capacity units. For more information, see Amazon Bedrock pricing.

  • Ideal for organizations who want to minimize operational and development effort.

Managed inference layer

Following are key capabilities of the managed inference layer, which is the middle layer of the AI inference stack:

  • Powered by Amazon SageMaker AI which provides a broad set of tools to enable high-performance, low-cost ML for building, training and deploying AI models at scale. It provides all these capabilities in one integrated development environment (IDE).

  • Enables serving pre-trained or custom models on managed infrastructure.

  • Balances control with simplicity and with flexibility in choosing inference engines, scaling policies, and instance types.

  • Suitable for organizations who want more control over deployment configuration, scaling behavior, and cost optimization while maintaining operational simplicity.

Self-managed inference layer

Following are key capabilities of the self-managed inference layer, which is the bottom layer of the AI inference stack: