概念
Models in production
Use a model through a managed API or host it yourself.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Who runs servers
- Managed API
- The provider
- Self-hosted
- You
When idle
- Managed API
- Little or no cost
- Self-hosted
- You still pay
Control
- Managed API
- Less
- Self-hosted
- More
Effort
- Managed API
- Low
- Self-hosted
- High
| Compare | Managed API | Self-hosted |
|---|---|---|
| Who runs servers | The provider | You |
| When idle | Little or no cost | You still pay |
| Control | Less | More |
| Effort | Low | High |
概要
There are two main ways to run a model for real users. With a managed API service, a provider runs the model and the servers. You send requests and pay for use. Amazon Bedrock works this way.
With a self-hosted API, you deploy the model on your own infrastructure and expose it. You choose the hardware and settings, and you handle the servers. On AWS, you can host a model on a Amazon SageMaker AI endpoint.
Managed is simpler, and has no idle servers to pay for. Self-hosted gives more control, but costs more effort, and you pay for the servers while they run, even when idle.
覚えること
- Managed API: the provider runs the servers.
- Self-hosted API: you run the model and the servers.
- Managed: less effort, pay for use.
- Self-hosted: more control, pay for servers even when idle.
- Pick by control needs, traffic and team skills.
試験では
- “No servers to manage, pay per request” points to a managed API service.
- “Full control over the model and hardware” points to a self-hosted API.