Step 1: Measure both models
Brightline's returns desk wants a model to make the first decision on each return request, using the
policy in policy.md. The prompt is written (prompt.md). The open question is which model to use: a
small one (Llama 3.1 8B) or a large one (Llama 3.3 70B), which costs about ten times as much per token.
Pick on numbers, not reputation. requests.jsonl holds 40 real-looking requests, each with the decision
the policy gives. You measure each model's accuracy, cost and speed on them. There is no code: you edit
compare.yaml.
One run is not enough. The same model on the same requests at temperature 0 can still give different answers from one run to the next, because the hosted service routes calls to different servers. A difference smaller than that wobble means nothing.
Do this:
- Answer the question below first.
- In
compare.yaml, setmodels: [small, large]andruns: 2. - Click Run (about a minute). Read the table: accuracy, cost per 1,000 requests, and speed (p50 is the typical time, p95 the slowest 1 in 20). Compare the spread between runs with the gap between the models.
The check reads the measurements your Run saved.
compare.yaml, the file you edit7 lines
# compare.yaml: what to measure. Run passes this to the harness.
# models: which models to run on every request: small (Llama 3.1 8B) and/or large (Llama 3.3 70B)
# runs: how many times to repeat each measurement (1 or 2)
# bar: the requirements from memo.md, as numbers
# cascade: small model first, and the decisions it makes that go to the large model instead
models: [small] # TODO (Step 1): measure both models, twice
runs: 1compare.pymemo.mdnew_requests.jsonlpolicy.mdprompt.mdrequests.jsonlrun_compare.py