Sub topic 1
Start from the Task, Not the Model
Prerequisites
Assume you can call an HTTP API or SDK, read basic Python, and understand prompts, tokens, and context windows. You should also know what your application must do, such as classify tickets, summarize documents, or generate code.
Define the Selection Criteria
Start with requirements, not a model name. Record:
- Required quality and acceptable error types
- Input and output length
- Response-time target and request volume
- Monthly budget
- Privacy, residency, and compliance rules
- Required control over deployment and updates
A model choice is a constraint-matching decision. A model that writes excellent prose may still be unsuitable if it cannot process your context, meet your latency target, or legally handle your data.
Hosted APIs: What You Get and What You Give Up
A hosted API runs the model on a provider’s infrastructure. Your application sends requests and receives responses.
You gain quick setup, managed hardware, automatic scaling, and access to large models. You usually pay by input and output tokens. You give up some control over model updates, hardware, outages, and data processing. You must check the provider’s retention, training, region, and security terms.
Open-Weight Models: Weights You Can Download and Run
An open-weight model provides downloadable trained parameters, often called weights. You can run it on your own computer or server using a model server.
This gives you more control over data, versions, hardware, and network access. It also makes you responsible for GPUs, memory, patching, scaling, monitoring, and performance. “Open-weight” describes access to the weights. It does not guarantee open development or unrestricted use.
Read the License
A model license defines what you may do with the weights. Check whether commercial use, redistribution, fine-tuning, and hosted services are allowed. Some licenses add attribution, usage restrictions, or requirements for derivative models. Keep a record of the license version you reviewed.
> Callout note > Treat a model license as a production dependency. Verify its current terms before deployment, especially for commercial or regulated applications.
Model Size Means Quality and Cost
Parameter count is the approximate number of learned values in a model. Larger models often handle difficult tasks better, but they usually need more memory and may respond more slowly. Smaller models cost less and can be easier to run.
| Choice | Typical benefit | Typical cost |
|---|---|---|
| Smaller model | Lower latency and memory use | May make more reasoning errors |
| Larger model | Better performance on complex tasks | Higher cost and hardware needs |
Measure candidates on your own examples. Pick the smallest model that meets your quality, privacy, latency, and cost requirements.
Exercise
Which should you decide first: a model name or the application's requirements?
Show answer
Decide the application's requirements first, then evaluate models against them.