What is Inference?
Inference, told as a story about what it costs, in beans and time, when a parrot done with school answers a guest one bean at a time.
Parrot school happens once. But every time a guest asks, beans are spent.The guest thinks it is free once school is over. It is not — every single answer has a price.
Training is reading — once, big. Inference is answering — small, but millions of times.Small once, big a million times. A busy house can end up paying more for answers than the school cost.
Inference is a parrot done with school answering a guest, making one bean at a time.Cost and time grow with the number of beans, the size of the parrot, and how much it mutters before answering.
Time splits into the wait for the first bean and time per bean; cost counts beans.Showing the first bean as soon as it comes is streaming. A repeated start gets cheaper with beans laid out ahead.
Fast is not always cheap. A small parrot that fails several times costs more.The price of beans is the pricing story; which parrot gets the job is routing; making a parrot lighter is quantization.
Inference = a parrot done with school answering a guest one bean at a time. School happens once, but every answer costs, and cost and time grow with beans, parrot size, and muttering.
Running a trained model on real inputs to produce outputs. Latency splits into time to first token (TTFT) and time per token; cost scales with input and output token counts and model size. Accelerators such as GPUs batch many requests to raise throughput. Over time, inference often costs more than training did.
When grown-ups say it
- Inference
- The parrot answering. After school, it makes beans one at a time for a guest.
- Training vs inference
- Reading vs answering. Reading is once and big; answering is small each time — but millions of times.
- Latency
- Time for one answer. The wait for the first bean plus time per bean × beans.
- Throughput
- Answers per hour. Several parrots, or one parrot serving several guests at once.
- Time to first token
- The wait for the first bean. Show the first bean as soon as it comes. → showing beans one by one
- GPU · accelerator
- The fast perch the parrot sits on. Makes beans fast. Pricey, and seats are limited.
- Batching
- Several guests at once. Answering gathered questions together lowers the price per bean, at the cost of a small wait.
- Cost
- The price of beans. Beans in plus beans out, times the rate. → the price of beans