သဘောတရား · 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.
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
| Option | Scales to zero | GPU | Pick it when |
|---|---|---|---|
| SageMaker AI endpoint | Async or serverless only | yes | Custom model, low latency |
| Amazon Bedrock | Yes, pay per token | Managed for you | Hosted foundation model |
| AWS Lambda | yes | no | Small model, rare calls |
| ECS or EKS | With extra setup | yes | Own model server, Kubernetes |
| Amazon EC2 | no | yes | Full control of the host |
| AWS Batch | yes | yes | Offline container jobs |
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
| Option | Scales to zero | GPU | Pick it when |
|---|---|---|---|
| SageMaker AI endpoint | Async or serverless only | yes | Custom model, low latency |
| Amazon Bedrock | Yes, pay per token | Managed for you | 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
| Option | Scales to zero | GPU | Pick it when |
|---|---|---|---|
| AWS Lambda | yes | no | Small model, rare calls |
| ECS or EKS | With extra setup | yes | 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
| Option | Scales to zero | GPU | Pick it when |
|---|---|---|---|
| Amazon EC2 | no | yes | Full control of the host |
| AWS Batch | yes | yes | Offline container jobs |
- 1The user calls an API Gateway endpoint.
- 2API Gateway runs a Lambda function that checks and shapes the request.
- 3Lambda calls the SageMaker AI endpoint, or a Bedrock model, and returns the answer.
အဆင့်ဆင့်
- 1The user calls an API Gateway endpoint.
- 2API Gateway runs a Lambda function that checks and shapes the request.
- 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.
ဒီ task ထဲမှာ · 3.1
- Compute environments and deployment targets
- SageMaker hosting
- Real-time and serverless inference
- Asynchronous and batch inference
- Multi-model and multi-container endpoints, inference components
- Choosing a deployment orchestrator
- Foundation model deployment options
- Hosting large models on SageMaker
- Bringing in models built outside AWS
Agents Classic
AgentCore
- Agent protocols and multi-agent patterns
- Reranking and retrieval strategies