概念
Factors in choosing a GenAI model
The questions to ask before picking a model: type, performance, capability, limits, rules, cost, speed and size.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Model type
- Text, image, audio or multi-modal?
Performance
- Is quality good enough on my tasks?
Capabilities
- Does it support my languages, reasoning or code?
Constraints
- Do the context window and size limits fit?
Compliance
- Can my data go there under my rules?
Cost
- What is the price per token?
Latency
- Is it fast enough for my users?
Model complexity
- Is a smaller model enough?
| Factor | Question to ask |
|---|---|
| Model type | Text, image, audio or multi-modal? |
| Performance | Is quality good enough on my tasks? |
| Capabilities | Does it support my languages, reasoning or code? |
| Constraints | Do the context window and size limits fit? |
| Compliance | Can my data go there under my rules? |
| Cost | What is the price per token? |
| Latency | Is it fast enough for my users? |
| Model complexity | Is a smaller model enough? |
1 / 2
Model type
- Text, image, audio or multi-modal?
Performance
- Is quality good enough on my tasks?
Capabilities
- Does it support my languages, reasoning or code?
Constraints
- Do the context window and size limits fit?
| Factor | Question to ask |
|---|---|
| Model type | Text, image, audio or multi-modal? |
| Performance | Is quality good enough on my tasks? |
| Capabilities | Does it support my languages, reasoning or code? |
| Constraints | Do the context window and size limits fit? |
2 / 2
Compliance
- Can my data go there under my rules?
Cost
- What is the price per token?
Latency
- Is it fast enough for my users?
Model complexity
- Is a smaller model enough?
| Factor | Question to ask |
|---|---|
| Compliance | Can my data go there under my rules? |
| Cost | What is the price per token? |
| Latency | Is it fast enough for my users? |
| Model complexity | Is a smaller model enough? |
- 1Write down the needs and limits.
- 2Keep the models that could meet them.
- 3Run your own prompts and data through each.
流れ
- 1Write down the needs and limits.
- 2Keep the models that could meet them.
- 3Run your own prompts and data through each.
A simple process: list, shortlist, test, choose.
概要
There is no best model, only the best fit for a job. Start with the model type: a text model, an image model or a multi-modal model. Then check performance requirements such as answer quality on your own tasks, and capabilities such as languages, reasoning or code. Next list constraints, for example the size of the context window or whether you can host the model.
概要
Compliance asks where data may go and which rules apply, such as data residency. Cost covers the price per token and the effort to customize. Latency is how fast the first words appear, which matters for chat. Model complexity means larger models are often more capable but slower and costlier, so a small model may be enough.
Shortlist models that meet the needs, test them on your own data, and choose the cheapest that is good enough. Criteria that are specific to foundation models are in domain 3.
覚えること
- Model type: text, image or multi-modal.
- Performance and capabilities: tested on your tasks.
- Constraints: context window, hosting, input and output limits.
- Compliance: data location and the rules that apply.
- Cost and latency: price per token and response speed.
覚えること
- Complexity: bigger is often better but slower and costlier.
試験では
- “Need answers in under a second” points to latency, so a smaller or faster model.
- “Data must stay in one country” points to compliance and Regional availability.
- “Generate images and read text” points to a multi-modal model.
- “Choose the cheapest model that meets the quality bar” points to testing several models on your data.
混同しやすいもの
- Choosing a foundation modelThe checklist for picking a foundation model: cost, modality, latency, language, size, customization, length and caching.
- Cost tradeoffs of AWS GenAI servicesOn demand, provisioned throughput or a custom model: what each costs and when it fits.
- Traditional ML or foundation modelChoose by task, data, explainability, regulation and cost.