ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念 · AIF-C01 の発展

Compute environments and deployment targets

Pick where a model runs: SageMaker AI, Bedrock, Lambda, containers, EC2 or Batch.

このレッスンはまだ翻訳されていないため、英語で表示しています。

AI Practitionerで学んだこと

  • Amazon EC2 gives you full control of a server, AWS Lambda runs short event-driven code, and Amazon ECS and Amazon EKS run containers.
  • Managed endpoints in Amazon Bedrock or Amazon SageMaker AI run the model for you. Pick the least you need to manage.
AI Practitionerのレッスンを読む
  • SageMaker AI endpoint

    Scales to zero
    Async or serverless only
    GPU
    yes
    Pick it when
    Custom model, low latency
  • Amazon Bedrock

    Scales to zero
    Yes, pay per token
    GPU
    Managed for you
    Pick it when
    Hosted foundation model
  • AWS Lambda

    Scales to zero
    yes
    GPU
    no
    Pick it when
    Small model, rare calls
  • ECS or EKS

    Scales to zero
    With extra setup
    GPU
    yes
    Pick it when
    Own model server, Kubernetes
  • Amazon EC2

    Scales to zero
    no
    GPU
    yes
    Pick it when
    Full control of the host
  • AWS Batch

    Scales to zero
    yes
    GPU
    yes
    Pick it when
    Offline container jobs
Six compute targets compared on what matters for a model.

1 / 3

  • SageMaker AI endpoint

    Scales to zero
    Async or serverless only
    GPU
    yes
    Pick it when
    Custom model, low latency
  • Amazon Bedrock

    Scales to zero
    Yes, pay per token
    GPU
    Managed for you
    Pick it when
    Hosted foundation model

2 / 3

  • AWS Lambda

    Scales to zero
    yes
    GPU
    no
    Pick it when
    Small model, rare calls
  • ECS or EKS

    Scales to zero
    With extra setup
    GPU
    yes
    Pick it when
    Own model server, Kubernetes

3 / 3

  • Amazon EC2

    Scales to zero
    no
    GPU
    yes
    Pick it when
    Full control of the host
  • AWS Batch

    Scales to zero
    yes
    GPU
    yes
    Pick it when
    Offline container jobs
Six compute targets compared on what matters for a model.
Users
API Gateway
Lambda
SageMaker AI endpoint
Bedrock model
  1. 1The user calls an API Gateway endpoint.
  2. 2API Gateway runs a Lambda function that checks and shapes the request.
  3. 3Lambda calls the SageMaker AI endpoint, or a Bedrock model, and returns the answer.
A thin layer in front of the model. Bedrock is the other target.

流れ

  1. 1The user calls an API Gateway endpoint.
  2. 2API Gateway runs a Lambda function that checks and shapes the request.
  3. 3Lambda calls the SageMaker AI endpoint, or a Bedrock model, and returns the answer.

A thin layer in front of the model. Bedrock is the other target.

概要

Compare the targets on five things: latency, scale to zero, GPU, control and cost. A SageMaker AI real-time endpoint answers fast and supports GPUs, but its instances run and bill all day. Amazon Bedrock needs no instances: you call a hosted model and pay per token. AWS Lambda scales to zero and costs nothing when idle, but it has no GPU, at most 10,240 MB of memory and a 15-minute limit.

概要

Amazon ECS, Amazon EKS and Amazon EC2 give the most control. You choose the model server, the GPU instance and the network, and you run and patch them. AWS Batch queues containerized jobs and starts compute only while the queue has work. It fits offline scoring, not live answers, and it gives you no endpoint.

Often a thin layer sits in front of the model. Amazon API Gateway receives the request, and Lambda checks it, builds the prompt, calls the endpoint and trims the answer. Watch the time limits: API Gateway waits 29 seconds by default, and a SageMaker AI real-time call must finish within 60 seconds.

覚えること

  • SageMaker AI endpoint: GPUs and low latency. Instances bill while the endpoint exists.
  • Amazon Bedrock: no servers. Pay per token or buy Provisioned Throughput.
  • Lambda: scales to zero, no GPU, 15 minutes, 10,240 MB. Good for small models and glue.
  • ECS, EKS and EC2: most control. You run the model server and the nodes.

覚えること

  • AWS Batch: queued jobs on compute that starts and stops. Not a live endpoint.
  • API Gateway plus Lambda in front of a model adds authentication, throttling and request shaping.

試験では

  • “Lowest operations effort for a foundation model” points to Amazon Bedrock.
  • “Custom model, GPU, steady low-latency traffic” points to a SageMaker AI real-time endpoint.
  • “Small model, rare calls, pay nothing when idle” points to AWS Lambda.
  • “Team already runs Kubernetes and needs its own model server” points to Amazon EKS.