သဘောတရား
Compute for AI applications
Where your own code and models run: Amazon EC2, AWS Lambda, containers, or a managed endpoint.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Amazon EC2
- You
- Choose and run the servers
- Pick it when
- You host an open model or need full control
AWS Lambda
- You
- Write functions, no servers
- Pick it when
- Short, event-driven glue code
Amazon ECS and Amazon EKS
- You
- Package the app in containers
- Pick it when
- A model server or app must scale in containers
Bedrock or SageMaker AI endpoint
- You
- Call a model that AWS hosts
- Pick it when
- You want the least to manage
| Option | You | Pick it when |
|---|---|---|
| Amazon EC2 | Choose and run the servers | You host an open model or need full control |
| AWS Lambda | Write functions, no servers | Short, event-driven glue code |
| Amazon ECS and Amazon EKS | Package the app in containers | A model server or app must scale in containers |
| Bedrock or SageMaker AI endpoint | Call a model that AWS hosts | You want the least to manage |
1 / 2
Amazon EC2
- You
- Choose and run the servers
- Pick it when
- You host an open model or need full control
AWS Lambda
- You
- Write functions, no servers
- Pick it when
- Short, event-driven glue code
| Option | You | Pick it when |
|---|---|---|
| Amazon EC2 | Choose and run the servers | You host an open model or need full control |
| AWS Lambda | Write functions, no servers | Short, event-driven glue code |
2 / 2
Amazon ECS and Amazon EKS
- You
- Package the app in containers
- Pick it when
- A model server or app must scale in containers
Bedrock or SageMaker AI endpoint
- You
- Call a model that AWS hosts
- Pick it when
- You want the least to manage
| Option | You | Pick it when |
|---|---|---|
| Amazon ECS and Amazon EKS | Package the app in containers | A model server or app must scale in containers |
| Bedrock or SageMaker AI endpoint | Call a model that AWS hosts | You want the least to manage |
ဘာလဲ
A GenAI application needs somewhere to run its code. With Amazon EC2 you choose a server, install software and run it yourself. This is how you host an open model on your own GPU, AWS Trainium or AWS Inferentia instance. You manage the server.
AWS Lambda runs small pieces of code only when something triggers them, and you pay for requests and run time. It suits glue code, such as a function that calls Amazon Bedrock, or the function behind an action of an agent in Amazon Bedrock Agents. Each run has a time limit, so it is not for long jobs.
ဘာလဲ
Amazon Elastic Container Service (Amazon ECS) and Amazon Elastic Kubernetes Service (Amazon EKS) run containers at scale, for a model server or a whole GenAI app. The managed option is an endpoint in Amazon Bedrock or Amazon SageMaker AI: AWS runs the model for you.
မှတ်ထားရန်
- Amazon EC2: you pick and run servers. Use it to self-host open models.
- AWS Lambda: serverless, event-driven, pay per request and run time.
- Lambda fits glue code and agent actions, not long jobs.
- Amazon ECS and Amazon EKS: containers at scale.
- Managed endpoints (Bedrock, SageMaker AI): the least to manage.
စာမေးပွဲမှာ
- “Run code only when an event happens, with no servers to manage” points to AWS Lambda.
- “Host an open model on servers you control” points to Amazon EC2.
- “Use a foundation model without running any compute yourself” points to Amazon Bedrock.
ဒါတွေနဲ့ မရောပါနဲ့
- AWS Trainium, AWS Inferentia and GPU instancesAWS Trainium and AWS Inferentia are AWS-designed AI chips. GPU instances are the general choice.
Amazon BedrockA fully managed service that gives you foundation models from several providers through one API.
Amazon SageMaker AIBuild, train and deploy your own machine learning models on managed infrastructure.