概念 · 基于 AIF-C01
Custom, managed, pre-trained or foundation model
Pick the lightest option that meets the need: AI service, SageMaker built-in, custom code, Bedrock FM or fine-tuned FM.
本课尚未翻译,暂以英文显示。
你在AI Practitioner中已学过
- A traditional ML model is trained for one narrow task on your data, and is cheaper to run and easier to explain.
- A foundation model handles many open-ended tasks with little labeled data, but costs more per call.
- Strict explanation or regulation pushes toward traditional ML.
AI service
- Data you need
- None
- Effort
- Lowest
- Explainability
- Limited
Built-in or AutoML
- Data you need
- Labeled data
- Effort
- Medium
- Explainability
- Good
Custom code
- Data you need
- Plenty of labeled data
- Effort
- Highest
- Explainability
- You decide
Bedrock FM
- Data you need
- Little or none
- Effort
- Low
- Explainability
- Harder
Fine-tuned FM
- Data you need
- Labeled examples
- Effort
- Medium to high
- Explainability
- Harder
| Compare | Data you need | Effort | Explainability |
|---|---|---|---|
| AI service | None | Lowest | Limited |
| Built-in or AutoML | Labeled data | Medium | Good |
| Custom code | Plenty of labeled data | Highest | You decide |
| Bedrock FM | Little or none | Low | Harder |
| Fine-tuned FM | Labeled examples | Medium to high | Harder |
1 / 2
AI service
- Data you need
- None
- Effort
- Lowest
- Explainability
- Limited
Built-in or AutoML
- Data you need
- Labeled data
- Effort
- Medium
- Explainability
- Good
Custom code
- Data you need
- Plenty of labeled data
- Effort
- Highest
- Explainability
- You decide
| Compare | Data you need | Effort | Explainability |
|---|---|---|---|
| AI service | None | Lowest | Limited |
| Built-in or AutoML | Labeled data | Medium | Good |
| Custom code | Plenty of labeled data | Highest | You decide |
2 / 2
Bedrock FM
- Data you need
- Little or none
- Effort
- Low
- Explainability
- Harder
Fine-tuned FM
- Data you need
- Labeled examples
- Effort
- Medium to high
- Explainability
- Harder
| Compare | Data you need | Effort | Explainability |
|---|---|---|---|
| Bedrock FM | Little or none | Low | Harder |
| Fine-tuned FM | Labeled examples | Medium to high | Harder |
是什么
Think of a ladder of effort. At the bottom is an AI service such as Amazon Textract or Amazon Comprehend: call an API, no training, no ML skills. Next is a SageMaker AI built-in algorithm or AutoML: you bring labeled data and AWS supplies the algorithm. Then custom code in your own framework, where you control everything and carry the work. On the foundation model side, start with a Bedrock FM and prompts, add RAG for your facts, and fine-tune only when that is not enough.
是什么
Climb only as high as the need requires. Decide by data volume, time to market, team skills, accuracy, explainability and cost. A ready AI service wins when the task matches it. Built-in algorithms or AutoML win on tabular data you own. Custom code wins on special architectures or strict control. A foundation model wins on open-ended language and images. Build means you own training, tuning and upkeep. Buy means you pay per call and accept the service’s limits.
要记住
- AI service: no data to start, least effort, least control.
- SageMaker built-in or AutoML: needs labeled data, moderate effort, strong on tabular data.
- Custom code: most control and most effort, for special models.
- Bedrock FM: little data, fast start, higher cost per call, harder to explain.
要记住
- Fine-tuned FM: needs labeled examples and a training job, and costs more to serve.
- Do not rebuild what an AI service already does.
考试中
- “Extract fields from invoices with the least development effort” points to an AI service, here Amazon Textract.
- “Predict churn from tabular history, and explain the result” points to a SageMaker AI algorithm such as XGBoost or Linear Learner, not an FM.
- “Summarize open-ended text with little labeled data” points to a Bedrock foundation model.
本任务内容 · 2.1
- Choosing a foundation model in Bedrock
- Custom, managed, pre-trained or foundation model
- Selecting ML models and algorithms
JumpStart and AutoML
- Fine-tuning strategies for foundation models
- RAG architecture patterns
- Training time, cost and performance trade-offs
- FM performance, latency and cost trade-offs
Textract
Rekognition
Comprehend
Transcribe
Translate, Polly, Lex
Personalize and health AI