သဘောတရား
Multi-model and multi-container endpoints, inference components
Host many models on shared instances, and know which sharing option fits.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
- 1The request names the model in TargetModel.
- 2On the first call, the instance downloads that model from S3. This is the cold start.
- 3The model stays in memory for later calls. Unused models are unloaded when memory is needed.
အဆင့်ဆင့်
- 1The request names the model in TargetModel.
- 2On the first call, the instance downloads that model from S3. This is the cold start.
- 3The model stays in memory for later calls. Unused models are unloaded when memory is needed.
Multi-model endpoint
- What it hosts
- Many models of one framework, loaded from S3 on demand
- Pick it when
- Thousands of models, most used rarely
Multi-container, direct
- What it hosts
- Different containers, you name the one to call
- Pick it when
- A few unlike models that share instances
Serial inference pipeline
- What it hosts
- 2 to 15 containers in a row
- Pick it when
- Preprocess, predict and post-process in one call
Inference components
- What it hosts
- Each model with its own copies and resources
- Pick it when
- Several large models scaled one by one
| Option | What it hosts | Pick it when |
|---|---|---|
| Multi-model endpoint | Many models of one framework, loaded from S3 on demand | Thousands of models, most used rarely |
| Multi-container, direct | Different containers, you name the one to call | A few unlike models that share instances |
| Serial inference pipeline | 2 to 15 containers in a row | Preprocess, predict and post-process in one call |
| Inference components | Each model with its own copies and resources | Several large models scaled one by one |
1 / 2
Multi-model endpoint
- What it hosts
- Many models of one framework, loaded from S3 on demand
- Pick it when
- Thousands of models, most used rarely
Multi-container, direct
- What it hosts
- Different containers, you name the one to call
- Pick it when
- A few unlike models that share instances
| Option | What it hosts | Pick it when |
|---|---|---|
| Multi-model endpoint | Many models of one framework, loaded from S3 on demand | Thousands of models, most used rarely |
| Multi-container, direct | Different containers, you name the one to call | A few unlike models that share instances |
2 / 2
Serial inference pipeline
- What it hosts
- 2 to 15 containers in a row
- Pick it when
- Preprocess, predict and post-process in one call
Inference components
- What it hosts
- Each model with its own copies and resources
- Pick it when
- Several large models scaled one by one
| Option | What it hosts | Pick it when |
|---|---|---|
| Serial inference pipeline | 2 to 15 containers in a row | Preprocess, predict and post-process in one call |
| Inference components | Each model with its own copies and resources | Several large models scaled one by one |
ဘာလဲ
A multi-model endpoint (MME) serves many models of the same framework from one container. The artifacts sit under an S3 prefix. The caller names the model in the TargetModel parameter. On the first call the instance downloads that model and loads it into memory, which is a cold start. Later calls are fast. When memory runs low, SageMaker AI unloads models that are not in use. MME suits thousands of models that are each used rarely, such as one model per customer. It saves cost, and it accepts occasional slow first calls.
ဘာလဲ
A multi-container endpoint puts several different containers on one endpoint. With direct invocation you name the container to call (TargetContainerHostname), so unlike models share instances. As a serial inference pipeline, two to fifteen containers run in a row and each passes its output to the next, for example preprocessing, prediction and post-processing in one call.
ဘာလဲ
Inference components give each model its own share of an endpoint. For each component you set the number of copies and the resources one copy needs, such as accelerators and memory. Each model then scales on its own, and an endpoint that hosts inference components can scale to zero instances. Use them for several large models, such as LLMs, that need dedicated GPUs.
မှတ်ထားရန်
- MME: one container, many models of one framework, loaded from S3 on first call.
- MME trades cost for cold starts. Models with high traffic belong on their own endpoint.
- Multi-container direct: different containers, you pick one per call with TargetContainerHostname.
- Serial pipeline: 2 to 15 containers in a row, output feeds the next.
မှတ်ထားရန်
- Inference components: per-model copies and resources, scaled one by one.
စာမေးပွဲမှာ
- “Thousands of similar models, each rarely used” points to a multi-model endpoint.
- “Preprocess, predict and post-process in a single request” points to a serial inference pipeline.
- “Several LLMs on one endpoint, each scaled on its own” points to inference components.
ဒီ 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