Quick summary · Chapter 8
Measuring AI Workloads
The essential ideas, decisions, and diagrams from this chapter. Follow the section links for the examples, calculations, and fuller argument.
The main idea
Ten million tokens through a highly rated model may include a great deal of work that had to be thrown away. A smaller model may handle most of the requests, with a larger one needed for difficult cases. To tell, I would follow the calls back to the work that someone accepted.
When a team changes the models it uses, even the same token count can hide a change. I propose benchmark-weighted consumption as one way to describe that mix, using token counts and results from a comparable test. It is an unvalidated index. The workload’s own acceptance results still tell us what got done.
What the workload actually consumes
A model call is the unit I would start counting. To answer a support question, an application might call a cheap model to interpret it, a more capable model to draft a reply and a third to check the result. A retry adds another call. Each has input and output tokens on the model that received it.
Describing the model mix
Suppose two models run the same test under comparable conditions and pass 85 and 45 percent of the cases. Their scores, 0.85 and 0.45, are hypothetical. They belong to that version of the test.
For each model, multiply its token count by that score, then add the products. If model consumes tokens and scores , the index is:
One million tokens at 0.85 contribute 850,000 benchmark-weighted tokens, and one million at 0.45 contribute 450,000. I use the weighted sum as an accounting convention to describe the mixture of models.
If the index rises from ten million to twelve million, it grew by (12 − 10) / 10 = 20 percent. Repeating a prompt unnecessarily can raise it without accomplishing anything. A comparison also depends on the tokenization, benchmark version and task mix, so give the reader those conditions with the number.
Suppose routing moves work to a model with a lower benchmark score. The index falls for the same token count, making that model-mix change visible. It does not establish lost capability on this workload: the cheaper model may pass every task that matters here. Compare acceptance rates, correction effort and total cost before calling the routing change a saving.
Choosing the benchmarks
The purpose question: what no consumption measure can say
When the owners of a workload review its cost, I would have them pick a task the service handles often and walk through it together. What would happen if they changed or removed a step?
- Does this step need a model at all? Formatting, validation and deterministic transformations may be better served by ordinary code, whose compute and maintenance still cost money.
- Does it need this class of model? Compare a smaller model on representative examples, including difficult cases and changes in the label set.
- Does it duplicate another workload? Two teams may have good reasons for separate systems, but the reasons should survive being asked.
- Is the architecture appropriate? Repeated retrieval, excessive context and unnecessary agent loops are testable design choices.