CHAPTER 01 OF 12
Start with a task, not a leaderboard
Understand weights, runtimes, licenses and a decision you can test.
In this chapter
The system you are choosing
A model's weights are numbers learned during training. A runtime loads those weights, prepares input and computes output. An application adds a user interface, documents, conversation storage, permissions and other behavior. A model download alone is not a complete application, and a polished interface does not establish that the answers are correct.
For a language model, text is divided into tokens. The model predicts further tokens from the context it receives. This explains two useful properties: instructions and examples can influence an answer, and plausible language can still contain invented facts. Your job is to define an outcome that can be checked independently of fluency.
Start with a sentence such as: "Given a short project note, return only its explicit deadline, or UNKNOWN if it has none." This is a better specification than "I need the best AI." It names the input, output and an important failure case. It also gives you a basis for deciding whether a smaller model is adequate.
A practical shortlist
Filter candidates in stages. First check whether the license permits the intended use and whether the weights are obtainable. Next check whether your runtime implements the architecture and file format. Then estimate memory and disk needs for a specific artifact and context. Finally run representative task examples, including missing information and misleading details.
The starter model is Qwen2.5 0.5B Instruct. Its small download makes failures inexpensive to investigate. That is the reason for choosing it here; it is not a claim that it is the most capable or most reliable model. Larger parameter counts can increase resource requirements, but parameter count alone does not determine quality or generation speed.
A benchmark may help narrow a shortlist, but compare its task, scoring method, exact model version and hardware with your own situation. A score from another quantization or a hosted service is useful context, not proof of behavior on your laptop. Likewise, "open weights" does not by itself mean every component is open source or every use is allowed. Keep the model's license link alongside the artifact.
Prerequisites
You need a concrete task and three example inputs you are allowed to use. To run the inventory command below, first complete chapter 4. You can finish the decision worksheet before installing anything.
Steps
Write the task in one sentence. Define what a correct answer must contain and what it must omit.
Choose an ordinary input, a distracting input and an input with no answer. Write their expected outputs before asking a model.
Open the starter model record and the shared catalog. Record the license, architecture, artifact and evidence scope.
After the runtime is ready, capture its identity:
python3 rtm_lab.py inventory --output inventory.jsonCompare your input requirements with the context available in this lab. If your task requires long documents, a text-only model with a short configured context may need retrieval or a different runtime configuration.
Expected results
Your worksheet should contain a testable task, explicit expected answers and one candidate artifact. The inventory report should name the installed runtime and model digest. matchesReferenceArtifact should be true to reproduce this edition's reference artifact. A false value means your package differs; investigate before comparing scores.
Common failures
A license label without its actual terms is incomplete information. A familiar model name can point to several different files. A "fits in memory" label can hide missing runtime support. If any of these checks is unknown, record the unknown instead of giving the candidate a passing grade.
Exercise
Create a shortlist of two models for your task, even if you only run one. Explain the expected advantage of the second candidate, the additional resources it needs, and the evidence that would justify switching. Do not use commission, popularity or a single unrelated leaderboard score as the deciding criterion.
Sources
Consult the Qwen model card and model license for publisher information. The lab's measured results are linked in the book introduction.